-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Unavailable devices after Error requesting Fujitsu HVAC data #130612
Comments
Hey there @crevetor, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) fujitsu_fglair documentation |
I have the same problem. File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 944, in async_update_ha_state |
@balouken your error comes from the other integration, not fujitsu_fglair as far as I can tell from your logs. @Danglot-EM I'll look into what can be done so that these errors don't cause your device to become unavailable. |
@crevetor but my devices getting unavailable every hour or so. I take a look to deleta the other integrations config files.... maybe the problems are related with post beginner... |
@balouken maybe it is because both integrations are trying to fetch the same data from the backend at the same time. Try to disable the old integration and see if it fixes it. |
The integration was already deleted. For now no errors to see. |
Still happening. became unavailable 2024-11-17 21:28:35.070 ERROR (MainThread) [homeassistant.components.fujitsu_fglair.coordinator] Error requesting Fujitsu HVAC data data: 429, message='Attempt to decode JSON with unexpected mimetype: ', url='https://ads-eu.aylanetworks.com/apiv1/dsns/AC000W000815628/properties.json' |
It's happening also with, it keep showing unavailable most of the time & I have to restart the Homeassistant every time to reconnect. Here is the log: Logger: homeassistant.components.fujitsu_fglair.coordinator Unexpected error fetching Fujitsu HVAC data data |
It seems that if one device goes offline, the integration stops & all entities becames unavailable!!! |
Any update, can the code the be updated by which if one device goes offline , it should not impact others?? |
Any luck pls @crevetor !!! :( |
I am working on a patch to address this issue. I should have a PR up in a few days. |
Really appreciate it 🙏 |
The problem
Sometimes my Aircon devices are unavailable in Home Assitant.
It seems that it is related to a requesting error, I found this in the logs:
`Logger: homeassistant.components.fujitsu_fglair.coordinator
Source: helpers/update_coordinator.py:395
integration: FGLair (documentation, issues)
First occurred: 13 November 2024 at 21:34:13 (17 occurrences)
Last logged: 12:16:26
Error requesting Fujitsu HVAC data data: 429, message='Attempt to decode JSON with unexpected mimetype: ', url='https://ads-eu.aylanetworks.com/apiv1/dsns/AC000W00******/properties.json'
Error requesting Fujitsu HVAC data data: 429, message='Attempt to decode JSON with unexpected mimetype: ', url='https://ads-eu.aylanetworks.com/apiv1/dsns/AC000W00******/properties.json'
Error requesting Fujitsu HVAC data data: 429, message='Attempt to decode JSON with unexpected mimetype: ', url='https://ads-eu.aylanetworks.com/apiv1/dsns/AC000W00******/properties.json'
Error requesting Fujitsu HVAC data data: 429, message='Attempt to decode JSON with unexpected mimetype: ', url='https://ads-eu.aylanetworks.com/apiv1/dsns/AC000W00******/properties.json'`
If I reload the integration it is fixed, also, after a while it is automatically fixed. Maybe the integration should be more tolerant to this error.
What version of Home Assistant Core has the issue?
core-2024.11.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
fujitsu_fglair
Link to integration documentation on our website
https://www.home-assistant.io/integrations/fujitsu_fglair
Diagnostics information
2024-11-14 13:09:15.049 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140732845430608] Unexpected exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/climate/init.py", line 786, in async_handle_set_swing_mode_service
await self.async_set_swing_mode(swing_mode)
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/fujitsu_fglair/climate.py", line 136, in async_set_swing_mode
await self.device.async_set_swing_mode(HA_TO_FUJI_SWING[swing_mode])
File "/srv/homeassistant/lib/python3.12/site-packages/ayla_iot_unofficial/fujitsu_hvac.py", line 387, in async_set_swing_mode
await self.async_set_horizontal_swing(False)
File "/srv/homeassistant/lib/python3.12/site-packages/ayla_iot_unofficial/fujitsu_hvac.py", line 405, in async_set_horizontal_swing
raise SettingNotSupportedError("Device does not support horizontal swing")
ayla_iot_unofficial.fujitsu_hvac.SettingNotSupportedError: Device does not support horizontal swing
2024-11-14 13:10:11.191 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140732845430608] Unexpected exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/climate/init.py", line 786, in async_handle_set_swing_mode_service
await self.async_set_swing_mode(swing_mode)
File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/fujitsu_fglair/climate.py", line 136, in async_set_swing_mode
await self.device.async_set_swing_mode(HA_TO_FUJI_SWING[swing_mode])
File "/srv/homeassistant/lib/python3.12/site-packages/ayla_iot_unofficial/fujitsu_hvac.py", line 387, in async_set_swing_mode
await self.async_set_horizontal_swing(False)
File "/srv/homeassistant/lib/python3.12/site-packages/ayla_iot_unofficial/fujitsu_hvac.py", line 405, in async_set_horizontal_swing
raise SettingNotSupportedError("Device does not support horizontal swing")
ayla_iot_unofficial.fujitsu_hvac.SettingNotSupportedError: Device does not support horizontal swing
2024-11-14 13:10:19.485 ERROR (MainThread) [homeassistant.components.fujitsu_fglair.coordinator] Error requesting Fujitsu HVAC data data: 429, message='Attempt to decode JSON with unexpected mimetype: ', url='https://ads-eu.aylanetworks.com/apiv1/dsns/AC000W002538549/properties.json'
2024-11-14 13:10:19.485 DEBUG (MainThread) [homeassistant.components.fujitsu_fglair.coordinator] Finished fetching Fujitsu HVAC data data in 0.174 seconds (success: False)
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: