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

Unable to skip schedule in case of sub-schedules #59

Open
nos86 opened this issue Feb 7, 2021 · 0 comments
Open

Unable to skip schedule in case of sub-schedules #59

nos86 opened this issue Feb 7, 2021 · 0 comments

Comments

@nos86
Copy link

nos86 commented Feb 7, 2021

Hello,
first of all, thank you for your amazing work. I really like this software and the potentiality behind.

I saw that in the following configuration, Schedy is not doing the right stuff:

      schedule:
        - name: Wake-up
          rules:
            - x: "20 if state('sensor.climate_profile') != 'Holiday' else Next()"
              rules:
                - {v: 21, start: "05:30", end: "06:30"}
                - {v: 22, start: "06:30", end: "08:00"}
            - x: "22 if state('sensor.climate_profile') == 'Holiday' else Next()"
              start: "09:00"
              end: "11:00"

I expect that when it's "Holiday" the first rule (and it's sub-rules) is skipped. Instead it is processed and the temperature is assigned. The problem can be solved if I decide to avoid to write sub-rules and I repeat the rule twice: but I love the DRY approach.

Have you seen this problem?
I'm doing wrongly something?

thanks in advance,
Salvo

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

No branches or pull requests

1 participant