I have a rule that turns off my holidays lights every night at midnight. This rule has worked without exception until this evening.
I’d like to find out why it did not fire.
I did make some changes to OH today, so I’m curious to find out if this caused this rule not to fire. (the change was the installation of the Unify binding and the configuration of that binding and two things for that binding. I did not reboot the server or stop and start OH during the installation process.)
What’s strange is that my CRON rule for my outside holiday lights did fire on time as it has done for the past 45+ days.
Here’s the rule that DID NOT fire…
rule "Holiday Mode Off"
when
Time cron "0 0 0 1/1 * ? *"
then
logInfo("sunriseholiday.rules", "The SunRISE CRON rule has triggered OFF")
if (VIR_IN_HolidaySwitch.state==ON)
{
HolidayRemote1.sendCommand(OFF)
HolidayRemote2.sendCommand(OFF)
HolidayRemote3.sendCommand(OFF)
HolidayRemote4.sendCommand(OFF)
HolidayRemote5.sendCommand(OFF)
HolidayRemote6.sendCommand(OFF)
}
end
Here’s the rule that DID fire
rule "Holiday Mode Off"
when
Time cron "0 1 0 * * ? *"
then
logInfo("sunsetholidays.rules", "The SunSet CRON rule has triggered OFF")
if (VIR_OUT_HolidaySwitch.state==ON)
{
FntPatioPlug.sendCommand(OFF)
WalkGatePlug.sendCommand(OFF)
GarageHolidaySwitch.sendCommand(OFF)
FntDrivewayPlug.sendCommand(OFF)
}
end
If you look into my logs for tonight, you’ll see
2018-01-03 00:00:30.005 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home
2018-01-03 00:00:30.011 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home
2018-01-03 00:01:00.162 [INFO ] [me.model.script.sunsetholidays.rules] - The SunSet CRON rule has triggered OFF
On previous nights you see this in the log…
2018-01-02 00:00:00.001 [INFO ] [me.model.script.sunriseholiday.rules] - The SunRISE CRON rule has triggered OFF
2018-01-02 00:00:30.006 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home
2018-01-02 00:00:30.013 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home
2018-01-02 00:01:00.002 [INFO ] [me.model.script.sunsetholidays.rules] - The SunSet CRON rule has triggered OFF
Any idea on what could have prevent this rule from running?