-
-
Notifications
You must be signed in to change notification settings - Fork 428
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 triggeringThing name to DSL rules #2756
Conversation
Signed-off-by: James Melville <[email protected]>
Signed-off-by: James Melville <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thanks for the addition.
Could you please also create a PR to add these new implicit vars to the docs at https://www.openhab.org/docs/configuration/rules-dsl.html#implicit-variables-inside-the-execution-block?
Changes made in openhab/openhab-core#2756 Signed-off-by: James Melville <[email protected]>
Changes made in openhab/openhab-core#2756 Signed-off-by: James Melville <[email protected]>
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/get-event-triggering-thing/134588/5 |
* Add triggeringThing name to DSL rules * Include previous and new statuses Signed-off-by: James Melville <[email protected]> GitOrigin-RevId: 805f223
I wanted to be able to detect which thing had triggered a DSL rule in order to write rules which used a single set of functionality when detecting that one of many things had gone offline. Whilst I was at it I figured it might be useful to include the previous and new statuses and remove the reference to previousState which didn't seem to make sense. I've tried to follow the pattern in the code and this PR #2567