This is about: OpenSmartHouse Z-Wave Device Database.
This is a multi-white bulb supporting warm and cold white. It doesn’t do RGB.
Excerpt from the XML:
<commandClass>COMMAND_CLASS_SWITCH_COLOR</commandClass> <COMMAND__CLASS__SWITCH__COLOR> <version>2</version> <instances>1</instances> <control>false</control> <versionSupported>2</versionSupported> <supportedColors> <colorType>WARM_WHITE</colorType> <colorType>COLD_WHITE</colorType> </supportedColors> <refreshList/> <colorMap> <entry> <colorType>WARM_WHITE</colorType> <int>15</int> </entry> <entry> <colorType>COLD_WHITE</colorType> <int>240</int> </entry> </colorMap> <isGetSupported>true</isGetSupported> </COMMAND__CLASS__SWITCH__COLOR>
Currently, the database does contain a color_color channel for this device, which obviously does not do very much color wise, but if I’m not mistaken it could still be used to alter the white temperature. This does not work however. When using the color picker:
2022-10-15 20:44:18.181 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Livingroom_ColorControl' received command 0.000000,52.542370,46.274509 2022-10-15 20:44:18.182 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'Livingroom_ColorControl' predicted to become 0.000000,52.542370,46.274509 2022-10-15 20:44:18.183 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Livingroom_ColorControl' changed from 0.000000,6.779661,46.274509 to 0.000000,52.542370,46.274509 2022-10-15 20:44:18.184 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 34: Command received zwave:device:512:node34:color_color --> 0.000000,52.542370,46.274509 [HSBType] 2022-10-15 20:44:18.184 [WARN ] [ternal.converter.ZWaveColorConverter] - NODE 34: Unknown color mode null. 2022-10-15 20:44:18.184 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - NODE 34: No messages returned from converter
The ‘Unknown color mode null’ seems to originate from the fact that the database does not contain a colorMode for the color_color channel:
<channel id="color_color" typeId="color_color"> <label>Color Control</label> <properties> <property name="binding:*:HSBType">COMMAND_CLASS_SWITCH_COLOR</property> <property name="binding:*:PercentType">COMMAND_CLASS_SWITCH_MULTILEVEL</property> <property name="binding:Command:OnOffType">COMMAND_CLASS_SWITCH_MULTILEVEL</property> </properties> </channel>
So, the question is - can the color_color channel be fixed for this device (maybe by adding colorMode=DIFF_WHITE)?
Or is this channel never going to work on this device and should it be removed altogether to avoid any confusion?
Thanks for any insights