hi guys, ive got a issue where rules randomly stop working in a rule file until I open the rule file and reserve it or reboot openhab. any ideas would be awesome.
the rules that seem to have the issue the most are as follows.
the first one is in a file called rules.rules
rule "House OFF"
when
Item Goodnight changed from OFF to ON
then
SunSet.sendCommand(OFF)
Amp_Power.sendCommand(OFF)
Lounge_TV.sendCommand(OFF)
Thread::sleep(2000)
All_Lights.sendCommand(OFF)
Goodnight.sendCommand(OFF)
sendNotification("***********", "Goodnight *****, The house has been switched off.")
sendNotification("***********", "Goodnight *****, The house has been switched off.")
end
the second is in a file called Alexa.rules
rule "Alexa House OFF"
when
Item The_House_Kill_Switch changed from ON to OFF
then
SunSet.sendCommand(OFF)
Amp_Power.sendCommand(OFF)
Lounge_TV.sendCommand(OFF)
Thread::sleep(2000)
All_Lights.sendCommand(OFF)
The_House_Kill_Switch.sendCommand(ON)
Echo_Entrance_TTS.sendCommand('I Have Turned The House Off, I will Lock the Front Door For you in 1 Minute.')
Thread::sleep(60000)
Lock_EntranceFront.sendCommand(ON)
sendNotification("********", "****, The House has been locked.")
end