lindehoff / Indigo-Verisure

An Indigo Plug-in for Verisure
3 stars 2 forks source link

Error when logging in with latest Verisure update #26

Open villesvirtanen opened 5 years ago

villesvirtanen commented 5 years ago

My Verisure system got updated. After update I got following error:

AttributeError: Unable to login to Verisure (2), retry in 120 sec. Reason: 'NoneType' object has no attribute 'group'

Interesting that homebridge-verisure is still working?

CrazyFin commented 5 years ago

I have the same issue over here. I tested by downloading Per Sandström's Verisure package (that is used in this Indigo Verisure plugin) from https://github.com/persandstrom/python-verisure

When running it in command line mode within a terminal window I am able to login to Verisure and get alarm state, device info etc without problems.

I see that the Verisure module from Per was updated in Dec 2018 and the Verisure plugin in Indigo is built on Nov 21 2016 so I guess the Indigo Verisure plugin needs to be rebuilt to use the latest Verisure package from Per?

villesvirtanen commented 5 years ago

My problem was solved, when I disabled the plugin, entered username and password again and enabled the plugin. Then it's logged in magically ;-) and no problems. Weird!

Not sure it's a permanent solution?

CrazyFin commented 5 years ago

You are right!

However, when disabling the plugin it is not possible to enter the configuration data. So I disabled the plugin, enabled it again and then went to config and entered my login name and pwd again and pressed

That generated an error: Verisure Error 'NoneType' object has no attribute 'group'

HOWEVER! The plugin was now able to login again! Wohooo! :-)

Thanks for the tip @vsvirtan! 👍

CrazyFin commented 5 years ago

Looks like it works only the first time... :-(

I get log in error again when the plugin does its re-check every minute (the setting I have). Verisure Error AttributeError: Unable to login to Verisure (3), retry in 180 sec. Reason: 'NoneType' object has no attribute 'group'

CrazyFin commented 5 years ago

Aaaah!

If the plugin is disabled and then enabled (or just reloaded) then the login details needs to be re-entered again until next reload of the plugin....