Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinguish between weekdays and weekends #83

Open
clipse2004 opened this issue Sep 9, 2021 · 2 comments
Open

Distinguish between weekdays and weekends #83

clipse2004 opened this issue Sep 9, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@clipse2004
Copy link

Hi,

tell me is it somehow possible to define the schedules a little more precisely?
I would like that my light is switched a little differently on the weekend. So in a different brightness level at a different time, is that somehow possible?

Thx!

@benleb benleb added the enhancement New feature or request label Oct 1, 2021
@benleb
Copy link
Owner

benleb commented Oct 1, 2021

Ah interesting idea...! Nope that is something new :D I will think about that and how it may be implemented 👍 Thanks!

@Ramblurr
Copy link

I have a similar request: even more fine-grained control of the weekday.

In our household, one of us is a teacher and has to be at school at different times. On some days they have to be at school before the first lesson, which means waking up quite early. On these days we want the lights that are normally set to "sunrise" to actually be much earlier.

Here's my off-the-cuff idea about how to implement it:

Perhaps add an optional weekday field to the daytimes object?

  daytimes:
    - { name: morning, starttime: sunrise, light: scene.bathroom_bright }
    - { name: morning, starttime: "05:00", light: scene.bathroom_bright, weekdays: [monday, thursday] }

The idea being if the "name" is the same across entries, then the "most specific" wins. If an entry is ambiguous (a tie), then the first entry in the daytimes list wins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants