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

Rule Engine: Condition for "it's NOT a holiday" #2035

Closed
soenkekueper opened this issue Dec 30, 2020 · 0 comments · Fixed by #2043
Closed

Rule Engine: Condition for "it's NOT a holiday" #2035

soenkekueper opened this issue Dec 30, 2020 · 0 comments · Fixed by #2043

Comments

@soenkekueper
Copy link
Contributor

Hey,

i try to set up an easy rule within my openhab 3 installation. It should run every day at an specific time when i've to get up to work.
So it should run all days, that are not at the weekend and not an holiday.

Defining this rule is straight forward until the "not an holiday" condition. The ephemeris condition has an "it's a weekday" condition (which is actually a it't not the weekend) but there is no corresponding possibility for "it's not a holiday / its a working day" or something similar.

It's possible to create an rule to achive the desired behavior - when using an dsl script as an action which has the content

if(!(Ephemeris.isBankHoliday() || Ephemeris.isWeekend())) {
... do something
}

but if done so the new schedule feature is not correct any more.

So my question is, if there is a reason for this missing condition?

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

Successfully merging a pull request may close this issue.

1 participant