imou_life icon indicating copy to clipboard operation
imou_life copied to clipboard

The integration stop working

Open MiAutomations opened this issue 11 months ago • 46 comments

Hello

After the last Home Assistant update the integration stops working... all the devices/entities are unavailable

image

Can you please check ? Thank you

MiAutomations avatar Mar 12 '24 09:03 MiAutomations

Can you please state for which update this is so I can postpone updating myself. Thanks in advance!

QNTLO avatar Mar 12 '24 19:03 QNTLO

I have same issue after upgrade to 2024.3.0

davisuco avatar Mar 13 '24 08:03 davisuco

same issue after upgrade

jeffFREEMAN avatar Mar 13 '24 10:03 jeffFREEMAN

same here image

hernnyy avatar Mar 13 '24 12:03 hernnyy

Same issue since upgrading to 2024.3.0, reloading the integration isn't solving it.

talik31 avatar Mar 13 '24 22:03 talik31

I have same issue after upgrade to 2024.3.0

tbkon3 avatar Mar 14 '24 02:03 tbkon3

same for me and the api was ok with ha 12.rc1 but with the update to 12.1 it stoped working

Home Assistant

Core 2024.3.0 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240306.0

ELFHOUSE avatar Mar 14 '24 09:03 ELFHOUSE

Same for me

LeoeLeoeL avatar Mar 14 '24 10:03 LeoeLeoeL

same for me. the cloud API URL (https://openapi.easy4ip.com/openapi) seems to be down ?

sinseman44 avatar Mar 14 '24 14:03 sinseman44

Can anyone who already updated confirm if 2024.3.1 fixes anything?

QNTLO avatar Mar 14 '24 20:03 QNTLO

I just upgraded but still issue is there

davisuco avatar Mar 14 '24 21:03 davisuco

+1

LeoeLeoeL avatar Mar 15 '24 10:03 LeoeLeoeL

Same here. First, I had the problem with the new limits for cloud data adopted by Imou. Then Imou life stopped working, I suppose after the HA update.

MacPaKKo avatar Mar 15 '24 11:03 MacPaKKo

Hi all, please always check or share the logs when reporting these errors :-) Have a look here: https://community.home-assistant.io/t/imou-life-cloud-integration/462439/202 I think this is what you are experiencing. Thanks

user2684 avatar Mar 16 '24 09:03 user2684

Hi all, please always check or share the logs when reporting these errors :-) Have a look here: https://community.home-assistant.io/t/imou-life-cloud-integration/462439/202 I think this is what you are experiencing. Thanks

I don't think it's the same issue, my loss of functionnality appeared right after the upgrade to 2024.3.0 and the imou resource seems to still have 29945 message push & 1.89GB available

image

I've activated logging and reload the integration and here are the generated logs (where indeed I'm seeing a "APIError: OP1013: Call interface times exceed limit (total)" which is not consistent with imou my resource content) :

2024-03-16 12:48:18.723 DEBUG (MainThread) [custom_components.imou_life] Loading entry 84af7115374bbcb2f65a22012715855b
2024-03-16 12:48:18.723 DEBUG (MainThread) [custom_components.imou_life] Setting up device caméra imou entrée (9H0E8F0PBV9C98F)
2024-03-16 12:48:18.724 DEBUG (MainThread) [custom_components.imou_life] Setting API base url to https://openapi.easy4ip.com/openapi
2024-03-16 12:48:18.993 ERROR (MainThread) [imouapi] 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).

2024-03-16 12:48:19.071 ERROR (MainThread) [imouapi] 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).

2024-03-16 12:48:19.072 ERROR (MainThread) [imouapi] Too many unsuccesful connection attempts
2024-03-16 12:48:19.077 ERROR (MainThread) [custom_components.imou_life] 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

2024-03-16 12:48:19.078 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry caméra imou entrée 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 504, 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

For additional info here are my versions: Core 2024.3.0 Supervisor 2024.03.0 Operating System 12.1 Interface utilisateur 20240306.0 imou life version 1.0.15 installed via HACS

talik31 avatar Mar 16 '24 12:03 talik31

I have the same issue but for me it depends on IMOU URL API modification probably for the management of the limit repricing.

Take a look to the API URL: https://open.imoulife.com/book/http/develop.html

Actually I'm using ONVIF integration to bypass the problem

umarino avatar Mar 16 '24 14:03 umarino

Issue is "kinda solved" for me.

  1. I've configured the cameras with onvif integration. There's an issue with onvif integration with my imou cam model where all the cameras are identifying with the same false mac adress -> solved in this comment
  2. I've deactivated the camera video stream entity from IMOU integration.
  3. Changed the api-url from "https://openapi.easy4ip.com/openapi" to "https://openapi-fk.easy4ip.com:443/openapi" in .storage\core.config_entries & reboot HA
  4. Put 1USD in my account balance to keep using IMOU Integration for the detection activation then reload the integration and it's working fine again

So I guess the issue is on IMOU side & that setting a minimum amount of money in the account balance unstuck the situation. I haven't tried to get rid of the IMOU dev account & reset it from scratch but maybe this option is also working.

talik31 avatar Mar 16 '24 17:03 talik31

thank, working great!!

peppeman75 avatar Mar 16 '24 17:03 peppeman75

I solved it like this: taken from the Imou app the name of the camera found the ip inside the router added the camera with ONVIF integration User: admin Password: from the Imou Android program read "device label" --> security code once this is done the camera works in Onvif. HI Joseph

peppeman75 avatar Mar 16 '24 18:03 peppeman75

Issue is "kinda solved" for me.

  1. I've configured the cameras with onvif integration. There's an issue with onvif integration with my imou cam model where all the cameras are identifying with the same false mac adress -> solved in this comment
  2. I've deactivated the camera video stream entity from IMOU integration.
  3. Changed the api-url from "https://openapi.easy4ip.com/openapi" to "https://openapi-fk.easy4ip.com:443/openapi" in .storage\core.config_entries & reboot HA
  4. Put 1USD in my account balance to keep using IMOU Integration for the detection activation then reload the integration and it's working fine again

So I guess the issue is on IMOU side & that setting a minimum amount of money in the account balance unstuck the situation. I haven't tried to get rid of the IMOU dev account & reset it from scratch but maybe this option is also working.

Great bro, solved for me also just charging 1$ on IMOU Dev! Thks a lot :)

umarino avatar Mar 16 '24 18:03 umarino

Thanks for the comments guys. Just to confirm, has the URL change fixed the problem or charging with $ the account or both? Thanks

user2684 avatar Mar 17 '24 10:03 user2684

I have the same question. What would be the minimum change needed to make it work again?

Thanks!

davisuco avatar Mar 18 '24 11:03 davisuco

Thanks for the comments guys. Just to confirm, has the URL change fixed the problem or charging with $ the account or both? Thanks

You have to modify the API URL but it works again only after charging with *$ the account.

... both :)

umarino avatar Mar 18 '24 12:03 umarino

Issue is "kinda solved" for me.

  1. I've configured the cameras with onvif integration. There's an issue with onvif integration with my imou cam model where all the cameras are identifying with the same false mac adress -> solved in this comment
  2. I've deactivated the camera video stream entity from IMOU integration.
  3. Changed the api-url from "https://openapi.easy4ip.com/openapi" to "https://openapi-fk.easy4ip.com:443/openapi" in .storage\core.config_entries & reboot HA
  4. Put 1USD in my account balance to keep using IMOU Integration for the detection activation then reload the integration and it's working fine again

So I guess the issue is on IMOU side & that setting a minimum amount of money in the account balance unstuck the situation. I haven't tried to get rid of the IMOU dev account & reset it from scratch but maybe this option is also working.

I add 1dollar and try putting new link on the login page but is not work for me, but can't find the file in your location

fcaronte avatar Mar 18 '24 13:03 fcaronte

Edit I fix my login problem, practically I stupidly use Admin ID instead of App ID to login 🤣

Another question now to save request I use onvif as suggested for video streaming, and imou plugin to send requests like close camera or disable motion detection. Is request used only on really usage or I need to disable all other item I don't need to use?

fcaronte avatar Mar 18 '24 23:03 fcaronte

Issue is "kinda solved" for me.

  1. I've configured the cameras with onvif integration. There's an issue with onvif integration with my imou cam model where all the cameras are identifying with the same false mac adress -> solved in this comment
  2. I've deactivated the camera video stream entity from IMOU integration.
  3. Changed the api-url from "https://openapi.easy4ip.com/openapi" to "https://openapi-fk.easy4ip.com:443/openapi" in .storage\core.config_entries & reboot HA
  4. Put 1USD in my account balance to keep using IMOU Integration for the detection activation then reload the integration and it's working fine again

