Closed crackers81 closed 1 year ago
Might be that verisure has closed down this api now. The solution would be to start using version-2 of python-verisure. This is homeassistant, right?
version-2 ???
The branch version-2 (default branch). It uses the new graphql based API. Homeassistant still uses version-1, but @niro1987 is working on an updated plugin. More info in this discussion #138
Alright, I had the older 1.8.1 version installed. Now with the 2.6.1 it is again able to login, also without mfa. BUT this newer version of sessions.py is unfortunately not backward compatible. In my home-made Python script (that is doing much more than just Verisure) I used get_overview() and this is not available anymore. I now have to make a rather huge re-design of my script :(
Anyway, Per, thank you very much!! I have now sorted out things in my script, everything is back to normal in my case when using version-2 Best regards, Walter
Just one more Q, I do experience an automatic logoff after approx 15 minutes. Is this expected?
I guess I understand, the life time of the cookie is 15 minutes.... When this happen I just do a new login: session.login() This seems to work fine
Have you tried to do update_cookie()?
Thanks, just tried that, it seems to be enough, is working fine, no need to do new login Maybe have a routin (in my case I consider a special thread) that updates the cookie let's say every ten minute, should let you be online all time Best regards, Walter
Worked fine. Separate thread in my python script, updating the cookie every 10 minute. My feeling is also that the command and response when operating smart plugs is faster with this api. Is it just me?