Design Pattern: Time Of Day

jodatime
designpattern
time
Tags: #<Tag:0x00007fe05221bf80> #<Tag:0x00007fe05221bdf0> #<Tag:0x00007fe05221b918>

(Rich Koshak) #284

OK, if you have non-astro events that failed too the problem isn’t Astro. So next look at openhab.log to verify that the ToD rule ran when it was supposed to or failed to run.

I should note that we will only be successful figuring this problem out if you understand how this rule works. If you don’t, study the code and ask questions. we will be going back and forth forever if you don’t understand how the rule is supposed to work.


(Kris K) #285

The rule appears to run just fine. It appears to only trigger on the cron events though, would that be right based off the below? Not the astro events

ris@openhab2:/etc/openhab2/rules$ cat /var/log/openhab2/openhab.log | grep "Calculating time of day"
2019-02-01 20:00:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-01 23:00:00.002 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 00:01:00.002 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 06:00:01.764 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 19:59:00.004 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 21:02:14.022 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 21:02:38.952 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 21:05:51.838 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 21:20:40.785 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-02 23:00:00.225 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-03 00:01:00.002 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-03 06:00:01.951 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-03 19:58:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-03 23:00:00.184 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-04 00:01:00.002 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-04 06:00:01.526 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-04 19:58:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-04 21:32:39.345 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-05 19:57:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-06 19:56:00.002 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-07 19:55:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-08 06:31:00.295 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-08 19:54:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-09 19:53:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-10 18:23:22.892 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-10 18:27:37.218 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-10 19:53:00.009 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-10 20:03:49.158 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-10 20:56:33.279 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-10 23:00:00.008 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-11 00:01:00.003 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-11 06:00:00.013 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...
2019-02-11 19:52:00.004 [INFO ] [e.smarthome.model.script.Time Of Day] - Calculating time of day...


(Rich Koshak) #286

You have cron triggers for 00:01, 06:00, and 23:00. The log it also showing it running at 20:00, 19:59ish, and 21:32ish which implies astro events are firing too.


(Kris K) #287

OK, ill keep an eye on it. Its now 6.30am and its showing MORNING so its working (I did restart OH2 for othe reasons a day or so ago)