sometimes the rule works and sometimes not!
and the name ´unkown´ what the hell is that, dont have it in the project
openhab 1.8.1
[ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘HueSovaTimer’: The name ‘unkown’ cannot be resolved to an item or type.
Switch HueSova
var boolean cancelHUEs = false
rule "HueSovaTimer"
when
Item HueSova received command ON
then
sendCommand(hue1color,HSBType::RED)
sendCommand(hue2color,HSBType::RED)
sendCommand(hue1bright,100)
sendCommand(hue2bright,100)
var int bright = 100
while(bright > 0 && !cancelHUEs){
hue1bright.sendCommand(bright)
hue2bright.sendCommand(bright)
bright = bright - 5
Thread::sleep(5000)
}
cancelHUEs = false
end