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

Update rules for improved naming in #2796 #1769

Merged
merged 1 commit into from
Feb 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions configuration/rules-dsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ The `thingUID` is the identifier assigned to the Thing, manually in your configu
You can find it from UI or from Karaf remote console.
For example, one z-wave device can be "zwave:device:c5155aa4:node14".

If the Rule needs to know what the triggering thing was, or access a string value of the previous or new status, use the [implicit variables]({{base}}/configuration/rules-dsl.html#implicit-variables-inside-the-execution-block) `triggeringChannel`, `previousStatus` or `newStatus` to access the information.
If the Rule needs to know what the triggering thing was, or access a string value of the previous or new status, use the [implicit variables]({{base}}/configuration/rules-dsl.html#implicit-variables-inside-the-execution-block) `triggeringChannel`, `previousThingStatus` or `newThingStatus` to access the information.

Refer to [Thing Status Action](/docs/configuration/actions.html#thing-status-action) to find how to get the new thing status details or description in the script.

Expand Down Expand Up @@ -778,8 +778,8 @@ Besides the implicitly available variables for items and commands/states, rules
- `receivedEvent` - implicitly available in every rule that has a channel-based trigger.
- `triggeringChannel` - implicitly available in every rule that has a channel-based trigger.
- `triggeringThing` - implicitly available in every rule that has a thing-based trigger.
- `previousStatus` - implicitly available in every rule that has a thing-based trigger.
- `newStatus` - implicitly available in every rule that has a thing-based trigger.
- `previousThingStatus` - implicitly available in every rule that has a thing-based trigger.
- `newThingStatus` - implicitly available in every rule that has a thing-based trigger.

{: #return}

Expand Down