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

Rate limit exceeded in automations #814

Open
qu4nd opened this issue Nov 29, 2024 · 3 comments
Open

Rate limit exceeded in automations #814

qu4nd opened this issue Nov 29, 2024 · 3 comments
Labels

Comments

@qu4nd
Copy link

qu4nd commented Nov 29, 2024

Tapo integration v 3.1.2 on Homeassistant 2024.11.3 (and older) in a docker container on a Raspberry Pi.

I regularly experience the issue, that Tapo throws an error when I'm switching one of my devices (seems to affect P100 only) in automations:

Error: Returned error_code: TapoError.ERR_DEVICE: Rate limit exceeded

A second later It works again as if nothing happend.

That's one of the log entries I've found:
2024-11-28 07:42:47.888 ERROR (MainThread) [homeassistant.components.automation.hausnummer_off] Auto - Lights off at 0:00 l sunrise : Error executing script. Unexpected error for device at pos 2: Returned error_code: TapoError.ERR_DEVICE: Rate limit exceeded Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 781, in _async_device_step await device_action.async_call_action_from_config( 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/switch/device_action.py", line 36, in async_call_action_from_config await toggle_entity.async_call_action_from_config( File "/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py", line 124, in async_call_action_from_config await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo/switch.py", line 64, in async_turn_off (await self._plug.turn_off()).get_or_raise() File "/usr/local/lib/python3.12/site-packages/plugp100/common/functional/tri.py", line 159, in get_or_raise raise self.value plugp100.responses.tapo_exception.TapoException: Returned error_code: TapoError.ERR_DEVICE: Rate limit exceeded 2024-11-28 07:42:47.896 ERROR (MainThread) [homeassistant.components.automation.hausnummer_off] While executing automation automation.hausnummer_off Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 743, in async_trigger return await self.action_script.async_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801, in async_run return await asyncio.shield(create_eager_task(run.async_run())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 581, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 781, in _async_device_step await device_action.async_call_action_from_config( 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/switch/device_action.py", line 36, in async_call_action_from_config await toggle_entity.async_call_action_from_config( File "/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py", line 124, in async_call_action_from_config await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/tapo/switch.py", line 64, in async_turn_off (await self._plug.turn_off()).get_or_raise() File "/usr/local/lib/python3.12/site-packages/plugp100/common/functional/tri.py", line 159, in get_or_raise raise self.value plugp100.responses.tapo_exception.TapoException: Returned error_code: TapoError.ERR_DEVICE: Rate limit exceeded

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 29, 2024
@qu4nd
Copy link
Author

qu4nd commented Dec 31, 2024

Well, since it's still happening, I would love to see any progress on this 😅
Screenshot_20241231-133145

@github-actions github-actions bot removed the stale label Dec 31, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant