You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a task is scheduled with run_at_sunset() with an offset and the code is reloaded or the server is restarted in the time frame between sunset and sunset+offset the task is scheduled to run the next day instead of the current day.
Example:
Assume sunset is at 17:00 and there is an offset of 3600s, which means the task should run at 18:00.
Restart the appdaemon server any time between 17:00 and 18:00
The task should still be scheduled for the same day at 18:00 because that time didn't occur ye,t however, it is scheduled for the next day.
Version
4.4.2
Installation type
Home Assistant add-on
Relevant log output
No response
Relevant code in the app or config file that caused the issue
self.run_at_sunset(self.do_ops, offset=3600)
Anything else?
No response
The text was updated successfully, but these errors were encountered:
What happened?
When a task is scheduled with run_at_sunset() with an offset and the code is reloaded or the server is restarted in the time frame between sunset and sunset+offset the task is scheduled to run the next day instead of the current day.
Example:
Assume sunset is at 17:00 and there is an offset of 3600s, which means the task should run at 18:00.
Restart the appdaemon server any time between 17:00 and 18:00
The task should still be scheduled for the same day at 18:00 because that time didn't occur ye,t however, it is scheduled for the next day.
Version
4.4.2
Installation type
Home Assistant add-on
Relevant log output
No response
Relevant code in the app or config file that caused the issue
Anything else?
No response
The text was updated successfully, but these errors were encountered: