Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Current daytime is not properly set when first boot appdaemon #21

@mkotler

Description

@mkotler

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions