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

The integration stop working #101

Open
MiAutomations opened this issue Mar 12, 2024 · 45 comments
Open

The integration stop working #101

MiAutomations opened this issue Mar 12, 2024 · 45 comments

Comments

@MiAutomations
Copy link

Hello

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

image

Can you please check ?
Thank you

@QNTLO
Copy link

QNTLO commented Mar 12, 2024

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

@davisuco
Copy link

I have same issue after upgrade to 2024.3.0

@jeffFREEMAN
Copy link

same issue after upgrade

@hernnyy
Copy link

hernnyy commented Mar 13, 2024

same here
image

@talik31
Copy link

talik31 commented Mar 13, 2024

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

@tbkon3
Copy link

tbkon3 commented Mar 14, 2024

I have same issue after upgrade to 2024.3.0

@ELFHOUSE
Copy link

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

@LeoeLeoeL
Copy link

Same for me

@sinseman44
Copy link

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

@QNTLO
Copy link

QNTLO commented Mar 14, 2024

Can anyone who already updated confirm if 2024.3.1 fixes anything?

@davisuco
Copy link

I just upgraded but still issue is there

@LeoeLeoeL
Copy link

+1

@MacPaKKo
Copy link

MacPaKKo commented Mar 15, 2024

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.

@user2684
Copy link
Owner

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

@talik31
Copy link

talik31 commented Mar 16, 2024

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

@umarino
Copy link

umarino commented Mar 16, 2024

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

@talik31
Copy link

talik31 commented Mar 16, 2024

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.

@peppeman75
Copy link

thank, working great!!

@peppeman75
Copy link

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

@umarino
Copy link

umarino commented Mar 16, 2024

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 :)

@user2684
Copy link
Owner

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

@davisuco
Copy link

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

Thanks!

@umarino
Copy link

umarino commented Mar 18, 2024

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 :)

@fcaronte
Copy link

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
Copy link

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?

@tbkon3
Copy link

tbkon3 commented Mar 20, 2024

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

@Flizs
Copy link

Flizs commented Mar 21, 2024

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.

@hernnyy
Copy link

hernnyy commented Mar 22, 2024

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

@user2684
Copy link
Owner

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

@umarino
Copy link

umarino commented Mar 23, 2024

image

@Matuuu96
Copy link

There is no need to change API url, just put 1 USD to your balance and restart HA.

@VangelisP
Copy link

There is no need to change API url, just put 1 USD to your balance and restart HA.

I can confirm that somehow, magically, this works.
I have 2 cameras that used to work with the version older than 2024.3.0
Thanks!

@fcaronte
Copy link

Umh i can't understand why all this requests, seem as I can't use for free anymore on home assistant I have the streaming trough ONVIF and I use only the enable\disable motion movement and close\open camera on two camera around 10 request at day or lower and can't understand why say over 1000... Now on imou integration I disabled all other functions and keep only the two I use let's see if is better Screenshot_20240324_101151_Chrome.jpg

Screenshot_20240324_101132_Chrome.jpg

@user2684
Copy link
Owner

@fcaronte I have a similar use case, I use the integration only for programmatically enable/disable motion detection when the main alarm is set. Have you already tried increasing the polling interval? I mean, even to 6 hours if you don't need to refresh the data. Also please find all the details regarding the calls the integration makes here: https://community.home-assistant.io/t/imou-life-cloud-integration/462439/202

@fcaronte
Copy link

@fcaronte I have a similar use case, I use the integration only for programmatically enable/disable motion detection when the main alarm is set. Have you already tried increasing the polling interval? I mean, even to 6 hours if you don't need to refresh the data. Also please find all the details regarding the calls the integration makes here: https://community.home-assistant.io/t/imou-life-cloud-integration/462439/202

Nope, I need to give a check, thanks

@kaesar3arg
Copy link

Hello, I was able to make it work by going to https://open.imoulife.com/consoleNew/myApp/appInfo, edit my app information, select Account Info H5/Web to modify something, save the changes. I went to IMOU life eb HA and recharged and walked away. Greetings

@foekpham
Copy link

Hello, I was able to make it work by going to https://open.imoulife.com/consoleNew/myApp/appInfo, edit my app information, select Account Info H5/Web to modify something, save the changes. I went to IMOU life eb HA and recharged and walked away. Greetings

This worked for me 👍

@woody4165
Copy link

Hello, I was able to make it work by going to https://open.imoulife.com/consoleNew/myApp/appInfo, edit my app information, select Account Info H5/Web to modify something, save the changes. I went to IMOU life eb HA and recharged and walked away. Greetings

Thanks for the info.
You mean to select only H5/web or can I leave also PC Client and Android App ?

@kaesar3arg
Copy link

kaesar3arg commented Mar 29, 2024 via email

@gRosmorduc
Copy link

Hello, I was able to make it work by going to https://open.imoulife.com/consoleNew/myApp/appInfo, edit my app information, select Account Info H5/Web to modify something, save the changes. I went to IMOU life eb HA and recharged and walked away. Greetings

Works for me too !! Thanks a lot !

@wingmanx
Copy link

Hello, I was able to make it work by going to https://open.imoulife.com/consoleNew/myApp/appInfo, edit my app information, select Account Info H5/Web to modify something, save the changes. I went to IMOU life eb HA and recharged and walked away. Greetings

Thanks! Worked for me.

@alexs197912
Copy link

alexs197912 commented Mar 31, 2024

Hello, I was able to make it work by going to https://open.imoulife.com/consoleNew/myApp/appInfo, edit my app information, select Account Info H5/Web to modify something, save the changes. I went to IMOU life eb HA and recharged and walked away. Greetings

Flagging H5/web works also for me.

@user2684
Copy link
Owner

user2684 commented Apr 1, 2024

In my experience changing the app info is not necessary. I just charged the account, reloaded the integration in HA (not even restarted it) and started working back again. It might be that changing the app info and generating a new appId would make the counter starting over but still not required from what I can see. Am I the only one?

@mabusdogma
Copy link

mabusdogma commented Apr 21, 2024

Could it be the same issue?

`homeassistant.config_entries
Fuente: config_entries.py:551
Ocurrió por primera vez: 1:37:30 a. m. (9 ocurrencias)
Último inicio de sesión: 7:13:56 p. m.

Error setting up entry Camara de salon 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 551, 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 `

@ioman2
Copy link

ioman2 commented Apr 26, 2024

It is simple to solve the problem with "API error":
If you are from the area:
East Asia Data Center https://openapi-sg.easy4ip.com:443/openapi
Central Europe Data Center https://openapi-fk.easy4ip.com:443/openapi
Western America Data Center https://openapi-or.easy4ip.com:443/openapi

My information is from "https://open.imoulife.com/book/http/develop.html"
I'm from Central Europe, so I put https://openapi-fk.easy4ip.com:443/openapi and it worked perfectly.

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

No branches or pull requests