yes but its really the same result as the IOS GUI - color item is not responsive and cant be turned off when device is offline
rule "lifx Jackson online"
when
Thing "lifx:colorlight:D073D5203016" changed
then
var thingStatusInfo = getThingStatusInfo("lifx:colorlight:D073D5203016")
if ((thingStatusInfo !== null) && (thingStatusInfo.getStatus().toString() == "ONLINE")) {
Lifx_JC_Online.postUpdate(ON)
} else {
Lifx_JC_Online.postUpdate(OFF)
Lifx_JC.sendCommand(OFF)
}
end
items
Color Lifx_JC "LIFX Jackson" {channel="lifx:colorlight:D073D5203016:color"
Switch Switch_Lifx_JC "LIFX Jackson" {channel="lifx:colorlight:D073D5203016:color"}
Switch Lifx_JC_Online