Testers for Verisure openHAB 2 binding


(jarleh) #112

The latest version of the binding takes and username and password arguments, not the authstring.
Bridge verisure:bridge:1 “My Versirue” [pin=“XXXX”, username=“YYYYY”, password=“ZZZZZZ”]


(jarleh) #113

Try this, should fix both issues


(Thomas Gregersen) #114

Changing to username and password did the trick - now I see the status in json format coming in through Karaf as a HTTP Response (200) in DEBUG :slight_smile:

But as you can see I get a new error with the latest build though:

2018-01-08 09:53:18.906 [DEBUG] [risure.handler.VerisureBridgeHandler] - VerisureBridgeHandler - Thread is up and running!
2018-01-08 09:53:18.911 [DEBUG] [ng.verisure.internal.VerisureSession] - areWeLoggedIn() - Checking if we are logged in
2018-01-08 09:53:19.461 [DEBUG] [ng.verisure.internal.VerisureSession] - areWeLoggedIn(200) - 
2018-01-08 09:53:19.464 [DEBUG] [ng.verisure.internal.VerisureSession] - Status code 200. Probably logged in
2018-01-08 09:53:19.467 [DEBUG] [ng.verisure.internal.VerisureSession] - VerisureSession:updateStatus
2018-01-08 09:53:19.557 [DEBUG] [ng.verisure.internal.VerisureSession] - HTTP Response (200) Body:[{"date":"Today 08:26","disarmed":false,"notAllowedReason":"","image":"locked","operational":true,"changeAllowed":true,"label":"Locked","type":"DOOR_LOCK","name":"","location":"Hoveddør","id":"XXXXXXXX","secureMode":false,"status":"locked"},{"date":"03/01/18 21:50","disarmed":false,"notAllowedReason":"","image":"locked","operational":true,"changeAllowed":true,"label":"Locked","type":"DOOR_LOCK","name":"","location":"Kælder","id":"XXXXXXX1","secureMode":false,"status":"locked"},{"date":"Today 08:35","disarmed":false,"notAllowedReason":"","image":"locked","operational":true,"changeAllowed":true,"label":"Locked","type":"DOOR_LOCK","name":"","location":"Terrassedør","id":"XXXXXXX2","secureMode":false,"status":"locked"}]
2018-01-08 09:53:19.662 [DEBUG] [ng.verisure.internal.VerisureSession] - HTTP Response (200) Body:[]
2018-01-08 09:53:19.666 [DEBUG] [ng.verisure.internal.VerisureSession] - REST Response ({})
2018-01-08 09:53:19.748 [DEBUG] [ng.verisure.internal.VerisureSession] - HTTP Response (200) Body:
2018-01-08 09:53:19.752 [INFO ] [ng.verisure.internal.VerisureSession] - Failed to get all /settings/doorwindow?_=
java.lang.NullPointerException: null
	at org.openhab.binding.verisure.internal.VerisureSession.callJSONRest(VerisureSession.java:198) [235:org.openhab.binding.verisure:2.3.0.201801072131]
	at org.openhab.binding.verisure.internal.VerisureSession.updateVerisureObjects(VerisureSession.java:83) [235:org.openhab.binding.verisure:2.3.0.201801072131]
	at org.openhab.binding.verisure.internal.VerisureSession.updateStatus(VerisureSession.java:72) [235:org.openhab.binding.verisure:2.3.0.201801072131]
	at org.openhab.binding.verisure.internal.VerisureSession.refresh(VerisureSession.java:297) [235:org.openhab.binding.verisure:2.3.0.201801072131]
	at org.openhab.binding.verisure.handler.VerisureBridgeHandler$1.run(VerisureBridgeHandler.java:75) [235:org.openhab.binding.verisure:2.3.0.201801072131]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
	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-01-08 09:53:19.860 [DEBUG] [ng.verisure.internal.VerisureSession] - HTTP Response (200) Body:[]
2018-01-08 09:53:19.864 [DEBUG] [ng.verisure.internal.VerisureSession] - REST Response ({})
2018-01-08 09:53:19.939 [DEBUG] [ng.verisure.internal.VerisureSession] - HTTP Response (200) Body:[]
2018-01-08 09:53:19.942 [DEBUG] [ng.verisure.internal.VerisureSession] - REST Response ({})

Also - Am I supposed to get the actual values of my door locks through the channels or do I need to parse the json to get them? They all return UNDEF:

2018-01-08 09:43:19.816 [hingStatusInfoChangedEvent] - 'verisure:bridge:1' changed from INITIALIZING to ONLINE
2018-01-08 09:43:19.843 [vent.ItemStateChangedEvent] - alarm_current_status changed from NULL to UNDEF
2018-01-08 09:43:19.856 [vent.ItemStateChangedEvent] - verisure_bridge_1_status changed from NULL to UNDEF
2018-01-08 09:43:20.034 [vent.ItemStateChangedEvent] - verisure_bridge_1_statusnumeric changed from NULL to UNDEF
2018-01-08 09:43:20.085 [hingStatusInfoChangedEvent] - 'verisure:bridge:1' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)
2018-01-08 09:43:20.107 [vent.ItemStateChangedEvent] - verisure_bridge_1_changername changed from NULL to UNDEF
2018-01-08 09:43:20.118 [vent.ItemStateChangedEvent] - verisure_bridge_1_timestamp changed from NULL to UNDEF

Thanks!


(Michael Parment) #115

I am not using a thing file i have just configured it in PaperUi.

/Mike


(jarleh) #116

Strange, I use the UI for testing and it works well. Do you have an old version in addtion ?


(jarleh) #117

I fixed the nullpointer


(Michael Parment) #118

Can it be that my pin is 6 numbers?

/Mike


(Michael Parment) #119

It would also be nice with a contact channel for door items (save some rules).

/mike


(Thomas Gregersen) #120

I now get this message on every refresh with the latest build:

2018-01-18 10:28:12.043 [INFO ] [ng.verisure.internal.VerisureSession] - Wrong response type null for call to https://mypages.verisure.com/settings/doorwindow?_=1516267691988

(Michael Parment) #121

Does someone know how to arm alarm with this binding?

/Mike


(Thomas Gregersen) #122

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

(Michael Parment) #123

Have development for this binding died again?

/Mike


(MS) #124

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.


(da_kurgan) #125

Do we have an updated binary version for this anywhere?


(MS) #126

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


(MS) #127

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):


(Michael Parment) #128

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


(Ron M) #129

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)


(Jakob Jensen) #130

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.


(Jack Sand) #131

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”}