and here are the rules that interact with the item:
rule "Hue TV"
when
Item Scene_General received command 1
then
gHUE?.members.forEach(item,i|createTimer(now.plusSeconds(i+10)) [|sendCommand(item, OFF)])
Thread::sleep(2000)
Toggle_2.sendCommand(ON)
Color_2.sendCommand("55,83,50")
//hue_on.apply(Toggle_2,Color_2,55,83,50)
end
rule "Hue Night"
when
Item Scene_General received command 2
then
gHUE?.members.forEach(item,i|createTimer(now.plusSeconds(i+10)) [|sendCommand(item, OFF)])
Thread::sleep(2000)
sendCommand(Toggle_3,ON)
sendCommand(Color_3, "0,80,10")
//hue_on.apply(Toggle_3,Color_3,0,80,10)
//hue_off.apply(Color_2,Toggle_2)
//hue_off.apply(Color_1,Toggle_1)
//hue_off.apply(Toggle_4,Toggle_4)
end
rule "Hue Off"
when
Item Scene_General received command 0 OR Item gHUE received command OFF
then
gHUE?.members.forEach(item,i|createTimer(now.plusSeconds(i+10)) [|sendCommand(item, OFF)])
postUpdate(Scene_General, 0)
postUpdate(Toggle_1, OFF)
postUpdate(Toggle_2, OFF)
postUpdate(Toggle_3, OFF)
postUpdate(Toggle_4, OFF)
end
If that doesn’t help then I guess I’ll just have to start testing everything little by little when I have time.
Thanks, it’s not showing up in either. All of my items are defined via an items file and many of them do show up but maybe that’s because they are attached to a thing? I will dig in this weekend and try to figure out what is going on.