Testers for Verisure openHAB 2 binding

Does someone know how to arm alarm with this binding?

/Mike

After updating to the last build this error also shows up in openhab.log after I restart the openhab2.service:

2018-02-01 15:05:53.337 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.377 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.376 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.348 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.502 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.537 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.494 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.466 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.341 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.566 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.570 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.579 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.576 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.686 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.663 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.635 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.572 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.628 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.748 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.745 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.746 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.731 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.768 [INFO ] [risure.handler.VerisureBridgeHandler] - Supposed to handle a command REFRESH 
2018-02-01 15:05:53.824 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:05:53.894 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.handler.VerisureObjectHandler.handleCommand(VerisureObjectHandler.java:73) ~[?:?]
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.channelLinked(BaseThingHandler.java:243) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:290) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-02-01 15:06:02.675 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Raw RFlink received data': 3
2018-02-01 15:06:06.589 [INFO ] [clipse.smarthome.model.script.RFLink] - Doorbell pressed SWITCH=10 - CMD=OFF
2018-02-01 15:06:16.449 [INFO ] [ng.verisure.internal.VerisureSession] - Wrong response type null for call to https://mypages.verisure.com/settings/doorwindow?_=1517493976013

Have development for this binding died again?

/Mike

I just did a pull request to @jarlebh branch where I fixed a few things.
I only have the Verisure hub to control my Yale door lock (I have another alarm system) and this binding was not working in that case due to a null pointer exception.
Also added a Switch to control the lock/unlock of the lock.

1 Like

Do we have an updated binary version for this anywhere?

I have not had any response from @jarlebh on the pull request.

Here is a build with my changes:

https://www.dropbox.com/s/053j349yjddyupx/org.openhab.binding.verisure-2.3.0-SNAPSHOT.jar?dl=0

My Github fork is here if anyone want to see the changes:

https://github.com/msvinth2/openhab2-addons/tree/verisure/addons/binding/org.openhab.binding.verisure

1 Like

I have used this to setup this as a lock in HomeKit:

This is done through NodeRed.
Info of installing Nodered is here. Info on using NodeRed with HomeKit is here.

I have two Verisure items:

String Entre_Lock_Status "Lock status [%s]" <lock> { channel="verisure:lock:1:blabla:status" }
Switch Entre_Lock "Lock" <lock> { channel="verisure:lock:1:blabla:doorlock" }

And then created this flow in NodeRed:

This allows me to see the status in HomeKit and lock and unlock the lock. Also through Siri.

The HomeKit node is setup as a LockMechnismn

And as a DOOR_LOCK accessory:

The other nodes are set up as follows (from left to right):

Hi @msv12

Is it possible to get status from Door/Windows as item type Contact?

Is it possible to get a channel in Doorlock for Autolock ON/OFF?

/Mike

Just installed your build and looks like it works great. Thanks!
I have a VeriSure alarm system with Door/window contacts, Photo detectors, Motion detectors, and Smoke detectors. They seem to work fine (did some initial testing).
Just wanted to report on my results with this build, since you don’t have all the VeriSure equipment at home… ;o)

I’ve just added this binding and it works as intended. Thanks for good work.

To get around the API rate limit, is there maybe another way to integrate with Verisure the through My Verisure website? I have found a Python-based project, which seems to integrate via the API used by the Verisure native mobile apps: https://github.com/persandstrom/python-verisure - Not sure if the rate limit applies to this way of accessing the Verisure system.

Tested working good
(but if i lock the door from the app it wont refresh in openhab before 30minutes, is that correct)?
Switch item=Dor_lock
Text item=Dor_Status
Text item=Dor_whois Text item=Dor_LastTime
Text item=Dor_LastTime
Switch Dor_lock “Hoveddør” {channel=“verisure:lock:1:thingID:doorlock”}
String Dor_Status “Status” {channel=“verisure:lock:1:thingID:status”}
String Dor_whois “ID” {channel=“verisure:lock:1:thingID:changername”}
String Dor_LastTime “Siste” {channel=“verisure:lock:1:thingID:timestamp”}

I get the “Verisure Binding” thing to work, and it states “online”. I have a Yaleman Lock. When I search for new things, it reports that the lock (“MainDoor”) was found and should be in the inbox, however it never appears in the in-box. When I try to manually add a lock with the name “MainDoor” it never initialize, it says “UNINITIALIZED - HANDLER_INITIALIZING_ERROR”