So I guess the issue is on IMOU side & that setting a minimum amount of money in the account balance unstuck the situation. I haven't tried to get rid of the IMOU dev account & reset it from scratch but maybe this option is also working.

Fixed for me too with:

  1. Put 1USD in my account balance to keep using IMOU Integration
  2. Changed the api-url from "https://openapi.easy4ip.com/openapi" to "https://openapi-fk.easy4ip.com:443/openapi" in .storage\core.config_entries & reboot HA

tbkon3 avatar Mar 20 '24 21:03 tbkon3

Le problème est "un peu résolu" pour moi.

  1. J'ai configuré les caméras avec l'intégration ONVIF. Il y a un problème avec l'intégration d'Onvif avec mon modèle de caméra imou où toutes les caméras s'identifient avec la même fausse adresse Mac -> résolu dans ce commentaire
  2. J'ai désactivé l'entité de flux vidéo de la caméra de l'intégration IMOU.
  3. Modification de l'URL de l'API de " https://openapi.easy4ip.com/openapi " à " https://openapi-fk.easy4ip.com:443/openapi " dans .storage\core.config_entries et redémarrage HA
  4. Mettez 1 USD sur le solde de mon compte pour continuer à utiliser l'intégration IMOU pour l'activation de la détection, puis rechargez l'intégration et cela fonctionne à nouveau correctement.

Je suppose donc que le problème vient du côté d'IMOU et que la définition d'un montant minimum d'argent dans le solde du compte a permis de débloquer la situation. Je n'ai pas essayé de me débarrasser du compte de développement IMOU et de le réinitialiser à partir de zéro, mais peut-être que cette option fonctionne également.

Corrigé pour moi aussi avec :

  1. Mettez 1 USD sur le solde de mon compte pour continuer à utiliser l'intégration IMOU
  2. Modification de l'URL de l'API de " https://openapi.easy4ip.com/openapi " à " https://openapi-fk.easy4ip.com:443/openapi " dans .storage\core.config_entries et redémarrage HA

Je vous confirme qu'en suivant cette méthode cela refonctionne bien.

Flizs avatar Mar 21 '24 20:03 Flizs

Le problème est "un peu résolu" pour moi.

  1. J'ai configuré les caméras avec l'intégration ONVIF. Il y a un problème avec l'intégration d'Onvif avec mon modèle de caméra imou où toutes les caméras s'identifient avec la même fausse adresse Mac -> résolu dans ce commentaire
  2. J'ai désactivé l'entité de flux vidéo de la caméra de l'intégration IMOU.
  3. Modification de l'URL de l'API de " https://openapi.easy4ip.com/openapi " à " https://openapi-fk.easy4ip.com:443/openapi " dans .storage\core.config_entries et redémarrage HA
  4. Mettez 1 USD sur le solde de mon compte pour continuer à utiliser l'intégration IMOU pour l'activation de la détection, puis rechargez l'intégration et cela fonctionne à nouveau correctement.

Je suppose donc que le problème vient du côté d'IMOU et que la définition d'un montant minimum d'argent dans le solde du compte a permis de débloquer la situation. Je n'ai pas essayé de me débarrasser du compte de développement IMOU et de le réinitialiser à partir de zéro, mais peut-être que cette option fonctionne également.

Corrigé pour moi aussi avec :

  1. Mettez 1 USD sur le solde de mon compte pour continuer à utiliser l'intégration IMOU
  2. Modification de l'URL de l'API de " https://openapi.easy4ip.com/openapi " à " https://openapi-fk.easy4ip.com:443/openapi " dans .storage\core.config_entries et redémarrage HA

Je vous confirme qu'en suivant cette méthode cela refonctionne bien.

It work for me just charging 1usd and restarting the HA

hernnyy avatar Mar 22 '24 16:03 hernnyy

Hi, charging the account (or waiting for the next monthly cycle) should suffice, I think https://openapi.easy4ip.com/openapi and https://openapi-fk.easy4ip.com/openapi are alias one of the other so should not be strictly needed. Can someone confirm that charging the account (and restarting HA o reloading the integration) would be enough without changing the URL? Thanks

user2684 avatar Mar 23 '24 13:03 user2684

image

umarino avatar Mar 23 '24 13:03 umarino