@rlkoshak Thanks for all your scripts as usual. I successfully implemented the Java-version of Time Of Day. I aslo followed your guide as how to set the Items with a fixed value.
Having said that, there is something weird going on with my timings:
Default_Day should start when
astro:sun:home:rise#start event is triggered. When I am in the ‘Items view’ it has a value of
2021-05-25T05:35:00.000+02:00 (sunrise is at 05:35 local today).
Default_Morning should start at 6 AM and has a value of
When I implemented and ran the rule around 11:30 AM, I got
Morning returned as TimeOfDay string. It looks like the system is either adding 2hrs to 06:00:00 (and thus 08:00:00 local) or subtracts 2hrs from the rise#start event (and thus 03:35:00). Or is this expected behaviour due to the fact that Morning is now after Sunrise? If the latter is the case, how do I fix this? It was working OK on OH2.5 for me.
My setup uses docker on a synology nas. Nas time is set to Europe/Amsterdam, Openhab is set to Europe/Amsterdam.
Does anybody run into the same issues?
Side note: I am using Morning, Day, Afternoon, Evening and Night as states