Dear Openhab Experts,
I got an issue with a LED strip that is connected via a Conbee 2 Zigbee Stick using the DeconZ and Hue binding. Unfortunately it seems that setting a color via HSBType does absolutely not work and does not get accepted by the strip when executing my rule.
When I change the color etc in “Phoscon App”, everything works fine but not in OpenHab
Example when I change the color in Phoscon App (Zigbee Gateway) as you can see it keeps the status:
2020-12-14 00:56:39.141 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 258,100,46 to 11,100,46
2020-12-14 00:56:40.141 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 11,100,46 to 137,100,46
2020-12-14 00:56:42.905 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 137,100,46 to 137,100,55
2020-12-14 00:56:43.907 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 137,100,55 to 137,100,73
My configuration is as follows:
The Item is a “Color”-Type called “BettRechts_Color”
My Rule looks like this:
rule "Bewegung Bett rechts"
when
Item BewegungssensorBettRechts_Presence changed from OFF to ON
then
val hsb_color = new HSBType(new DecimalType(260), new PercentType(100), new PercentType(10))
val hsb_off = new HSBType(new DecimalType(0), new PercentType(100), new PercentType(0))
BettRechts_Color.sendCommand(hsb_color.toString)
Thread::sleep(45000);
BettRechts_Color.sendCommand(hsb_off)
end
And thats what happens in the Log (no matter if I send the command hsb_color.toString or just hsb_color):
2020-12-14 00:29:17.067 [vent.ItemStateChangedEvent] - BewegungssensorBettRechts_Presence changed from OFF to ON
2020-12-14 00:29:18.825 [ome.event.ItemCommandEvent] - Item 'BettRechts_Color' received command 260,100,10
2020-12-14 00:29:18.853 [nt.ItemStatePredictedEvent] - BettRechts_Color predicted to become 260,100,10
2020-12-14 00:29:18.891 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 0.0,100,0 to 260,100,10
2020-12-14 00:29:18.904 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 260,100,10 to 259.995422293431,100,10
2020-12-14 00:29:21.147 [vent.ItemStateChangedEvent] - BettRechts_Color changed from 259.995422293431,100,10 to 0.0,100,10
Maybe anyone has an idea why the HSB is always set back to 0.0,100,10?
Thanks a lot in advance