user2684 / imou_life

Home Assistant custom component for controlling Imou devices
MIT License
128 stars 21 forks source link

OP 1013 Call interface times exceed limit (total). What this is meaning? #94

Closed peppe-terra closed 1 month ago

peppe-terra commented 9 months ago

I now that there is a day limit calls for each API as explained here https://open.imoulife.com/book/faq/limit.html, but I don't know to what the message "OP 1013 Call interface times exceed limit (total)" is related. Any suggestion? I get this message every time I use any entity provided by the integration.

Paga777 commented 8 months ago

I think that now with the new rules you pay for practically every operation. I'm quite annoyed with this. try going to the developers site in your account and check your balance. charge a dollar and you'll see that it works again very sad thing

peppe-terra commented 8 months ago

I think you are right. Imou

I'm going to recharge and I will give a feedback.

peppe-terra commented 8 months ago

I recharged my balance and everything is working fine. We must pay to use API. I think there are free calls for every account and after that you must pay. I think I finished my free calls since I use API to move programmatically my cameras using PTZ service. Thank for reply.

Paga777 commented 8 months ago

yes, I made $5 in 3 seconds just for streaming. I use them in the home assistant for real time streaming and I deactivate and activate movement detection via automations so it has become unusable for me. For now I will try the configuration via ONVIF and use additional motion sensors and sooner or later I will definitively abandon the imou ecosystem.

peppe-terra commented 8 months ago

I use ONVIF for streaming. I think $0.02 for 10,000 calls to API is not much expensive. $0.25 / GB for streaming is too much according to me.

peppe-terra commented 8 months ago

I red about pricing on imou site. We have 30.000 free api calls , 30.000 push messages and 2 GB of flows every month. Free credit is reacharged in the first day of every month.

user2684 commented 8 months ago

Yeah, looks like there is now a limit per API call and specifically: ① Interface call times: There is a monthly free limit of 30,000 times, and the excess is charged at a unit price of $0.02/10,000 times; ② Message push times: There is a monthly free quota of 30,000 times, and the excess is charged at a unit price of $0.01/10,000 times; ③ Media Flow: There is a free quota of 2GB per month, and overage is charged at a unit price of $0.25/GB. I still need to figure out how this would affect the operation of the integration. Definitely something to add to the documentation

tapsystem commented 6 months ago

Hi, Do you have an idea of How can i intercept the error "OP 1013 Call interface times exceed limit (total)" in HA ( in script or automation) to avoid the problem stoping loop or actions sequences ? the "continue_on_error: true" don't look to be enough. Thanks by advance

peppe-terra commented 6 months ago

Sorry I don't know. I intercepted the error using node red. I think that you can intercept it analyzing home assistant logs.

tapsystem commented 6 months ago

if you intercept the error with nodRed, can you continue executing the current script / batch ? I've not start study nodRed at the moment, i think it will be for the next step ;)

peppe-terra commented 6 months ago

Node red has a catch node that you can use to handle the error as you like.

Il giorno 13 mag 2024, 22:20, alle ore 22:20, TapSystem @.***> ha scritto:

if you intercept the error with nodRed, can you continue executing the current script / batch ?

-- Reply to this email directly or view it on GitHub: https://github.com/user2684/imou_life/issues/94#issuecomment-2108730335 You are receiving this because you authored the thread.

Message ID: @.***>

user2684 commented 1 month ago

Closing since due to API limit restrictions now documented in the wiki