The Aeotec Smart Switch 6 (ZW096) has a nice built-in RGB LED ring that I would like to control via a set of Color & Dimmer items for indicating various status (primarily the cost of electricity at various times of the day).
The LEDs can either follow the load status or be set to “night light” mode via parameter 81. In night light mode, the color can be set by the user via parameter 83 and the brightness by parameter 84.
The good news is that there is support in more recent zwave binding versions for setting parameters via an item like so:
Dimmer Washing_Machine_LED "Washing Machine LED Brightness [%d %%]" <colorwheel> (Laundry,Control) {zwave="20:command=configuration,parameter=84"}
Color Washing_Machine_LED_Color "Washing Machine LED Color" <colorwheel> (Laundry,Control) {zwave="20:command=configuration,parameter=83"}
The bad news is there are a few issues to resolve that I’m not quite sure how to go about:
-
Add parameters 83 & 84 to the zwave device database definition for this device (not there at present). Without this, the items defined above will throw an error in the logs like “Device has no parameter 83.”
-
Converting types to match what the parameter expects. Neither the OnOffType or HSBType are supported by the zwave binding to convert to the numeric data the parameter command expects.
-
Related to above, but I have no idea how to set multi-byte parameters via an item. For example, the brightness parameter is only one byte, so that should just work with a Dimmer item (0-100). The color parameter requires 3 bytes, Red/Green/Blue for Value1/2/3. Even if I converted the HSBType values in a rule or something, I’m not sure how they would write out to the parameter.
Any thoughts on how to proceed? It would be great to get this working so others can use this nifty functionality as well. I will be happy to post a working example to the wiki once it all works.
If you are interested, here is the snippet from the manual: