core: Airzone integration - systemid out of range

The problem

Trying to setup the new Airzone integration from 2 different HA instances, I get an unknown error (the system is working fine both with custom sensors anche with HACS Airzone integration).

the output of curl -s --location --request POST "http://AIRZONE_IP:3000/api/v1/hvac" -d '{"systemID": 0, "zoneID": 0}' | jq

is: { "errors": [ { "error": "systemid out of range" } ] }

What version of Home Assistant Core has the issue?

2022.4.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Airzone

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/airzone

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: aiohttp.server
Source: components/airzone/config_flow.py:46 
First occurred: 11:20:49 PM (1 occurrences) 
Last logged: 11:20:49 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 206, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/airzone/config_flow.py", line 46, in async_step_user
    await airzone.validate_airzone()
  File "/usr/local/lib/python3.9/site-packages/aioairzone/localapi.py", line 108, in validate_airzone
    response = await self.get_hvac()
  File "/usr/local/lib/python3.9/site-packages/aioairzone/localapi.py", line 159, in get_hvac
    res = await self.http_request(
  File "/usr/local/lib/python3.9/site-packages/aioairzone/localapi.py", line 79, in http_request
    resp: ClientResponse = await self.aiohttp_session.request(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 640, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 500, message='ERROR', url=URL('http://10.0.50.14:3000/api/v1/hvac')

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26 (10 by maintainers)

Most upvoted comments

Sorry, no systemid showing after first attempt

Schermata 2022-05-05 alle 07 11 10

@Stewie3112 2022.5.1 is out. Is it working for you?

Great, it’s finally working! Thanks for the support!

Aweome 😃 Excuse me, but 2022.5 not only introduced support for setting the system id but also an additional bug which has been solved in 2022.5.1 and prevented you from reaching the system id configuration point >.< Enjoy!

Hi @Noltari , just tried 2022.5 and still not working, I just get “failed to connect” error without anything shown in the logs

Yes, it’s all working good.

Thanks, then I should expect a fix in the next ha release?

Yes, but since this is a bugfix, it may be applied in a bugfix release (2022.04.X).

@Noltari the Technical support reply this by mail:

La version minimum est 3.16 soit votre webserveur est bien avec l’API Local.

Traduction : the minimal version with API Local is 3.16

My firmware is 3.34

I encountered the same issue, even if your firmware is updated, you should explicitly ask to enable local API, otherwise the web server won’t listen on port 3000