Beginner help setting up Z-Wave Binding (switch and z-stick)

1,710 views
Skip to first unread message

Willie Stewart

unread,
Feb 27, 2015, 6:13:02 PM2/27/15
to ope...@googlegroups.com
I've spent the last couple weeks combing though the wiki, youtube, help videos etc... and I'm kinda getting it but i'm a bit stuck.

I got "Designer" working on my windows machine and i'm working to get a single leviton zwave switch working. I have and Aeon Labs Z Stick as well.

 I created a copy of .cfg file and added the zwave binding to the addons folder. 

I edited the zwave section of the binding by uncommenting the com and repair section, which I assume is what tells Openhab that I have the zstick connected to the computer. 

Whats are the next steps?

Thanks for your help!

Willie Stewart

unread,
Feb 27, 2015, 6:23:17 PM2/27/15
to ope...@googlegroups.com
Also are there additional settings I need to change in the .cfg file?

Kevin Gottsman

unread,
Feb 27, 2015, 10:07:37 PM2/27/15
to ope...@googlegroups.com
Wille,

Welcome to the club...

I would recommend using Chris's snapshot version. Its much newer than
the one published with official openhab.

https://github.com/cdjackson/HABmin/tree/master/addons


Here is my openhab.cfg for zwave. I have the same stick on Linux and a
half dozen devices. All you really need to do is point to the USB stick
and OH will pick up all the devices.

Sorry for the stupid word wrap below...

################################ Z-Wave Binding
######################################
#
# The Z-Wave controller port. Valid values are e.g. COM1 for Windows and
/dev/ttyS0 or
# /dev/ttyUSB0 for Linux
zwave:port=/dev/ttyUSB0

# Mac
#zwave:port=/dev/tty.SLAB_USBtoUART

# Z-Wave nightly heal time. This is the hour (eg 2AM) at which the
automatic nightly
# network heal will be performed.
zwave:healtime=2





-- Kevin
> --
> You received this message because you are subscribed to the Google
> Groups "openhab" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openhab+u...@googlegroups.com
> <mailto:openhab+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/openhab.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openhab/6817bf66-0959-4ec5-be92-82f8a103894b%40googlegroups.com
> <https://groups.google.com/d/msgid/openhab/6817bf66-0959-4ec5-be92-82f8a103894b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Chris Jackson

unread,
Feb 28, 2015, 3:55:55 AM2/28/15
to ope...@googlegroups.com

> On 27 Feb 2015, at 23:23, Willie Stewart <willie.s...@gmail.com> wrote:
>
> Also are there additional settings I need to change in the .cfg file?
No - the defaults for other settings should be fine.

Your next step is to configure the items - the wiki has some information on this, or search the group and you’ll find examples of other zwave items that people have posted.

Chris

Willie Stewart

unread,
Feb 28, 2015, 9:58:19 AM2/28/15
to ope...@googlegroups.com
Thank you Chris and Kevin for your help. Slowly but surely I'm learning. I was going to wait for 2.0 but seems like I'll have more control if I understand how things are working under the hood.

Thanks!

Willie Stewart

unread,
Mar 19, 2015, 8:37:36 PM3/19/15
to ope...@googlegroups.com
So I'm making progress. I got Habmin working and I can see my Aeon Labs Zstick (green light) and I can see the green light next to my zwave leviton switch. 

I created my item:  Switch Z_Leviton "Dining Room" (Light){zwave="2:1:command=BINARY_SWITCH"}

And my sitemap: foot label="Main Menu" {
   Frame label="Dining Room" {
      Switch item=Z_Leviton label="Dining Room" icon="switch"
       }
}

When i launch my localhost page I can see and use the toggle to turn the light on and off but nothing happens. What am I doing wrong?  
My logs are below. Thanks

Launching the openHAB runtime...
osgi> 2015-03-19 20:21:12.494 [INFO ] [.o.core.internal.CoreActivator] - openHAB
 runtime has been started (v1.6.2).
2015-03-19 20:21:13.095 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service
has been started
2015-03-19 20:21:13.220 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Disco
very initialization completed.
2015-03-19 20:21:14.382 [INFO ] [penhab.io.rest.RESTApplication] - Started REST
API at /rest
2015-03-19 20:21:23.014 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model
 'footauto.sitemap'
2015-03-19 20:21:23.099 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model
 'FootAuto.items'
