OpenHab2 and Linear NGD00Z-4 Garage Door Controller

zwave
z-wave
linear
Tags: #<Tag:0x00007f0150796848> #<Tag:0x00007f0150796708> #<Tag:0x00007f01507965c8>

(Scott Rushworth) #82

log:set DEBUG org.openhab.binding.zwave

Type that in the Karaf console, and then set it to WARN when you are done. Here is some more info on logging…
https://docs.openhab.org/administration/logging.html

And here is some documentation for the console…
https://docs.openhab.org/administration/console.html


(Branden Smale) #83

do you know how to access the karaf console on openhanian?

Once Ive switched over to openhabian, I’ve lost to knowledge…


(Scott Rushworth) #84

Not off the top of my head… but it should be in here…

https://docs.openhab.org/installation/openhabian.html


(Lenny Shirley) #85

Not trying to hijack this thread or anything, but I cannot seem to get this device to “securely” bind to my controller. I’ve added it like 10 times now, and it still will not add in “secure” mode.

2018-05-14 16:47:24.147 [ERROR] [curityCommandClassWithInitialization] - NODE 13: SECURITY_ERROR Invalid state! Secure inclusion has not completed and we are not in inclusion mode. Aborting
2018-05-14 20:14:02.184 [ERROR] [col.security.ZWaveSecureNonceTracker] - NODE 14: SECURITY_ERROR Device message contained nonce that is unknown to us, id=-99.
2018-05-14 20:29:39.759 [WARN ] [col.security.ZWaveSecureNonceTracker] - NODE 15: SECURITY_ERROR Nonce was received, but we have no requestNonceTimer.
2018-05-14 20:39:43.107 [ERROR] [col.security.ZWaveSecureNonceTracker] - NODE 16: SECURITY_ERROR Device message contained nonce that is unknown to us, id=44.
2018-05-14 20:48:04.747 [ERROR] [curityCommandClassWithInitialization] - NODE 16: SECURITY_ERROR Invalid state! Secure inclusion has not completed and we are not in inclusion mode. Aborting
2018-05-14 20:51:54.608 [ERROR] [col.security.ZWaveSecureNonceTracker] - NODE 17: SECURITY_ERROR Device message contained nonce that is unknown to us, id=-37.

And here’s the most recent group:

2018-05-14 20:51:43.784 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 17: setupNetworkKey useSchemeZero=false
2018-05-14 20:51:54.413 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 17: setupNetworkKey useSchemeZero=true
2018-05-14 20:51:54.418 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 17: Using Scheme0 Network Key for Key Exchange since we are in inclusion mode.
2018-05-14 20:51:54.536 [INFO ] [curityCommandClassWithInitialization] - NODE 17: Setting Network Key to real key after SECURITY_NETWORK_KEY_SET
2018-05-14 20:51:54.541 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 17: setupNetworkKey useSchemeZero=false
2018-05-14 20:51:54.608 [ERROR] [col.security.ZWaveSecureNonceTracker] - NODE 17: SECURITY_ERROR Device message contained nonce that is unknown to us, id=-37.
2018-05-14 20:51:54.678 [WARN ] [mmandclass.ZWaveSecurityCommandClass] - NODE 17: payloadQueue was empty, returning!

And in it’s current binding state, here’s the error I get when I try to send either a 0 or a 255 to the barrier state item.

2018-05-14 20:55:16.886 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.zwave.handler.ZWaveThingHandler@129f0bc': null
java.lang.NullPointerException: null
	at org.openhab.binding.zwave.internal.converter.ZWaveBarrierOperatorConverter.receiveCommand(ZWaveBarrierOperatorConverter.java:105) [248:org.openhab.binding.zwave:2.3.0.201805091233]
	at org.openhab.binding.zwave.handler.ZWaveThingHandler.handleCommand(ZWaveThingHandler.java:878) [248:org.openhab.binding.zwave:2.3.0.201805091233]
	at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [101:org.eclipse.smarthome.core:0.10.0.201805051943]
	at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [101:org.eclipse.smarthome.core:0.10.0.201805051943]
	at com.sun.proxy.$Proxy190.handleCommand(Unknown Source) [248:org.openhab.binding.zwave:2.3.0.201805091233]
	at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [108:org.eclipse.smarthome.core.thing:0.10.0.201805051943]
	at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [108:org.eclipse.smarthome.core.thing:0.10.0.201805051943]
	at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [101:org.eclipse.smarthome.core:0.10.0.201805051943]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0.201805051943]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	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) [?:?]

Any idea’s???

-Lenny


(Scott Rushworth) #86

Are you using the development version of the zwave binding (w/ security)? If so, are you doing the inclusion within a few feet of the controller?


(Lenny Shirley) #87

Yes, I’m using the snapshot version.

I’m assuming I need to do the inclusion within HABmin still if I move it closer?


(Chris Jackson) #88

To be clear - is it the development version from this thread? A normal snapshot will not work.


(Lenny Shirley) #89

That would be a negative then… Should I use the latest release? 2.2? Or do I need to compile the current version?


(SiHui) #90

Why not just following the above link? It’s all in there …


(Lenny Shirley) #91

Ok, used the latest 2.3.0 SNAPSHOT Zwave Binding from here:

http://www.cd-jackson.com/downloads/openhab2/org.openhab.binding.zwave-2.3.0-SNAPSHOT.jar

And now I’m getting this when including the item:

2018-05-15 11:34:15.573 [INFO ] [mmandclass.ZWaveSecurityCommandClass] - NODE 19: Using Scheme0 Network Key for Key Exchange since we are in inclusion mode.
2018-05-15 11:34:16.217 [INFO ] [alization.ZWaveNodeInitStageAdvancer] - NODE 19: SECURITY_INC State=COMPLETE
2018-05-15 11:34:21.072 [INFO ] [ommandclass.ZWaveVersionCommandClass] - NODE 19: Command Class COMMAND_CLASS_BASIC has version 0!

