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

Unavailable devices after Error requesting Fujitsu HVAC data #130612

Open
Danglot-EM opened this issue Nov 14, 2024 · 1 comment
Open

Unavailable devices after Error requesting Fujitsu HVAC data #130612

Danglot-EM opened this issue Nov 14, 2024 · 1 comment

Comments

@Danglot-EM
Copy link

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

@home-assistant
Copy link

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

Code owner commands

Code owners of fujitsu_fglair 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 fujitsu_fglair 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)


fujitsu_fglair documentation
fujitsu_fglair source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant