# Binary Switch Item Setup \*Confused\* :(

**URL:** <https://community.openhab.org/t/binary-switch-item-setup-confused/3251>\
**Category:** Items & Sitemaps\
**Created:** [October 11, 2015, 9:42pm UTC](https://community.openhab.org/t/binary-switch-item-setup-confused/3251 "2015-10-11T21:42:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phaze3131](https://community.openhab.org/user_avatar/community.openhab.org/phaze3131/32/963_2.png) [@phaze3131](https://community.openhab.org/u/phaze3131)\
**Post date:** [October 11, 2015, 9:42pm UTC](https://community.openhab.org/t/binary-switch-item-setup-confused/3251/1 "2015-10-11T21:42:50Z")

</div>

Hey guys, I am trying to get openhab to communicate with my basic Aeon wall switch.

I have openhab running on my Rpi 2, with Razberry z-wave module. Works great.

I can use the Z-way web interface to control the Binary switch, that functions perfect. I can edit my demo.sitemap file to add floors and rooms and such, I understand how that works.

Here is a screenshot of the device in the web interface:  
[![](https://dl.dropboxusercontent.com/s/uaxhvpopzr0pwe6/Z-Wave%20Expert%20UI%20-%20Google%20Chrome%202015-10-11%2017.32.06.jpg?dl=0) ](https://dl.dropboxusercontent.com/s/uaxhvpopzr0pwe6/Z-Wave%20Expert%20UI%20-%20Google%20Chrome%202015-10-11%2017.32.06.jpg?dl=0)

Problem I have is understanding the bindings in the /items/demo.items file. I have been reading and re-reading this page here:

> **[Z Wave Binding](https://github.com/openhab/openhab1-addons/wiki/Z-Wave-Binding)**
>
> Add-ons for openHAB 1.x. Contribute to openhab/openhab1-addons development by creating an account on GitHub.

I have created a new group:  
Group gTF (All)

and then:  
Group TF\_Myroom “travisroom” (gTF)

and under lights:  
Switch ZwaveDevice “Ceiling” (TF\_Myroom, Lights) { zwave=“2:command=SWITCH\_BINARY” }

I’m not sure where this should go:  
{ zwave=“2:command=SWITCH\_BINARY” }

Because the switch is on node 2 so this is the part that tells openhab where it is, and how to control it.

Any help is greatly greatly appreciated ty so much!

Edit: forgot to mention, I do make sure to kill the z-way-server so that openhab has the ability to communicate with the devices/nodes.

---

<div class="post-metadata">

**Author:** ![bob\_dickenson](https://community.openhab.org/user_avatar/community.openhab.org/bob_dickenson/32/856_2.png) [@bob\_dickenson](https://community.openhab.org/u/bob_dickenson)\
**Post date:** [October 11, 2015, 10:02pm UTC](https://community.openhab.org/t/binary-switch-item-setup-confused/3251/2 "2015-10-11T22:02:44Z")

</div>

Not really how flexible the rule parser is on this (re clause order, for example) , but here’s a working switch configuration item.

like this:

```
Switch sw_LIGHT_HallBath "FX Hall Bathroom Light" (gMotionSwitches,HH_Lights,HH_Baths, F2_Lights,F2_Bath) {zwave="25:command=switch_binary,refresh_interval=120"}
```

i.e., TYPE LOGICAL NAME " HUMAN NAME " \< ICON TO USE \> ( GROUPS ASSIGNED TO ) { BINDING INFO }
