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

RulesDSL: add triggeringGroup and triggeringGroupName to rule context #4273

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Jun 15, 2024

This was missed from #3536

This PR makes this possible:

rule "test"
when
  Member of TestSwitches received command
  Member of TestSwitches changed
then
  logInfo("test", "TriggeringGroup: {}", triggeringGroup)
  logInfo("test", "TriggeringGroupName: {}", triggeringGroupName)
end

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/easy-way-to-handle-multiple-if-x-on-then-y-on-rules/156709/17

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@J-N-K J-N-K merged commit 9b39f62 into openhab:main Jun 23, 2024
5 checks passed
@J-N-K J-N-K added enhancement An enhancement or new feature of the Core DSL rules Domain-Specific Language rules labels Jun 23, 2024
@J-N-K J-N-K added this to the 4.2 milestone Jun 23, 2024
@jimtng jimtng deleted the rulesdsl-triggeringgroup branch June 24, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSL rules Domain-Specific Language rules enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants