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

add previousCondition to JRuleWhenItemChange #104

Merged
merged 3 commits into from
Dec 28, 2022

Conversation

querdenker2k
Copy link
Collaborator

added previousCondition to JRuleWhenItemChange.
Triggers the rule just in case the previous state was of a specific state.

My current UseCase: Twilight is higher then 50lux and the twilight was before less then 50lux.

@seime
Copy link
Collaborator

seime commented Dec 11, 2022

Thanks for the PR!

I've not tested it, waiting for #85 to be finalized first.

Copy link
Collaborator

@seime seime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

(Not tested myself, but code contains testcases)

@seime seime merged commit 227566d into seaside1:main Dec 28, 2022
@seime
Copy link
Collaborator

seime commented Dec 28, 2022

Appears to run fine in my env, at least no visible negative impact.

Merging

@querdenker2k querdenker2k deleted the add_previous_condition branch December 28, 2022 17:16
querdenker2k added a commit to querdenker2k/jrule that referenced this pull request Feb 11, 2023
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 this pull request may close these issues.

None yet

2 participants