Page 7 of 10

Re: Verisure Plugin

PostPosted: Mon Apr 01, 2019 6:22 am
by CrazyFin
@micke_lindgren:

I had similar problems until I renamed my Doorman locks to NOT use Swedish characters åäöÅÄÖ.

Re: Verisure Plugin

PostPosted: Tue Apr 02, 2019 4:36 am
by micke__lindgren
@Crazyfin:

I had a hunch that would be the issue but but sadly i get the same result after renaming and re-adding the locks :(
Have you got your locks working as we speak?

Re: Verisure Plugin

PostPosted: Tue Apr 02, 2019 1:50 pm
by CrazyFin
@micke_lindgren:

Yepp, my 4 locks are working fine and I can both see status of the locks in Indigo as well as lock and unlock them from Indigo.

If you log in to "Mina Sidor" @ Verisure, can you see the status of your locks there and can you control them there?

Re: Verisure Plugin

PostPosted: Tue May 28, 2019 12:39 am
by CrazyFin
@lindehoff:

Latest Verisure system update (rolled out during the last 2-3 days to users in Sweden) has caused issues for your cool Verisure Plugin:

"Verisure Error AttributeError: Unable to login to Verisure (4), retry in 240 sec. Reason: 'NoneType' object has no attribute 'group' "

I see that this bug has already been report on GitHub (https://github.com/lindehoff/Indigo-Verisure/issues)

Re: Verisure Plugin

PostPosted: Tue May 28, 2019 1:31 am
by CrazyFin
I went to https://github.com/persandstrom/python-verisure and downloaded Per Sandström's code and run it in my local terminal window and that code seems to work properly:

When I execute the command:
vsure ,<my login name> <my pwd> armstate

I get the following reply
{
"date": "2019-05-28T04:49:50.000Z",
"statusType": "DISARMED",
"changedVia": "HOMEPAD",
"cid": "<CID NUMBER SHOWN HERE>"
}

So it seems to work fine when using Per Sandström's code and running it in command line mode.

I see that Per Sandström's Verisure Python module is updated on Dec 2018 while the Verisure plugin in Indigo is from Nov 2016.
I guess that the Indigo Verisure plugin needs to be rebuilt to include the Dec 2018 version of the Verisure module from Per Sandström?

Re: Verisure Plugin

PostPosted: Tue May 28, 2019 2:02 am
by CrazyFin
UPDATE!

User "vsvirtan" at @lindehoff's GitHub page (https://github.com/lindehoff/Indigo-Verisure/issues/26) told me that he got it to work just by re-entering his username and pwd in the config window for the Verisure plugin.

I tested it by re-entering my login data and pressing <SAVE>. That generated an error
"Verisure Error 'NoneType' object has no attribute 'group' "
BUT the plugin logged in to Verisure without problems now! :shock:

Not sure what the problem was but it seems to be working as it should now.

Re: Verisure Plugin

PostPosted: Tue May 28, 2019 2:09 am
by CrazyFin
I guess I was jumping of joy too early... :oops:

When the Verisure plugin tries to do its updated check (I have set it to check alarm status every minute) I get the error again:

"Verisure Error AttributeError: Unable to login to Verisure (3), retry in 180 sec. Reason: 'NoneType' object has no attribute 'group' "

So it seems to work only the first time I have re-entered the login details and pressed save. Any subsequent login attempts by the plugin to Verisure API fails.

So strange, when I now have enabled the DEBUG flag it seems to work ok on the subsequent login attempts as well....

I'll keep monitoring this and report back after few hours.

Re: Verisure Plugin

PostPosted: Tue May 28, 2019 2:19 am
by CrazyFin
Ok, so if I re-enter my login name and pwd to Verisure and press SAVE then it all works fine until I RELOAD the plugin.
After I have reloaded the plugin I need to re-enter login details in order to get it to work again.

Nope, after about 1 hour the same error came back again even though I had not reloaded the plugin... :cry:


2019-05-28 10:33:07.299 Verisure Debug Checking status for all Verisure Devices
2019-05-28 10:33:07.303 Verisure Debug Getting update for device: ALARM
2019-05-28 10:33:07.497 Verisure Error ResponseError: Unable to update device state on server. Connection to Verisure will be reseted. Device: ALARM, Reason: Unable to validate response form My Pages, status code: 500 - Data:
2019-05-28 10:33:07.505 Verisure Debug Currently not logged in, try again.


Re-entering login details again and pressing SAVE helps. It will probably continue to work for another hour or so until login fails again.

Re: Verisure Plugin

PostPosted: Tue May 28, 2019 4:04 am
by tazswe
I have made some tests with the plugin and you can get status of a lot of things, for example who unlocked the door and so on. :D
Problem is that you can’t change status more frequently than the update rate that currently have a minimum of 15 seconds.
For example you need to keep your door open for 15 seconds to get a notification of who opened the look.
With the option of a shorter update rate at about 4 seconds you should be able to get a status of who opened the door and that could trigger a lot of things.

Re: Verisure Plugin

PostPosted: Wed Jun 12, 2019 12:35 am
by CrazyFin
I am still having the issue with the Verisure plugin stopping to work every now and then.
I have tested with increasing the polling time from 1 minute to 5 minutes and that has reduced the occasions of when the plugin gets the login error that it can not handle which causes it not being able to login anymore.

If I just go to the configuration panel and just press SAVE (without changing anything) the configuration panel closes and I see the following error in the log:

Code: Select all
2019-06-12 08:28:10.859   Verisure Debug   Plugin config dialog window closed.
2019-06-12 08:28:10.861   Verisure Debug   Logging in
2019-06-12 08:28:11.615   Verisure Error   'NoneType' object has no attribute 'group'

However, the plugin is now able to login and get current alarm state.


This morning the state was "unknown" again and when I look in the log I see a new type of error message:
Code: Select all
2019-06-12 06:17:28.925   Verisure Debug   Checking status for all Verisure Devices
2019-06-12 06:17:28.928   Verisure Debug   Getting update for device: ALARM
2019-06-12 06:17:29.040   Verisure Error   ResponseError: Unable to update device state on server. Connection to Verisure will be reseted. Device: ALARM, Reason: <_sre.SRE_Match object at 0x109d52b58>
2019-06-12 06:17:29.049   Verisure Debug   Currently not logged in, try again.

And after this error the plugin is again not able to login and I have to open the config panel and just press save and it all starts to work again. The plugin is trying to login every 5th minute (which is the polling time I have configured at the moment) but this is the only two rows on those login attempts that I see:
Code: Select all
2019-06-12 06:22:30.728   Verisure Debug   Checking status for all Verisure Devices
2019-06-12 06:22:30.735   Verisure Debug   Currently not logged in, try again.



When I had the polling time set to 1 minute the plugin stopped working several times per day when it received the following error message on its login attempts:
Code: Select all
2019-06-09 23:43:21.909   Verisure Debug   Checking status for all Verisure Devices
2019-06-09 23:43:21.912   Verisure Debug   Getting update for device: ALARM
2019-06-09 23:43:22.075   Verisure Error   ResponseError: Unable to update device state on server. Connection to Verisure will be reseted. Device: ALARM, Reason: Unable to validate response form My Pages, status code: 500 - Data:
2019-06-09 23:43:22.083   Verisure Debug   Currently not logged in, try again.


Every time this error happens the plugin is not able to login anymore and I have to do the parameter save of the plugin to trigger it to log in again.

Re: Verisure Plugin

PostPosted: Thu Jun 27, 2019 12:21 am
by eriass
Anyone solved this? I have the same problem


Skickat från min iPhone med Tapatalk

Re: Verisure Plugin

PostPosted: Wed Sep 18, 2019 7:55 am
by CrazyFin
I am still having this issue almost every day... Anyone solved this bug yet?

I have tried to look at Lindehoffs code but since I am not a programmer (haven't done any programming last 25 years... :-) ) I am having trouble finding the cause of this problem.

Using the Verisure API code from Per Sandström at https://github.com/persandstrom/python-verisure works perfectly fine when I run it in my local terminal window. I see that Per Sandströms library has been updated to version 1.5.3 on June 2nd while Lindehoffs plugin uses a much older version.

I am not sure if this is causing the issue or if it is something else in Lindehoffs code on top of the Verisure API library from Per Sandström that is causing these problems.

I might have to start looking at other alternatives soon. I have found some examples of using Verisure Smart Plugs.
I can then connect a Fibaro Single Switch 2 (with 2 inputs) and use those two inputs to get status from two different Verisure Smart Plugs.
One Verisure Smart Plug could for example be used to for showing status of alarm (Unarmed = OFF and Armed = On) and another Verisure Smart Plug can be used for sensing the lock status of a Yale Doorman lock (Unlocked = OFF and Locked = ON).

I can the read the status of the two different inputs S1 and S2 on the Fibaro Single Switch 2 and then create scenes, events etc based on that.

Only problem with this solution is that I can not see which user is unarming or arming the alarm but at the moment I can live without that functionality.

Here is a Swedish forum where I user has done this solution:
https://www.zwaveforum.se/viewtopic.php ... 421#p20827

Re: Verisure Plugin

PostPosted: Mon Nov 25, 2019 8:16 am
by tazswe
This plugin was the main reason I went over from Fibaro to Indigo.
Thank you for the work you've put down on it until 3 years ago..

However the fact it haven’t been updated for 3 years even if I and many with me have problems with it is a major problem to me.

Lindehoff can you please let us know if you have any plans to upgrade this plugin? I know that you login almost every day so it should be nice to have an answer.

It should be great to know before I am forced to go to another controller system.

Re: Verisure Plugin

PostPosted: Mon Nov 25, 2019 8:26 am
by lindehoff
tazswe wrote:
This plugin was the main reason I went over from Fibaro to Indigo.
Thank you for the work you've put down on it until 3 years ago..

However the fact it haven’t been updated for 3 years even if I and many with me have problems with it is a major problem to me.

Lindehoff can you please let us know if you have any plans to upgrade this plugin? I know that you login almost every day so it should be nice to have an answer.

It should be great to know before I am forced to go to another controller system.


Sorry for not replying sooner, my intention was always to do a major update to the plugin but I never found the time to do it, I have started multiple times.
I am my self in a transition over to home assistant witch has an excellent plugin for Verisure.

I'm very sorry and I know it was not the answer you where hoping for but I will not update this plugin.

Best Regards
Jacob

Re: Verisure Plugin

PostPosted: Mon Nov 25, 2019 8:41 am
by tazswe
Sorry to hear Jacob, Not the answer I hoped for but better than no answer at all.

If no one volunteer to upgrade the plugin I’m unfortunately sure that me and many with me will abounded the ship to go to a system with a working Verisure plugin.