So I’ve had my smarthub for little over a week now, loving it! So I took a shot at trying to expand on an exsisting solution, I hope this is OK and i would love to get feedback and if there are better way’s to achive this.
Luckly I found an initial integration for Verisure was already done by anderssv and I used that as a base for this SmartApp.
This integration provides the following;
Verisure Alarm - Device Handler
A sensor device that provides events for Alarm state, including timestamps and who triggered the state change.
Verisure Sensor - Device Handler
Any verisure device that provide climate data will be created as an Verisure Sensor and provides timestamp, temperature and humidity if available.
Verisure - SmartApp
This app creates and updates each device as it polls the verisure API.
Installation
Add the repository or manually copy the code of both the SmartApp and the two device handlers.
Once the SmartApp is added, enter you credentials and you should be good to go.
I’ve been running this on my end for a while now and not seen any major problems with it, one thing I have noticed is that when this is used in WebCore, temperature and humidity is wrong for some reason that I’ve not been able to figure out. 25,6c turns out to 256c by some mysterious magic.
Except for this, it seems to be working perfectly fine though. A big thanks to anderssv for his work that I could build upon and learn from!
Awesome! I’ve been thinking about doing the sensors for a while.
I don’t know what your level of experience with Github etc. is, I would love if we could do either pull requests to just maintain one version. Or maybe just a shared repository that we both have commit rights for?
I did a move to a separate (focused repo with only Verisure) to preserve Git history. And I gave you access. Just update the files with your code, I just moved my stuff to maintain history.
It’s taken some time but I finally got round to look at it. Awesome work; I’ve pushed an update that makes sure values for humidity and temperature are reported as numbers. That makes the temp visualization work too. I think that might explain the issue you have under “known issues”.
@orecus : Maybe you should update info in the first post with the new Github repo.
Thanks @anderssv Just updated myself to the new version, working great and finally I have a decent temperature! I’ll update the first post and point to the new repo!
Thanks for putting down a lot of effort and work into this great cause!
I’m using the integration but I have a question or rather a suggestion.
Today when alarm is armed it trigger an action which is a routine. In my case goodbye! That routine will in turn change smart home monitor into armed (away). But iI want to catch the Verisure armed event in other routines as well, for example a routine that turn off all lights that can be used during day time. Would it be possible to implement the Verisure state as a door sensor for added flexibility? If it is unarmed it is open and if it is armed it is closed? With that it would be possible to create additional routines that fire on Verisure status changes.
So you’re trying to do this in Routines right? Have you considered using WebCoRE? I really recommend using it for more advanced rules and tasks.
There is a virtual alarm added with the installation of the app, we could extend that to have some kind of switch/door/window capability, but it feels a bit off. And we’d need to figure out the messaging. It is mainly because of limitations in the Routines triggers we would do that then…
I have managed to connect to my Verisure account and I see my smoke detectors in the app as “things”. Then I have adjusted the code making it possible to change the icon, and I have changed the device names in the app. Now it won’t update the temperature and humidity status.
Maybe. Is this still a problem? You need to be aware that the temp/humidity sensors in Verisure updates at very long intervals. So you might just have to wait?
What code change is needed to make the icons changeable? Maybe you could submit a pull request?
Anyway to add more Verisure devices in to this?
For med it would be great to have the smartplugs and status of the Yale doorman lock I have integrated into Verisure.