OS: what OS is used and which version
Raspi latest
Java Runtime Environment: which java platform is used and what version
latest required for OH 4
openHAB version: 4.0.2
Issue of the topic: please be detailed explaining your issue
I use since years (started with OH3) a rule set for opening and closing my roller shutters.
It worked for a while after moving to OH4 (complete new installation and restoring the OH3 confiuration). After some weeks the blinds didn’t closed and sometimes opened anymore as expected. Triggering the rules manually everything acts as expected.
Now checking the logs I see that the last Sunrise I found was 2 days ago and that is what I experienced yesterday and today. The blnds kept closed …
What is the reason for this sporadic working / not working of the Astro binding?
Thanks in advance
Helmut
Please post configurations (if applicable):
Items configuration related to the issue
Sitemap configuration related to the issue
Rules code related to the issue
Services configuration related to the issue
If logs where generated please post these here using code fences:
Without seeing your Thing and rule configuration it’s hard to say.
Do you see any errors in the logs from Astro?
Have you restarted OH since it’s stopped working (tells us if it’s a persistent problem, a temporary problem fixed by a restart, or a problem that only occurs a certain amount of time after a restart)?
I open and close the whole set of blinds I have, so I don’t think it is helpful to show you all these things and the rule. The rule worked without any change since about 3 years. This issue occured first after starting OH4 some month ago and not immediately. It took some weaks to show up.
Yes I restarted OH about a week before but I cannot tell you when. I think I will restart it again and see whether and how long it will work. When I know more I will come back but maybe some else experienced the same behavior of missing Sunrise events in the logs.
No Channels? I don’t need all of them but if there are none that might be a problem. If they are there, post the Channel that you are using to trigger the rule.
yes, there are ne channels in the code tab of the “local sun data” thing.
In the channel tab I see 2 channels linked to items (azimut and elevation) but nothing in the code section.
Yesterday I did a restart of openhab.service which ended up with lots of KNX related errors, not finding items. After a reboot everything was fine again and my blinds opened this morning as expected …
That’s not necessarily a problem but it could be. My Astro Thing has all the Channels listed on the Code tab. But this Astro Thing has existed in my config since OH 3.0 so things might have changed.
Do you see the Channels under the Channels tab on the Thing’s page?
What do you see if you remove and recreate the Thing? Do the Channels appear then? Is it the case that the Channels appear while it’s working but not when the rule doesn’t work?
Thanks for the hint. Because of that I looked into the Channel configuration and found that there is a switch to “force” the event, even if it not occured, after the latest time given.
Yes I have several events over the in the logs today (2023-11-29), but I did a reboot yesterday because of the missing events.
In yesterday (2023-11–28) logs there is no astro event at all.
It worked for about 3 days, then it stopped. That is what I experience since weeks. After a reboot it is fine for a few days …
I will do an update to the latest release, maybe it helps.