Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Airzone Cloud Integration #107244

Closed
SneakerDan opened this issue Jan 5, 2024 · 9 comments · Fixed by #114761
Closed

Error Airzone Cloud Integration #107244

SneakerDan opened this issue Jan 5, 2024 · 9 comments · Fixed by #114761

Comments

@SneakerDan
Copy link

The problem

The error occurs after the integration is installed and credentals for the API have been successfully added:

Logger: homeassistant.components.airzone_cloud.coordinator
Source: helpers/update_coordinator.py:300
Integration: Airzone Cloud (documentation, issues)
First occurred: 4 de enero de 2024, 12:45:17 (1085 occurrences)
Last logged: 13:09:08

Unexpected error fetching airzone_cloud data: float() argument must be a string or a real number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/coordinator.py", line 40, in _async_update_data
await self.airzone.update()
File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 770, in update
await self._update()
File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 756, in _update
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 606, in update_aidoos
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 597, in update_aidoo
aidoo.update(device_data)
File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/aidoo.py", line 89, in update
super().update(data)
File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/hvac.py", line 570, in update
self.temp_set_vent_air = float(sp_air_vent[API_CELSIUS])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'

What version of Home Assistant Core has the issue?

core- 2023.12.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

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?

Logger: homeassistant.components.airzone_cloud.coordinator
Source: helpers/update_coordinator.py:300
Integration: Airzone Cloud (documentation, issues)
First occurred: 4 de enero de 2024, 12:45:17 (1085 occurrences)
Last logged: 13:09:08

Unexpected error fetching airzone_cloud data: float() argument must be a string or a real number, not 'NoneType'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/coordinator.py", line 40, in _async_update_data
    await self.airzone.update()
  File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 770, in update
    await self._update()
  File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 756, in _update
    await asyncio.gather(*tasks)
  File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 606, in update_aidoos
    await asyncio.gather(*tasks)
  File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/cloudapi.py", line 597, in update_aidoo
    aidoo.update(device_data)
  File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/aidoo.py", line 89, in update
    super().update(data)
  File "/usr/local/lib/python3.11/site-packages/aioairzone_cloud/hvac.py", line 570, in update
    self.temp_set_vent_air = float(sp_air_vent[API_CELSIUS])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'

Additional information

Airzone device: Aidoo

@home-assistant
Copy link

home-assistant bot commented Jan 5, 2024

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)

@ksong12
Copy link

ksong12 commented Jan 11, 2024

I've got the same issue - very very similar log entries related to sp_air_vent.

@madner81
Copy link

The same error is raised by using the Airzone local integrazion

@Noltari
Copy link
Contributor

Noltari commented Jan 15, 2024

The same error is raised by using the Airzone local integrazion

Local and Cloud API parameters are different, so it's definitely not the same error.
Please, search for existing local integration issues or create a new one with proper logs.

@madner81
Copy link

The same error is raised by using the Airzone local integrazion

Local and Cloud API parameters are different, so it's definitely not the same error. Please, search for existing local integration issues or create a new one with proper logs.

I've created a new issue already, it's the one linked in the comment above and it contains its logs

@Noltari
Copy link
Contributor

Noltari commented Mar 4, 2024

@SneakerDan this should have been fixed with #111879.
Please confirm when 2023.03 is out.

@SneakerDan
Copy link
Author

@Noltari, Home Assistant updated to 2024.03 but the error persist, same error.

@Noltari
Copy link
Contributor

Noltari commented Mar 7, 2024

@Noltari, Home Assistant updated to 2024.03 but the error persist, same error.

@SneakerDan please, attach the log with new version, it helps me a lot.

@SneakerDan
Copy link
Author

The log:
TypeError: float() argument must be a string or a real number, not 'NoneType'
2024-03-07 09:46:26.038 ERROR (MainThread) [homeassistant.components.airzone_cloud.coordinator] Unexpected error fetching airzone_cloud data: float() argument must be a string or a real number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/airzone_cloud/coordinator.py", line 40, in _async_update_data
await self.airzone.update()
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/cloudapi.py", line 840, in update
await self._update()
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/cloudapi.py", line 828, in _update
await self._update_polling()
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/cloudapi.py", line 807, in _update_polling
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/cloudapi.py", line 634, in update_aidoos
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/cloudapi.py", line 625, in update_aidoo
await aidoo.update(update)
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/entity.py", line 116, in update
self.update_data(update)
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/aidoo.py", line 91, in update_data
super().update_data(update)
File "/usr/local/lib/python3.12/site-packages/aioairzone_cloud/hvac.py", line 628, in update_data
self.temp_set_vent_air = float(sp_air_vent[API_CELSIUS])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'
2024-03-07 09:46:28.997 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:28.997362)
2024-03-07 09:46:29.788 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: AUTH[636d4af1-3ffe-4ac6-80b0-95ccf9dedfa9]
2024-03-07 09:46:29.788 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: AUTH[52658449-4484-4593-ba38-967cae638fd3]
2024-03-07 09:46:29.791 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: AUTH[36f25a14-0146-4be0-9af5-badd78b30f90]
2024-03-07 09:46:30.880 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:30.880462)
2024-03-07 09:46:31.981 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:31.981030)
2024-03-07 09:46:32.546 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:32.546156)
2024-03-07 09:46:32.668 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:32.668659)
2024-03-07 09:46:33.980 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:33.980048)
2024-03-07 09:46:34.997 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:34.997853)
2024-03-07 09:46:36.872 DEBUG (MainThread) [aioairzone_cloud.websockets] WS[656a21b0b89a37098cf27f26]: PING (2024-03-07 09:46:36.872215)

@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants