Zwave Pi3

  • Platform information:
    *RasPi 3
    • OS: _OpenHab2

Aeotec Z-Stick Gen5, Z-Wave Plus USB

  • Issue of the topic:

Added zwave usb gen 5 stick and all I get in my log in this

2018-10-29 21:08:22.005 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 7 to 8

2018-10-29 21:08:22.009 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 7 to 8

2018-10-29 21:08:22.022 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 8 to 9

2018-10-29 21:08:22.028 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 8 to 9

2018-10-29 21:08:22.035 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 9 to 10

2018-10-29 21:08:22.041 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 9 to 10

2018-10-29 21:09:46.544 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 10 to 11

2018-10-29 21:09:46.556 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 10 to 11

2018-10-29 21:09:46.562 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@7b4214

2018-10-29 21:10:16.551 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 11 to 12

2018-10-29 21:10:16.640 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@9afdce

2018-10-29 21:10:16.644 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 11 to 12

2018-10-29 21:10:40.743 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 12 to 13

2018-10-29 21:10:40.748 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 12 to 13

2018-10-29 21:10:40.756 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@d94f99

2018-10-29 21:11:10.732 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_ack changed from 13 to 14

2018-10-29 21:11:10.822 [vent.ItemStateChangedEvent] - zwave_serial_zstick_3330d67e_serial_sof changed from 13 to 14

2018-10-29 21:11:10.826 [arthome.event.BindingEvent] - org.openhab.binding.zwave.event.BindingEvent@bab164

Under Paper UI the Zwave thing shows as “Online”?

But I see nothing in any things file or items files, do I have to add them manually? Or should it be automatic?

Thanks for any help getting this working

Hi @robster_mn,

The files are for manual configuration, so there’s nothing to see there with regard to Z-Wave. I think you should install HABmin through the PaperUI and use that to configure your Z-Wave devices.

There’s a nice writeup here:

https://www.cd-jackson.com/index.php/openhab/habmin/10-habmin-zwave-binding-initialisation

Regards,
Burzin

Thanks

I did that and got two motion sensors online in Habmin…

Question:

Now that I have the devices defined, how do I set them up in the items file or things file or the sitemap file?

Thanks for any help …

HI @robster_mn,

Take a look in HABmin under Configuration | Items. Unfortunately, I have not dabbled in motion sensors (yet), so I don’t know how they appear. However, I have a Z-Wave switch, and it automatically showed up as an item.