2015-03-19 20:21:23.653 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Class
ic UI at /openhab.app
2015-03-19 20:21:26.845 [INFO ] [.o.io.habmin.HABminApplication] - Started HABmi
n REST API at /services/habmin
2015-03-19 20:21:31.937 [ERROR] [.i.ZWaveGenericBindingProvider] - Z_Leviton: In
valid command class 'BINARY_SWITCH'
2015-03-19 20:21:31.944 [ERROR] [i.internal.GenericItemProvider] - Binding confi
guration of type 'zwave' of item æZ_Levitonæ could not be parsed correctly.
org.openhab.model.item.binding.BindingConfigParseException: command=BINARY_SWITC
H is not a valid argument.
        at org.openhab.binding.zwave.internal.ZWaveGenericBindingProvider.proces
sBindingConfiguration(ZWaveGenericBindingProvider.java:114) ~[na:na]
        at org.openhab.model.item.internal.GenericItemProvider.internalDispatchB
indings(GenericItemProvider.java:341) [org.openhab.model.item_1.6.2.jar:na]
        at org.openhab.model.item.internal.GenericItemProvider.dispatchBindingsP
erType(GenericItemProvider.java:302) [org.openhab.model.item_1.6.2.jar:na]
        at org.openhab.model.item.internal.GenericItemProvider.addBindingConfigR
eader(GenericItemProvider.java:106) [org.openhab.model.item_1.6.2.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.
0_31]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.
0_31]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:
1.8.0_31]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_31]
        at org.eclipse.equinox.internal.ds.model.ComponentReference.bind(Compone
ntReference.java:376) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindRefere
nce(ServiceComponentProp.java:444) [org.eclipse.equinox.ds_1.4.1.v20120926-20132
0.jar:na]
        at org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceP
rocess.java:416) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:33
4) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.
java:222) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.ser
viceChanged(FilteredServiceListener.java:107) [org.eclipse.osgi_3.8.2.v20130124-
134944.jar:na]
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEv
ent(BundleContextImpl.java:861) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]

        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:230) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchr
onous(ListenerQueue.java:148) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServ
iceEventPrivileged(ServiceRegistry.java:819) [org.eclipse.osgi_3.8.2.v20130124-1
34944.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServ
iceEvent(ServiceRegistry.java:771) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:
na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.reg
ister(ServiceRegistrationImpl.java:130) [org.eclipse.osgi_3.8.2.v20130124-134944
.jar:na]
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerSer
vice(ServiceRegistry.java:214) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerSe
rvice(BundleContextImpl.java:433) [org.eclipse.osgi_3.8.2.v20130124-134944.jar:n
a]
        at org.eclipse.equinox.internal.ds.InstanceProcess.registerService(Insta
nceProcess.java:536) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(Insta
nceProcess.java:260) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver
.java:473) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.ja
va:217) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.jav
a:816) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRMana
ger.java:783) [org.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) [o
rg.eclipse.equinox.ds_1.4.1.v20120926-201320.jar:na]
        at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Ex
ecutor.java:70) [org.eclipse.equinox.util_1.0.400.v20120917-192807.jar:na]
2015-03-19 20:21:31.960 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config
, port = COM4
2015-03-19 20:21:31.961 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config
, healtime = 2
2015-03-19 20:21:31.963 [INFO ] [.service.AbstractActiveService] - ZWave Refresh
 Service has been started
2015-03-19 20:21:31.994 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wa
ve controller
2015-03-19 20:21:31.995 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeou
t is set to 5000ms. Soft reset is false.
2015-03-19 20:21:31.997 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to
 serial port COM4
2015-03-19 20:21:33.197 [INFO ] [b.z.i.protocol.ZWaveController] - Serial port i
s initialized
2015-03-19 20:21:36.309 [INFO ] [rialApiGetInitDataMessageClass] - NODE 1: Node
found
2015-03-19 20:21:36.313 [INFO ] [rialApiGetInitDataMessageClass] - NODE 2: Node
found
2015-03-19 20:21:36.314 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Control
ler using Controller API
2015-03-19 20:21:36.316 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Control
ler is Primary Controller
2015-03-19 20:21:36.317 [INFO ] [rialApiGetInitDataMessageClass] - ------------N
umber of Nodes Found Registered to ZWave Controller------------
2015-03-19 20:21:36.318 [INFO ] [rialApiGetInitDataMessageClass] - # Nodes = 2
2015-03-19 20:21:36.319 [INFO ] [rialApiGetInitDataMessageClass] - -------------
---------------------------------------------------------------
2015-03-19 20:21:36.547 [WARN ] [.o.b.z.i.p.c.ZWaveCommandClass] - NODE 2: Unsup
ported command class SCENE_ACTUATOR_CONF
2015-03-19 20:21:36.550 [WARN ] [.o.b.z.i.p.c.ZWaveCommandClass] - NODE 2: Unsup
ported command class SWITCH_ALL
2015-03-19 20:21:36.647 [WARN ] [.z.internal.ZWaveActiveBinding] - NODE 2: No it
em bound for event, endpoint = 0, command class = SWITCH_BINARY, value = 0, igno
ring.
2015-03-19 20:22:06.857 [INFO ] [runtime.busevents             ] - Z_Leviton rec
eived command ON
2015-03-19 20:22:57.000 [INFO ] [runtime.busevents             ] - Z_Leviton rec
eived command OFF
2015-03-19 20:23:10.321 [INFO ] [runtime.busevents             ] - Z_Leviton rec
eived command ON
2015-03-19 20:23:12.010 [INFO ] [runtime.busevents             ] - Z_Leviton rec
eived command OFF
2015-03-19 20:32:07.126 [ERROR] [b.z.i.p.s.SendDataMessageClass] - NODE 2: Got a
n error while sending data. Resending message.
2015-03-19 20:32:07.328 [ERROR] [b.z.i.p.s.SendDataMessageClass] - NODE 2: Got a
n error while sending data. Resending message.

