New Z-Way Binding

This is a good hint. The data is already provided by the Z-Way API but is nowhere displayed. I could add two channels to each device (thing): last update from device and last update from Z-Way. However, the properties of the channels would probably be the better solution, but in my opinion, these are nowhere displayed. What would you prefer: seperate channels or channel properties?

I think the conversation and the review of the pull request on Github are crucial. Perhaps there are some testers who write a short experience report in the conversation of the pull requests.

I think the easiest would be to follow (watch) my Github projects: forked openhab2-addons and ZWay-OpenHABConnector

Well, Iā€™m not sure I can suggest something because I quite new to openHAB, but, if you add this as channels I know how to display the timestamp on my sitemap :grinning: If you add them as properties I think they can only be viewed in Paper UI and/or HABmin.

I just commented there. No sure that what I wrote is a ā€œreviewā€, butā€¦ :blush:

Many thanks for your help. Iā€™ll add the update times as channels in the next days.

Hi @pathec, thanks again for this binding.
Iā€™ve been using for some time now and I thought it started to be ready for a merge, but over the last month or so Iā€™ve experienced that OpenHab is not getting updated from Z-way.
Might be something with the OpenHabConnector?

The updates works fine from OpenHab to Z-way, but the other way around only updates on the timed interval.

I cannot find anything in the logs on my z-way-server to check if the connector is working or not.

Any suggestions on how to debug this further?

I tried cloning the Openhab Connector again 2-3 days ago, but the problem is still there.

Are there any way of debugging the connector?

Hi,

Thanks for the kind words. I will edit Kaiā€™s comments as soon as I can.

In Z-Way, you can view the list of devices with the last state. For each entry ā€œOKā€ should be displayed.

The Z-Way logfile can be found at /var/log/z-way-server.log. This contains more information.

The strange thing in the view you refer to is that the field called ā€œLast notificationā€ is old. It is from the end of december, does this mean that the connector has not sent any notifications to openhab since then?

I tried to reset the configuration in openhab, and make sure the name of the OpenHAB Alias is the same in openhab and registered to the connector.

This seemed to trigger a reconnection, but still the ā€œLast notificationā€ field is not updated.

Yes, does this affect all devices? Will Z-Way show more recent values for the devices?

Please perform the following command once: http://Z_WAY_IP:8083/ZAutomation/api/v1/devices/OpenHabConnector/command/refreshListener.

This should solve the problem one time. Normally this is also done with every change in openHAB. Can you check in the terminal if any errors have occurred for the affacted item or thing for example with: grep "ITEMNAME" /opt/openhab2/userdata/logs/openhab.log (change ITEMNAME to the value from the second column of openHAB connector list).

Thanks, the refresh did not work though,
but I looked at your code and ran:

http://192.168.1.139:8083/ZAutomation/api/v1/devices/OpenHabConnector/command/stop
AND
http://192.168.1.139:8083/ZAutomation/api/v1/devices/OpenHabConnector/command/initEventListener

This seem to be working.

I have an additional question on one of the channels:

Thermostat operation (24.0)
zway:zwayDevice:11fb7777:24:thermostatMode-ZWayVDev_zway_24-0-64content_copy
The channel allows the control or display of a thermostat (mode). A thermostat can have up to three states (modes): off, heating and cooling. The state of heating and cooling is alternately set at the state on.

The only way here is to define the OpenHAB-item as a String and check the value of it?
Can you also please elaborate when the value will be ā€œHEATINGā€, ā€œCOOLINGā€ or ā€œONā€ ?

Thatā€™s a problem of Z-Way. Thermostat modes are mapped incorrectly to virtual devices, only as binary switches. An ā€œonā€ command in Z-Way sets the mode alternately (1 - heating / 2 - cooling) and an ā€œoffā€ command sets the mode 0 (off). However, many Z-Wave thermostats have several modes. The problem is known and worked on the Z-Way developers.

As a workaround Iā€™ve implemented the thermostat command class as channel (see immage). Here you can set the thermostat mode, e.g. for stella-z thermostats: 1 (frost protection), 0 (energy saving) or 11 (comfort). Note: if the value changes outside of openHAB, it is not updated directly in openHAB, only during a polling. Whether your HeatIt thermostats support the thermostat command class I can not recognize directly from the manual.

What does not work is the command class configuration. Do you change the configuration parameter 12 during the runtime or only once during configuration?

I do have an Aeonlab zstick gen5 as my zwaver controller and Iā€™m stuck, for over 2 months, with initialisation of a motion sensor as discussed here.
Since the problem is within the database of supported zwave devices, which I donā€™t know how to resolve, Iā€™m considering to use the zway binding instead of the zwave binding.
I have two questions:

  • Will the Z-Way software license key, work with the Aeonlab zstick gen5 zwave controller?
  • Does the Z-Way software operate based the zwave database or some other database? (would it support the HSM100 motion sensor?)

Thanks

Hi,

To my knowledge Z-Way works with the UZB stick or RazBerry only.

Patrick

There seems to be some kind of bug in The Z-Way Binding, making use of it via Paper UI fail.

2 Likes

Is the binding in the final openhab 2.0 the latest or should I download another one? The roller shutters are all offline (Error occurred when performing polling.)

EDIT: Oh and Iā€™m using 2.3.0-rc10 of z-way becaufe of problems with fibaro dimmer 2

Thank you for your message. Iā€™ve fixed the problem. Can you please confirm new version? Delete thing first and recreate it after update. New version: https://github.com/openhab/openhab2-addons/files/733286/org.openhab.binding.zway-2.1.0-SNAPSHOT.zip.

Iā€™ll check this ā€¦

Patrick

Can you please describe the problem in more detail? The dimmer and binary switch function should work. What virtual devices does Z-Way generate for the Fibaro Dimmer 2? According to the manual, a dimmer, a binary switch and a display for power and energy consumption should be generated.

Hello Patrick,

it was a test because dimmer 2 never completed interview. The rc10 did it.
Back to 2.2 Iā€™ll test your new binding. Thank you and I will tell the result!

@pathec
Hello Patrick!
Any news about adding the ā€œlast seenā€ timestamp?
Iā€™m using ZWay Binding 2.1.0.201702020955.
Everything else was perfectly! :smile:

Hello Mihai Badea

Unfortunately, some work came in between, but I think Iā€™ll get to it on the next days. Iā€™ll write to you as soon as I implement it.

Patrick

Hello Mihai Badea,

I added a channel to display the last update. New version for testing: https://github.com/openhab/openhab2-addons/files/754940/org.openhab.binding.zway-2.1.0-SNAPSHOT.zip. If you could test it would be great.

Patrick