Note: In the image, I renamed the switch within HABmin (Configuration | Things |

As far as the sitemap goes, mine (as an example) looks like the following. Note the first switch item. The switch item “zwave_washing_machine_switch_binary” corresponds to the name of the switch in the screenshot. The label is whatever text you choose.

sitemap default label="My Home" {
    Switch item=zwave_washing_machine_switch_binary label="Laundry Room Washing Machine"
    Switch item=Front_Porch_Lights label="Front Porch Lights"
    Switch item=Kitchen_Patio_Light label="Patio Lights"
    Switch item=Foyer_Light_B label="Foyer Light"
    Slider item=Kitchen_Island_Lights_A label="Kitchen Island Lights"
    Switch item=Kitchen_Over_Cabinet_Lights label="Kitchen Over Cabinet Lights"
    Switch item=Kitchen_Under_Cabinet_Lights label="Kitchen Under Cabinet Lights"
    Slider item=Kitchen_Table_Lights_A label="Kitchen Table Lights"
    Slider item=Family_Room_Lights_A label="Family Room Lights"
    Slider item=Fireplace_Light_B label="Fireplace Light"
    Slider item=Bar_Light label="Bar Light"
    Switch item=Fish_Tank_Light label="Fish Tank Light"
    Switch item=Sunroom_Window_Lights label="Sunroom Window Lights"
    Slider item=Living_Room_Lights_A label="Living Room Lights"
    Slider item=Dining_Room_Lights_A label="Dining Room Lights"
    Slider item=Balcony_Light label="Balcony Light"
    Switch item=Upstairs_Hallway_Lights_B label="Upstairs Hallway Lights"
}

This is a partial screenshot of the switch in the sitemap displayed in the Basic UI.

image

General information setting up items is here:

General information on setting up a sitemap here here:

Good luck.

Regards,
Burzin

Thanks for the great information,
I figured out how to add the SW’s
I was trying to find out how to add the number value from a motion sensor into the sitemap?

https://www.openhab.org/addons/bindings/zwave/thing.html?manufacturer=zooz&file=zse40_0_0.html

As you can see I have several number values to display…

Contact zwave_device_3330d67e_node5_sensor_binary
Number zwave_device_3330d67e_node5_battery_level
Number zwave_device_3330d67e_node5_sensor_luminance
Number zwave_device_3330d67e_node5_sensor_temperature
Number zwave_device_3330d67e_node5_sensor_relhumidity
Contact zwave_device_3330d67e_node5_alarm_tamper
Contact zwave_device_3330d67e_node5_alarm_motion

And then I want to trigger events/rules based on these values which I think I can figure out?

Example:
If humidity value is above X then turn on Y

@robster_mn,

Are these from your items file?

Contact zwave_device_3330d67e_node5_sensor_binary
Number zwave_device_3330d67e_node5_battery_level
Number zwave_device_3330d67e_node5_sensor_luminance
Number zwave_device_3330d67e_node5_sensor_temperature
Number zwave_device_3330d67e_node5_sensor_relhumidity
Contact zwave_device_3330d67e_node5_alarm_tamper
Contact zwave_device_3330d67e_node5_alarm_motion

If so the Number items should look something like, as an example, this:

Number    Livingroom_Temperature   "Temperature [%.1f °C]"             // e.g. "23.5 °C" - 1 floating point digit
Number    Livingroom_Clock_Battery "Battery Charge [%d %%]"            // e.g. "50 %"  - Number value - the % is escaped to display a %

I believe a contact item will look like this in the items file.

Contact Livingroom_Window "Living Room Window  [%s]"

Regards,
Burzin

Yes, I have them in the items file? Just wondering how to get the Number values into the sitemap file?

Hi @robster_mn

Provided you have the items either in the items file or they show up in the HABadmin GUI, and the sitemap is defined properly, they should show up.

My items show up in HABadmin. Here’s a screenshot of the voltage measured by the previously mentioned switch. I could be off base, but I think your items may also show up there. If they do, there’s no need for an items file to represent the items.

My sitemap is as follows, and the first item represents the voltage as measured by the switch.

sitemap default label="My Home" {
    Switch item=zwave_washing_machine_meter_voltage label="Test Voltage"
    Switch item=zwave_washing_machine_switch_binary label="Laundry Room Washing Machine"
    Switch item=Front_Porch_Lights label="Front Porch Lights"
    Switch item=Kitchen_Patio_Light label="Patio Lights"
    Switch item=Foyer_Light_B label="Foyer Light"
    Slider item=Kitchen_Island_Lights_A label="Kitchen Island Lights"
    Switch item=Kitchen_Over_Cabinet_Lights label="Kitchen Over Cabinet Lights"
    Switch item=Kitchen_Under_Cabinet_Lights label="Kitchen Under Cabinet Lights"
    Slider item=Kitchen_Table_Lights_A label="Kitchen Table Lights"
    Slider item=Family_Room_Lights_A label="Family Room Lights"
    Slider item=Fireplace_Light_B label="Fireplace Light"
    Slider item=Bar_Light label="Bar Light"
    Switch item=Fish_Tank_Light label="Fish Tank Light"
    Switch item=Sunroom_Window_Lights label="Sunroom Window Lights"
    Slider item=Living_Room_Lights_A label="Living Room Lights"
    Slider item=Dining_Room_Lights_A label="Dining Room Lights"
    Slider item=Balcony_Light label="Balcony Light"
    Switch item=Upstairs_Hallway_Lights_B label="Upstairs Hallway Lights"
}

Via the Basic UI, the sitemap renders the switch voltage as follows.

image

If you are still having problems, I think you may need to post your items file and sitemap. (Use code fences to make it easier to read.).

Regards,
Burzin

Copy that,

I assumed I couldn’t define a sw for a number value.

Thanks

If you just want to display the state, use a text item.