Security is showing a green check mark now.

But when I try sending a 0 or a 255 to the Barrier State, here’s what I’m getting:

2018-05-15 11:45:26.272 [WARN ] [pse.smarthome.core.items.GenericItem] - failed notifying listener 'org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl@1e66405' about state update of item GarageDoor1_Switch: null
java.lang.NullPointerException: null
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.internalGetChangeRules(RuleTriggerManager.java:336) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.internalGetRules(RuleTriggerManager.java:427) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.getRules(RuleTriggerManager.java:198) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl.stateChanged(RuleEngineImpl.java:202) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.core.items.GenericItem$1.run(GenericItem.java:251) [101:org.eclipse.smarthome.core:0.10.0.201805141751]
	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) [?:?]

Any ideas? The switch is obviously not opening and closing either.


(Chris Jackson) #92

It looks like the opener is now included ok.

This error seems to be related to rules - not the binding.


(Lenny Shirley) #93

Wondering if it’s an issue with the current OpenHab2 Snapshot I’m running (updated to it yesterday). I created a simple rule to log an info line to the log file when flipping a switch, and I get that same error I posted above… Not even related to any item…

Just updated to the latest openhab2, and will try again…


(SiHui) #94

Reading the forum often helps:


(Lenny Shirley) #95

Yep, latest snapshot is yielding different results.

Everything is working now… Found two more issues after updating OpenHab, and now the door works as expected (freaked the wife out since she was at home, and I was at work, lol).


(Wes Warner) #96

Hello,
I’m very new to openHAB, and am coming from a Vera. I have 2 of the NGD00Z-4 Garage Door Controllers that I’m trying to setup. I’ve read through a number of posts, which seem to contain piecemeal information on this. Is there a how-to for getting this setup from start to finish somewhere? It seems like it should be much easier than what it appears to be. Thanks


(Wes Warner) #97

After 8 hours of working on it, I’ve got it on the network but still not functioning. Any help is appreciated.

position


(Wes Warner) #98

This is my 2CarDoor.items file contents:

Switch    2car_Grg_Pwr   "2-Car Door Power"   <poweroutlet>   (Garage, gPower)      {channel="zwave:device:01FFFFFF-FFFF-FFFF-FFFF-160118150928:node5:switch_binary1"}
Switch    2car_Grg_Lts   "2-Car Lights"   <light>   (Garage, gPower)      {channel="zwave:device:01FFFFFF-FFFF-FFFF-FFFF-160118150928:node5:switch_binary2"}
Switch    2car_Grg_Dr    "2-Car Garage Door [MAP(garagedoor.map):%s]"    <garagedoor>    (gGarageDoor,gSleep_Security)
Number    2car_Grg_Dr_Psn    "2-Car Garage Door Position [MAP(garagedoor.map):%s]"    <garagedoor>    (gGarageDoor,gSleep_Security)    {channel="zwave:device:01FFFFFF-FFFF-FFFF-FFFF-160118150928:node6:barrier_state"}```


And my default.sitemap file contents:


sitemap default label="AH Home" {

    Frame {

        Text label="2-Car Garage" icon="house" {
			Default item=2car_Grg_Pwr
			Default item=2car_Grg_Lts
            Switch item=2car_Grg_Dr
			Text item=2car_Grg_Dr_Psn 
        }


        Text label="1-Car Garage" icon="house" {
            Default item=1car_Grg_Pwr
			Default item=1car_Grg_Lts
        }

    }
}

(Scott Rushworth) #99

The barrier_state channel should be linked to a Number Item, and will report:

255 (open)
254 (opening)
253 (stopped)
252 (closing)
0 (closed)

It is also used to control the garage door, by sending 255 (open) and 0 (close). You should setup a Switch Item that you can set to ON or OFF through a rule, based on the barrier_state, and to control the door. I have two NGD00Zs, and this is an example of how I used them in the Rules DSL…

I haven’t looked at this for a while, as I now use JSR223-Jython, but I could provide my current working example, if it could be of use.

I had also added the alarm_raw channel, but as of yet, I have not seen it report anything. The Z-Wave spec says that it would be used for safety report, like if the door closed on a car or something.


(Wes Warner) #100

Thanks for the reply. I have the following in garagedoor.map:

0=CLOSED
ON=CLOSED
252=CLOSING
253=STOPPED
254=OPENING
255=OPEN
OFF=OPEN
-=Unknown
NULL=Unknown

As I understand, the last 2 lines in my 2CarDoor.items file have the switch and the position indicator, am I wrong?

Switch    2car_Grg_Dr    "2-Car Garage Door [MAP(garagedoor.map):%s]"    <garagedoor>    (gGarageDoor,gSleep_Security)
Number    2car_Grg_Dr_Psn    "2-Car Garage Door Position [MAP(garagedoor.map):%s]"    <garagedoor>    (gGarageDoor,gSleep_Security)    {channel="zwave:device:01FFFFFF-FFFF-FFFF-FFFF-160118150928:node6:barrier_state"}

Do I not have the barrier state linked properly? I’m only seeing a NaN in the paperui.


(Scott Rushworth) #101

Your Channel looks odd. Confirm it in Paper UI> Configuration> Things> your opener, and verify the Chanel you have configured matches. If it does, you’ll need to enabled debug logging for the zwave binding and see why the door is not reporting.

Wait a second… your Items start with a number… I’m pretty sure you can’t do that!

Nope…

You should be seeing errors in VS Code, on OH startup, or after saving the file.


LiftMaster garage door opener with Linear NGD00Z-4 initiated from HomeLink Transmitter through X10 and Insteon