imou_life: Integration failed to set up
It has been 2 maybe 3 days since the integration is down. Nothing is working. I have entries for 3 Imou cameras, all 3 are down… I get “Failed to set up” warnings for all of them. I don’t know what caused it, but i suspect it happened after the core update to 2024.2.3. Every core update so far since 2024.2.1 broke something in my setup.
I also redownloaded the integration, and it didn’t fix anything.
Version of the custom_component
1.0.15
Debug log
Logger: imouapi
Source: custom_components/imou_life/__init__.py:89
Integration: Imou Life ([documentation](https://github.com/user2684/imou_life), [issues](https://github.com/user2684/imou_life/issues))
First occurred: 15:49:16 (9 occurrences)
Last logged: 15:49:18
APIError: OP1013: Call interface times exceed limit (total). Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 155, in _async_call_api await self.async_connect() File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 117, in async_connect data = await self._async_call_api("accessToken", {}, True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 227, in _async_call_api raise APIError(error_message) imouapi.exceptions.APIError: OP1013: Call interface times exceed limit (total).
Too many unsuccesful connection attempts
Logger: custom_components.imou_life
Source: custom_components/imou_life/__init__.py:91
Integration: Imou Life ([documentation](https://github.com/user2684/imou_life), [issues](https://github.com/user2684/imou_life/issues))
First occurred: 15:49:18 (3 occurrences)
Last logged: 15:49:18
NotConnected: Traceback (most recent call last): File "/config/custom_components/imou_life/__init__.py", line 89, in async_setup_entry await device.async_initialize() File "/usr/local/lib/python3.12/site-packages/imouapi/device.py", line 182, in async_initialize device_array = await self._api_client.async_api_deviceBaseDetailList([self._device_id]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 279, in async_api_deviceBaseDetailList return await self._async_call_api(api, payload) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 160, in _async_call_api raise NotConnected() imouapi.exceptions.NotConnected
Logger: homeassistant.config_entries
Source: config_entries.py:444
First occurred: 15:49:18 (3 occurrences)
Last logged: 15:49:18
Error setting up entry Cruiser for imou_life
Error setting up entry Bullet for imou_life
Error setting up entry Versa for imou_life
Traceback (most recent call last):
File "/config/custom_components/imou_life/__init__.py", line 89, in async_setup_entry
await device.async_initialize()
File "/usr/local/lib/python3.12/site-packages/imouapi/device.py", line 182, in async_initialize
device_array = await self._api_client.async_api_deviceBaseDetailList([self._device_id])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 279, in async_api_deviceBaseDetailList
return await self._async_call_api(api, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/imouapi/api.py", line 160, in _async_call_api
raise NotConnected()
imouapi.exceptions.NotConnected
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/imou_life/__init__.py", line 92, in async_setup_entry
raise ImouException() from exception
imouapi.exceptions.ImouException
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (2 by maintainers)
Related also to #94. Yes there is been a restriction on Imou API usage. Polling interval is what would need to be changed in order to avoid hitting the limit, agreed. For selecting a good value which stays below the threshold you also need to take into account how many devices you have attached to the imou account since the limit is per account, not per device. I will try to identify a safe value and change it in the next version of the integration, this is the only thing I can do unfortunately 😦 And for video streaming, unless someone has specific needs, ONVIF or RTSP can be used as alternatives.
Confirm.