Hi, I have a little issue here. I’m trying to make a rule to turn off an item only if it’s off since 10 minutes. So I know that I need at least 2 item but to see it event better in the log I did it with 3 item. My issue is the command off is receive before the 10 minutes some time and I don’t know why
So BluetoothDom receive command OFF then send Command to StandbyDom. StandbyDom wait 10 min and if BluetoothDom still OFF he send command PresenceDom OFF…
Rules :
rule “standby dom”
when Item StandbyDom received command ON
then
Thread::sleep(600000)
if(BluetoothDom.state==OFF) {
sendCommand(PresenceDom, OFF)
}
end
rule "bluetooth Dom"
when Item BluetoothDom command OFF
then
sendCommand(standbydom, ON)
end
Or maybe some one have a better idea of what I can do ?