-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Open
Labels
Description
The problem
Covers don't close every day, using Netatmo integration with my own development credentials.
Debug logs say :
2025-12-12 16:54:35.103 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 0
2025-12-12 16:55:35.104 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 0
2025-12-12 16:56:35.174 DEBUG (MainThread) [pyatmo.auth] The Netatmo API returned b'{\r\n "error": {\r\n "code": 26,\r\n "message": "Maximum api usage reached"\r\n }\r\n}' (429)
2025-12-12 16:56:35.174 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] 429 - - Maximum api usage reached (26) when accessing 'https://api.netatmo.com/api/homestatus'
2025-12-12 16:56:35.174 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 20
2025-12-12 16:57:35.106 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 15
2025-12-12 16:58:35.106 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 12
2025-12-12 16:58:40.341 DEBUG (MainThread) [pyatmo.auth] The Netatmo API returned b'{\r\n "error": {\r\n "code": 26,\r\n "message": "Maximum api usage reached"\r\n }\r\n}' (429)
2025-12-12 16:58:40.341 ERROR (MainThread) [homeassistant.components.automation.fermeture_volets_avec_soleil_15_mn] Fermeture volets avec soleil +15 mn: Error executing script. Unexpected error for device at pos 1: 429 - - Maximum api usage reached (26) when accessing 'https://api.netatmo.com/api/setstate'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1026, in _async_step_device
await device_action.async_call_action_from_config(
self._hass, self._action, dict(self._variables), self._context
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 72, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File "/usr/src/homeassistant/homeassistant/components/cover/device_action.py", line 143, in async_call_action_from_config
await hass.services.async_call(
DOMAIN, service, service_data, blocking=True, context=context
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2835, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2878, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 832, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 904, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/netatmo/cover.py", line 80, in async_close_cover
await self.device.async_close()
File "/usr/local/lib/python3.13/site-packages/pyatmo/modules/module.py", line 464, in async_close
return await self.async_set_target_position(self.__close_position)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyatmo/modules/module.py", line 454, in async_set_target_position
return await self.home.async_set_state(json_roller_shutter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyatmo/home.py", line 328, in async_set_state
resp: ClientResponse = await self.auth.async_post_api_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/pyatmo/auth.py", line 88, in async_post_api_request
return await self.async_post_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/pyatmo/auth.py", line 111, in async_post_request
return await self.process_response(resp, url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyatmo/auth.py", line 142, in process_response
await self.handle_error_response(resp, resp_status, url)
File "/usr/local/lib/python3.13/site-packages/pyatmo/auth.py", line 170, in handle_error_response
raise ApiError(message)
pyatmo.exceptions.ApiError: 429 - - Maximum api usage reached (26) when accessing 'https://api.netatmo.com/api/setstate'
2025-12-12 16:59:35.108 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 10
2025-12-12 17:00:35.108 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 8
2025-12-12 17:01:35.109 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 7
2025-12-12 17:02:35.110 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 6
2025-12-12 17:03:35.111 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 6
2025-12-12 17:04:35.112 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Calls per hour: 5
What version of Home Assistant Core has the issue?
core-2025.12.3
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
Netatmo
Link to integration documentation on our website
https://www.home-assistant.io/integrations/netatmo/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response