Hello All,
I’m at a loss completely now - but perhaps someone has an idea.
TL’DR> Hue Item changes on its own when the previous state had 0 brightness.
Test Setup:
- One hue lightstrip set-up as following:
Color wzIndirectLightColor { channel=“hue:0210:huebridge:tWZIndirekt:color”}
- A command list for the console:
openhab:send wzIndirectLightColor ("60","60","0")
openhab:send vDebug ON
openhab:send vDebug OFF
- The rule:
import java.util.Map
var Map savedState
rule "test"
when
Item vDebug received command
then
if (receivedCommand == ON) {
logInfo("DEBUG", "ON")
savedState = storeStates(wzIndirectLightColor)
wzIndirectLightColor.sendCommand(HSBType::RED)
}
else {
logInfo("DEBUG", "OFF")
restoreStates(savedState)
}
end
And now for the confusing part - the log results>
2022-12-05 10:55:40.940 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'vDebug' changed from OFF to ON
2022-12-05 10:55:40.945 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'wzIndirectLightColor' received command 0,100,100
2022-12-05 10:55:40.947 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'wzIndirectLightColor' predicted to become 0,100,100
2022-12-05 10:55:40.951 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'wzIndirectLightColor' changed from 60,60,0 to 0,100,100
2022-12-05 10:55:46.462 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'vDebug' received command OFF
2022-12-05 10:55:46.469 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'vDebug' changed from ON to OFF
2022-12-05 10:55:46.475 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'wzIndirectLightColor' received command 60,60,0
2022-12-05 10:55:46.477 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'wzIndirectLightColor' predicted to become 60,60,0
2022-12-05 10:55:46.482 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'wzIndirectLightColor' changed from 0,100,100 to 60,60,0
2022-12-05 10:55:48.771 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'wzIndirectLightColor' changed from 60,60,0 to 0,100,0
That last line is what makes me go crazy by now. The item is defined with only the hue link and no other rule refers to it (grep ftw).
If I define a Color testColor this behavior does not occur btw, only with hue lights.
Any tips or ideas are very welcome, I’m lost I have to admit.