home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.83k stars 28.94k forks source link

AirZone Cloud - No devices or entities #120873

Open sparks1372 opened 1 week ago

sparks1372 commented 1 week ago

The problem

I have just tried to set up the AirZone Cloud integration and am not getting any devices or entities. The set up stage appeared to work correctly with the installation listed for me to select. However, that is as far as it gets; installation is listed within the integration but with no devices or entities. In the logs I have the following for sensor, select, climate and binary_sensor:

  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/sensor.py", line 138, in async_setup_entry
    sensors.extend(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/sensor.py", line 139, in <genexpr>
    AirzoneZoneSensor(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/sensor.py", line 217, in __init__
    super().__init__(coordinator, zone_id, zone_data)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/entity.py", line 298, in __init__
    self.system_id = zone_data[AZD_SYSTEM_ID]
                     ~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'system-id'

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

airzone_cloud

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-06-30 17:48:30.051 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up airzone_cloud platform for binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/binary_sensor.py", line 126, in async_setup_entry
    binary_sensors.extend(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/binary_sensor.py", line 127, in <genexpr>
    AirzoneZoneBinarySensor(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/binary_sensor.py", line 212, in __init__
    super().__init__(coordinator, zone_id, zone_data)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/entity.py", line 298, in __init__
    self.system_id = zone_data[AZD_SYSTEM_ID]
                     ~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'system-id'
2024-06-30 17:48:30.055 ERROR (MainThread) [homeassistant.components.climate] Error while setting up airzone_cloud platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/climate.py", line 164, in async_setup_entry
    AirzoneZoneClimate(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/climate.py", line 476, in __init__
    super().__init__(coordinator, system_zone_id, zone_data)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/entity.py", line 298, in __init__
    self.system_id = zone_data[AZD_SYSTEM_ID]
                     ~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'system-id'
2024-06-30 17:48:30.058 ERROR (MainThread) [homeassistant.components.select] Error while setting up airzone_cloud platform for select
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 374, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 633, in async_add_entities
    for entity in new_entities:
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/select.py", line 62, in <genexpr>
    AirzoneZoneSelect(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/select.py", line 108, in __init__
    super().__init__(coordinator, zone_id, zone_data)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/entity.py", line 298, in __init__
    self.system_id = zone_data[AZD_SYSTEM_ID]
                     ~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'system-id'
2024-06-30 17:48:30.062 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up airzone_cloud platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/sensor.py", line 138, in async_setup_entry
    sensors.extend(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/sensor.py", line 139, in <genexpr>
    AirzoneZoneSensor(
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/sensor.py", line 217, in __init__
    super().__init__(coordinator, zone_id, zone_data)
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/entity.py", line 298, in __init__
    self.system_id = zone_data[AZD_SYSTEM_ID]
                     ~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'system-id'


### Additional information

_No response_
home-assistant[bot] commented 1 week ago

Hey there @noltari, mind taking a look at this issue as it has been labeled with an integration (airzone_cloud) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `airzone_cloud` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign airzone_cloud` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


airzone_cloud documentation airzone_cloud source (message by IssueLinks)

Noltari commented 1 week ago

@sparks1372 it would be great if you could give more information about your Airzone HW, since this would help a lot. Also, if you could give me access to your Airzone Cloud installation I can debug the issue and see what's going and why your setup isn't providing "system_number", which I've always considered as a mandatory parameter...

In order to give me access to your Airzone Cloud installation you have two options:

  1. Invite me: https://www.airzonecontrol.com/aa/en/support/faqs/invite-a-user/
  2. Provide your login credentials via email.