I have the dimmer working just fine, otherwise. But if I press the button toggle the light, there is no command sent to OH2. I turned on debugging for the wave binding to compare what’s sent when I toggle the switch in the sitemap and what’s sent when the button is pressed. When toggling from the sitemap, I see: 2017-11-19 12:23:55.488 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 10: Command received zwave:device:8b948369:node10:switch_dimmer --> OFF
I don’t know this device and can not guarantee this applies to it. But many switches do not actually report back to the controller when it is manually toggled. I know for sure that the GE switches do not. I believe there was a patent dispute and only one vendor is/was able to sell such a switch that does instantly report.
All Aeon devices should report back their status - is the appropriate association configured in the device? I also note you might need to change the configuration of parameter 80 so it reports a command (just looking at the comment in the association group in the database).
Looking at the database there is a dimmer - this should be all that is needed as a dimmer is also a switch so multiple channels are not required.
Thanks for the reply. I’ll look into the association. Also, where is this “database”? I’ve read references to it in posts here, but I don’t know if its something local to my installation or somewhere online.
There’s an online version at www.cd-jackson.com, however it is exported from here into the binding, so yes, it’s also local to your installation as well.
I set parameter 80 to “Basic CC Report” and that allows the dimmer to send an update. I can use that the keep the sitemap up to date. I also tried setting Group 2 of the Association Group to the Openhab controller. I still the same message as I posted earlier, but no command is sent. But the update I get from the Basic CC Report is adequate for my needs.
Thanks for the reply.
@chris: Hi Chris, it seems we are having a regression with latest development branch under OH2 2.4 build 1313. Let me explain in detail the sequence:
ZW099 is configured to send Basic CC report whenever a change is detected.
Now when I try to change the dimmer through the linked item in PaperUI, I can seen the MULTILEVEL_SET sent correctly.
The ZW099 carries out the command, and sends a Basic Report back to controller. This report is not interpreted correctly in the binding, which leads to showing 2 different in PaperUI for the mapped native item and the corresponding item defined in the .items files.
After 1500ms a polling event occurred which causes the controller to send a MULTILEVEL_GET command to ZW099.
The ZW099 answers to the command correctly. Now the value is interpreted in the binding correctly and the native item is updated correctly.
This issue can be seen for all devices that implement the MULTILEVEL and the BASIC CC at the same time.
I am seeing this issue since a couple of days.
I think this is caused by the device now sending the commands with MC encap. We probably need to change the database to add new channels - can you provide the XML for your device please?
This shows that there are more endpoints in this device, and we’ll need to update the database to reflect this. With the new concepts for the MC commanding, devices are changing the way they report based on the way association are configured.
Basically, instead of using the root endpoint, we will need to use the other endpoints.
I’ll have a think about how to handle this - the database will need to be updated in any case.
I think this is a good approach to link items to their endpoints equivalent instead of root device.
It is working now after I modified the XML file from database and rebuilt the plugin.
I think there still a bug somewhere hidden in the color converter
After changing the dimmer value, the controller polls all other entries (I think through MC encap). the color value changes slightly before is being set back to its correct value. I think this might be related to the conversion from RGB to HSB inside the binding. I think it is done too early instead of waiting of all RGB values to be retrieved:
2018-07-19 11:20:29.845 [ome.event.ItemCommandEvent] - Item 'diCornerLamp' received command 100
2018-07-19 11:20:29.866 [vent.ItemStateChangedEvent] - diCornerLamp changed from 89 to 100
2018-07-19 11:20:29.917 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 354 to 355
2018-07-19 11:20:29.944 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 884 to 885
2018-07-19 11:20:29.973 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 885 to 886
2018-07-19 11:20:29.985 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 886 to 887
2018-07-19 11:20:30.005 [vent.ItemStateChangedEvent] - zwave_aeon_zw099_00_000_b8d4da1b_node9_switch_dimmer changed from 89 to 100
2018-07-19 11:20:31.417 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 355 to 356
2018-07-19 11:20:31.430 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 887 to 888
2018-07-19 11:20:31.467 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 888 to 889
2018-07-19 11:20:31.484 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 889 to 890
2018-07-19 11:20:31.597 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 356 to 357
2018-07-19 11:20:31.626 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 890 to 891
2018-07-19 11:20:31.643 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 891 to 892
2018-07-19 11:20:31.647 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 892 to 893
2018-07-19 11:20:31.740 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 357 to 358
2018-07-19 11:20:31.765 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 893 to 894
2018-07-19 11:20:31.821 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 894 to 895
2018-07-19 11:20:31.856 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 895 to 896
2018-07-19 11:20:31.931 [vent.ItemStateChangedEvent] - zwave_aeon_zw099_00_000_b8d4da1b_node9_color_color changed from 300,25,10 to 300,25,100
2018-07-19 11:20:31.947 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 358 to 359
2018-07-19 11:20:31.952 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 896 to 897
2018-07-19 11:20:31.990 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 897 to 898
2018-07-19 11:20:32.025 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 898 to 899
==> /var/log/openhab2/openhab.log <==
2018-07-19 11:20:32.034 [INFO ] [.commandclass.ZWaveColorCommandClass] - NODE 9: Color report BLUE 27
==> /var/log/openhab2/events.log <==
2018-07-19 11:20:32.086 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 359 to 360
2018-07-19 11:20:32.107 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 899 to 900
2018-07-19 11:20:32.136 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 900 to 901
2018-07-19 11:20:32.186 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 901 to 902
==> /var/log/openhab2/openhab.log <==
2018-07-19 11:20:32.212 [INFO ] [.commandclass.ZWaveColorCommandClass] - NODE 9: Color report RED 27
==> /var/log/openhab2/events.log <==
2018-07-19 11:20:32.246 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 360 to 361
2018-07-19 11:20:32.266 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 902 to 903
2018-07-19 11:20:32.313 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 903 to 904
2018-07-19 11:20:32.368 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 904 to 905
==> /var/log/openhab2/openhab.log <==
2018-07-19 11:20:32.384 [INFO ] [.commandclass.ZWaveColorCommandClass] - NODE 9: Color report GREEN 20
2018-07-19 11:20:32.390 [INFO ] [.commandclass.ZWaveColorCommandClass] - NODE 9: Color report finished {GREEN=20, BLUE=27, RED=27}
==> /var/log/openhab2/events.log <==
2018-07-19 11:20:32.429 [vent.ItemStateChangedEvent] - zwave_aeon_zw099_00_000_b8d4da1b_node9_color_color changed from 300,25,100 to 300,25,10
2018-07-19 11:20:32.459 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 361 to 362
2018-07-19 11:20:32.475 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 905 to 906
2018-07-19 11:20:32.514 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 906 to 907
2018-07-19 11:20:32.554 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 907 to 908
2018-07-19 11:20:32.646 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 362 to 363
2018-07-19 11:20:32.667 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 908 to 909
2018-07-19 11:20:32.712 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 909 to 910
2018-07-19 11:20:32.737 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 910 to 911
2018-07-19 11:20:32.782 [vent.ItemStateChangedEvent] - zwave_aeon_zw099_00_000_b8d4da1b_node9_meter_voltage changed from 232.646 to 232.351
2018-07-19 11:20:32.794 [vent.ItemStateChangedEvent] - vltCornerLamp changed from 232.646 to 232.351
2018-07-19 11:20:32.817 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_ack changed from 363 to 364
2018-07-19 11:20:32.837 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 911 to 912
2018-07-19 11:20:32.897 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 912 to 913
2018-07-19 11:20:32.909 [vent.ItemStateChangedEvent] - zwave_serial_zstick_b8d4da1b_serial_sof changed from 913 to 914
There is code in the binding to wait until all channels are received, but I will take a look. I didn’t notice this the other day when I was working on the color code, so if you have a log, then please provide it