Any one that has any idea why it does not work?

Any news of this binding?

/Mike

I’ve made a re-design of the Verisure binding to support multiple installations/sites since I also have a Verisure installation at my summer house.

I’ve based the re-design on the work made by @Andreas_L, @jarlebh and @msv12 but updated it to handle multiple sites, the changes are not backward compatible so all discovered things will get new internal IDs.

I’ve also added support for some new things:

  • Bridge
  • Alarm
  • Smoke Detector (climate)
  • Water Detector (climate)
  • Siren (climate)
  • Night Control
  • Yaleman SmartLock
  • SmartPlug
  • Door/Window Status
  • User Presence Status
  • Broadband Connection Status

The source code can be found here in the 4788-verisure branch and the README can be found here.
I’ve also compiled a jar-file based on OH2.5 but it also works for OH2.4.

openhab@openhab2:/usr/share/openhab2/addons $ md5sum org.openhab.binding.verisure-2.5.0-SNAPSHOT.jar 
c6eb6f26219a306455916b5fb1ff9153  org.openhab.binding.verisure-2.5.0-SNAPSHOT.jar

The updated binding has been initially tested by @tnemrap and I’ve also got great idéas from Mike in improving the binding functionality.

NOTE: During code review by the maintainers I’ve done some breaking changes to the original jar-file that was referenced in this post. Please read the updated README for changes, the biggest change is that I’ve implemented a configuration property for each Thing called deviceId, hence if you have defined things manually in a things file, you will need to update that according to the updated README.

NOTE: The default refresh period is still 10 minutes, be aware that Verisure might detect if you poll to often!

Happy testing! :slight_smile:

BR,

/Janne

2 Likes

Seems to be an issue with adding Yale Smartlocks with the new binding

Status: UNINITIALIZED - HANDLER_INITIALIZING_ERROR org.openhab.binding.verisure.internal.VerisureAlarmJSON cannot be cast to org.openhab.binding.verisure.internal.VerisureSmartLockJSON

I get this issue using the following setting in my things-file and then allowing GUI-discovery of the SmartLock

Bridge verisure:bridge:1 "Versiure Bridge" [ username=<redacted>, password=<redacted>, refresh=300, numberOfInstallations="1"]

Are you using Jannes Binding?
This works for me

Bridge verisure:bridge:1 "Verisure Bridge" [username="email@email.xx", password="secret", pin="123456",  numberOfInstallations="1"]{
    Thing alarm alarm_1 "Verisure Alarm"  [ ID="alarm_1" ]    
    Thing smartLock 2A8L_XXXX "Entré Lås"  [ ID="2A8L_XXXX" ]    
    Thing doorWindowSensor 2JJS_XXXX "Entré Dörr" [ ID="2JJS_XXXX" ]
    Thing doorWindowSensor 2JJG_XXXX "Altandörr sovrum" [ ID="2JJG_XXXX" ]
    Thing doorWindowSensor 2JJS_XXXX "Källardörr" [ ID="2JJS_XXXX" ]
    Thing doorWindowSensor 2JJS_XXXX "Altandörr kök" [ ID="2JJS_XXXX" ]
    Thing smokeDetector 2AJ2_XXXX  "Hall Rökdetektor" [ ID="2AJ2_XXXX" ]
    Thing smokeDetector 2AJ2_XXXX  "Gillestuga Rökdetektor" [ ID="2AJ2_XXXX" ]
}

/Mike

This does not work for me, giving the same response:

 Bridge verisure:bridge:1 "Versiure Bridge" [ username=<redacted>, password=<redacted>, refresh=300, 
 numberOfInstallations="1"] {
 	Thing smartLock 2AQSxxxx "Verisure Entrance Yale Doorman"  [ ID="2AQSxxxx" ]    
 }

I do have a different ID code pattern. Perhaps it is a different version of Yale Doorman that causes an issue?

You should have the pin in Bridge.
Don’t you have a _ sign in your ID’s?

/Mike

The ID is indeed lacking an underscore.

As for the pin, is it required if I only wish to read the status of the lock, but not alter it?

Have you tried with pin and underscore?

/Mike