hi,
I`m using the colorpicker item along with my ledstripes.
the button up and down switches the lights on and off. but instead of really power on/off they just send a color value (eg. 0,0,0 for power off). problem is that I have an external wall-switch which should also power on/off the lights but this doesn`t work when power is already on and color is 0,0,0.
yes, I know I could use another item for power on/off but if I could have my UI small would be nice. my wife stumples over this issue and I need to raise the WAF…
has someone an idea how to change the colorpicker item and change the button up/down to power on/off?
thanks
rule "wall switch"
when
Item WallSwitch received command
then
if (LEDStrip.state == OFF) LEDStrip.state.sendCommand(ON) else LEDStrip.state.sendCommand(ON)
end
rule "switch off led controller"
when
Item LED_Bad_Color received command
then
if ( LED_Bad_Color.state.toString.contains("OFF")) sendCommand(LED_Bad,OFF)
else sendCommand(LED_Bad,ON)
end