Hello!
I am using Yeelights with this item config:
Switch Light_YeeLight1_OnOff "Kugellampe" <wallswitch> (gYeelight1,gWohnzimmerlicht_Schalten) {channel="yeelight:wonder:0x000000000531dd46:color"}
Color Light_Yeelight1_Color "Kugel Farbe" <colorpicker> (gYeelight1,gWohnzimmerlicht_Farbe) {channel="yeelight:wonder:0x000000000531dd46:color"}
Dimmer Light_Yeelight1_Farbtemperatur "Farbtemperatur" <slider> (gYeelight1) {channel="yeelight:wonder:0x000000000531dd46:colorTemperature"}
I am trying to create something like an Police-Light, so fading an color from high to low and back.
So i added a Dimmer-Item to the Color-Channel:
Dimmer Light_Yeelight1_ColorDimmer "Kugel Farbestärke [%s]" <slider> (gYeelight1) {channel="yeelight:wonder:0x000000000531dd46:color"}
I tried to increase and decrease it with item.sendCommand(DECREASE), but that didnt work. So what worked was item.sendCommand(item.state as Number - 1).
The Problem:
If i declare the channel as above as an Color Item AND and Dimmer Item, then if i decrease or increase the dimmer after a second it will get back to 100. It seems, that the Color Item always set it back.
Any ideas, what i didnt unterstand?
Thank you!