Mike Child

unread,
Mar 19, 2015, 9:14:42 PM3/19/15
to ope...@googlegroups.com
Your item config is wrong. It should be switch_binary. You have it backwards.

Willie Stewart

unread,
Mar 19, 2015, 9:55:49 PM3/19/15
to ope...@googlegroups.com
Thanks Mike. I made the change to Item Configuration and still didn't work.

I atttached my log.

Thanks


log09453.txt

Chris Jackson

unread,
Mar 20, 2015, 3:29:53 AM3/20/15
to ope...@googlegroups.com
I don't know the switch, but is it really a multi endpoint version (ie are there multiple switches on the same device)? If not, remove the :1 in the item configuration.

Willie Stewart

unread,
Mar 20, 2015, 6:42:25 AM3/20/15
to ope...@googlegroups.com
That was it, it Worked!

I am using a Leviton VRS15 on/off switch.

Thanks for your help!

Willie Stewart

unread,
Mar 27, 2015, 10:53:36 PM3/27/15
to ope...@googlegroups.com
I'm having a bit a problem w/ door/window  im uing for my garage door. I can see the sensor in habmin and its green but I can seem to display it in my sitemap. I can see and control my light switch just fine. I was hoping to use the garage door icon that shows it open or closed. Thanks

Items

Switch Z_Leviton "Dining Room" (Light){zwave="2:command=SWITCH_BINARY"}

Contact GarageN "Nic Garage" (garagedoor){zwave="3:command=BINARY_SENSOR,value = 11­"}

Sitemap

sitemap foot label="Main Menu" {
   Frame label="Dining Room" {
      Switch item=Z_Leviton label="Dining Room" icon="switch"
       } Frame label="Nic Garage" {
      Contact item=GarageN label="Nic Garage" icon="Garage"
      }
}

Chris Jackson

unread,
Mar 28, 2015, 5:09:49 AM3/28/15
to ope...@googlegroups.com
The item definition is incorrect -:
Contact GarageN "Nic Garage" (garagedoor){zwave="3:command=BINARY_SENSOR,value = 11­”}

should be
Contact GarageN "Nic Garage" (garagedoor){zwave="3:command=SENSOR_BINARY,sensor_type = 11­"}

Chris

Willie Stewart

unread,
Mar 29, 2015, 1:27:10 PM3/29/15
to ope...@googlegroups.com
Thanks Chris. I updated my item configuration and now it appears in Habmin "items tab" but for some reason I still can't see the device in my sight map. Is there something else I need to change?

My sitemap

sitemap foot label="Main Menu" {
   Frame label="Dining Room" {
      Switch item=Z_Leviton label="Dining Room" icon="switch"
       } Frame label="Nic Garage" {
      Contact item=GarageN label="Nic Garage" icon="garagedoor"

Willie Stewart

unread,
Mar 30, 2015, 11:39:04 AM3/30/15
to ope...@googlegroups.com
So here is my updated Items and Sitemap together. Is there still something wrong? I can seem to get the device to appear in my sitemap. My switch displays and works fine.

Thanks

Items

Switch Z_Leviton "Dining Room" (Light){zwave="2:command=SWITCH_BINARY"}

Contact GarageN "Nic Garage" (garagedoor){zwave="3:command=SENSOR_BINARY,sensor_type = 11­"}


Sitemap

Martin Naughton

unread,
Apr 1, 2015, 2:10:58 PM4/1/15
to ope...@googlegroups.com
do you see any thing wrong in the logs? Did the designer give you this sitemap? What else have you tried?

Willie Stewart

unread,
Apr 1, 2015, 2:20:07 PM4/1/15
to ope...@googlegroups.com
I used samples from other sitemaps to create my sitemap. I didn't use designer. I guess I need to see how designer can help me.
Thanks
Reply all
Reply to author
Forward
0 new messages