Skip to content

Commit a0410f4

Browse files
authored
Update README.md
1 parent 928bf8b commit a0410f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ If the new state is different than expected, the attempt is considered a failure
123123

124124
#### `validation` parameter (optional)
125125

126-
A boolean expression of a special template format with square brackets `"[[ ... ]]"` instead of curly brackets `"{{ ... }}"`. This is needed to prevent from rendering the expression in advance. `entity_id` is provided as a variable. For example:
126+
A boolean expression of a special template format with square brackets `"[[ ... ]]"` instead of curly brackets `"{{ ... }}"`. This is needed to prevent from rendering the expression in advance. The template can use the following variables: `entity_id`, `action`, and any other parameter provided to the inner action. For example:
127127

128128
```
129129
action: retry.action
130130
data:
131131
action: light.turn_on
132132
brightness: 70
133-
validation: "[[ state_attr(entity_id, 'brightness') == 70 ]]"
133+
validation: "[[ state_attr(entity_id, 'brightness') == brightness ]]"
134134
target:
135135
entity_id: light.kitchen
136136
```

0 commit comments

Comments
 (0)