I have a similar problem that other people have reported - astro binding firing my events at midnight. It had been working cleanly for some time, it’s started this behaviour recently. It’s not reliable.
I see on this thread: Astro-Binding: all events are triggered at the same time shortly after midnight, which in turn points to this ticket: https://github.com/openhab/openhab-addons/issues/6584, that the cause can be threads being tied up, either through other bindings or I presume rules or add ins.
I’ve run the suggested threads – locks --monitors, and piped the output to a file. To me it looks like I have a lot of threads tied up, but I actually don’t know how to read the output so it may be entirely normal. I also cannot easily see what’s tying the threads up - a lot of them look to me to be tied up in timers (wait nanos I assume means a timer), and I do use a lot of timers, but seems to me that timers shouldn’t mean I run out of threads, and they should all complete and exit reasonably rapidly (usually within a couple of hours) so they shouldn’t stack up.
Does anyone know this better than me and could give some pointers?
My fallback at the moment will be to add logic to my astro events that basically checks if we’re close to midnight, and then doesn’t run. And furthermore, that has a fallback at 8am and 9pm to check if the astro event has run, and do a failsafe turn on / off just in case.
Log from around midnight:
2020-11-04 23:59:45.113 [INFO ] [lipse.smarthome.model.script.weather] - numberRainArray:[7.620, 0.0, 0.0, 5.842, 22.352, 0.762, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.25
4, 0.508, 0.254, 0.0, 0.0, 0.0, 0.254, 0.254, 25.4, 13.716, 0.0, 0.0, 0.0, 3.81, 0.0, 0.0, 0.0] length:30
2020-11-04 23:59:45.304 [INFO ] [lipse.smarthome.model.script.weather] - numberRainList:[7.62, 0.0, 0.0, 5.842, 22.352, 0.762, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.254, 0.508, 0.254
, 0.0, 0.0, 0.0, 0.254, 0.254, 25.4, 13.716, 0.0, 0.0, 0.0, 3.81, 0.0, 0.0, 0.0] length:30
2020-11-04 23:59:45.315 [INFO ] [lipse.smarthome.model.script.weather] - strTemp:1.270, 7.62, 0.0, 0.0, 5.842, 22.352, 0.762, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.254, 0.508, 0.254,
0.0, 0.0, 0.0, 0.254, 0.254, 25.4, 13.716, 0.0, 0.0, 0.0, 3.81, 0.0, 0.0
2020-11-05 00:00:04.737 [DEBUG] [.eclipse.smarthome.model.script.plug] - Running price calc
2020-11-05 00:00:05.838 [DEBUG] [.eclipse.smarthome.model.script.plug] - Leave fridges on, price of 94.26 is low enough
2020-11-05 00:00:05.850 [DEBUG] [.eclipse.smarthome.model.script.plug] - Finished running price calc
2020-11-05 00:00:30.550 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:local
2020-11-05 00:00:30.626 [INFO ] [.eclipse.smarthome.model.script.plug] - Dawn start
2020-11-05 00:00:30.659 [INFO ] [.eclipse.smarthome.model.script.plug] - Dusk start
2020-11-05 00:00:30.739 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:local
2020-11-05 00:10:04.318 [DEBUG] [.eclipse.smarthome.model.script.plug] - Running price calc
2020-11-05 00:10:05.675 [DEBUG] [.eclipse.smarthome.model.script.plug] - Leave fridges on, price of 117.54 is low enough
2020-11-05 00:10:05.724 [DEBUG] [.eclipse.smarthome.model.script.plug] - Finished running price calc
2020-11-05 00:20:04.498 [DEBUG] [.eclipse.smarthome.model.script.plug] - Running price calc
locks.txt (131.6 KB)