-
Notifications
You must be signed in to change notification settings - Fork 2
Description
@mycanaletto posted this issue but, originally, I thought it was due to a configuration issue (which was also true). However, once the configuration issue was resolved the bug still occurs because during the initialization sequence switch_daytime is called with initial=True. When that is the case, it doesn't change the setting of the lights.
The code fix in switch_daytime is straightforward, but adding the logic for initial=True was intentional. I don't recall all the reasons for that decision so I want to make sure to fully test out the change to make sure it doesn't have other side effects before committing.
Originally posted by @mycanaletto in #15:
However, unlike Schedy, it does not reschedule. But I understand that this is not planned.
For example, in Schedy, Appdaemon is OFF and I have a light/on at 1:00 p.m. If I launch Appdaemon at 2:00 p.m., it will turn on the lamp that should have been turned on at 1:00 p.m. This was especially useful for heating scheduling.