@@ -62,7 +62,7 @@ switch:
6262 id : dehumidifier1
6363` ` `
6464
65- First, we have to give the dehumidifier ` switch` an [ID](#config- id) so that we can refer to it inside of our
65+ First, we have to give the dehumidifier ` switch` an [ID](/guides/configuration-types# id) so that we can refer to it inside of our
6666automation.
6767
6868{{< anchor "actions-trigger" >}}
@@ -178,11 +178,10 @@ on_...:
178178 - delay: !lambda "if (id(reed_switch).state) return 1000; else return 0;"
179179` ` `
180180
181- {{< note >}}
182- This is a "smart" asynchronous delay - other code will still run in the background while
183- the delay is happening. When using a lambda call, you should return the delay value in milliseconds.
181+ > [!NOTE]
182+ > This is a "smart" asynchronous delay - other code will still run in the background while
183+ > the delay is happening. When using a lambda call, you should return the delay value in milliseconds.
184184
185- {{< /note >}}
186185{{< anchor "if_action" >}}
187186
188187# ## `if` Action
@@ -214,19 +213,19 @@ on_...:
214213
215214At least one of `condition`, `all` or `any` must be provided.
216215
217- - **condition** (*Optional*, [Condition](#config-condition )): The condition to check to determine which branch to take.
216+ - **condition** (*Optional*, [Condition](#all-conditions )): The condition to check to determine which branch to take.
218217 If this is configured with a list of conditions then they must all be true for the condition to be true.
219218
220- - **all** (*Optional*, [Condition](#config-condition )): Takes a list of conditions, all of which must be true (and is
219+ - **all** (*Optional*, [Condition](#all-conditions )): Takes a list of conditions, all of which must be true (and is
221220 therefore equivalent to `condition` .)
222221
223- - **any** (*Optional*, [Condition](#config-condition )): Takes a list of conditions; if at least one is true, the
222+ - **any** (*Optional*, [Condition](#all-conditions )): Takes a list of conditions; if at least one is true, the
224223 condition will be true.
225224
226- - **then** (*Optional*, [Action](#config-action )): The action to perform if the condition evaluates to true.
225+ - **then** (*Optional*, [Action](#all-actions )): The action to perform if the condition evaluates to true.
227226 Defaults to doing nothing.
228227
229- - **else** (*Optional*, [Action](#config-action )): The action to perform if the condition evaluates to false.
228+ - **else** (*Optional*, [Action](#all-actions )): The action to perform if the condition evaluates to false.
230229 Defaults to doing nothing.
231230
232231{{< anchor "lambda_action" >}}
@@ -254,18 +253,20 @@ on_...:
254253 - repeat:
255254 count: 5
256255 then:
256+ - lambda: ESP_LOGI("main", "Turning lights on for iteration [%d]", iteration);
257257 - light.turn_on: some_light
258258 - delay: 1s
259+ - lambda: ESP_LOGI("main", "Turning lights off for iteration [%d]", iteration);
259260 - light.turn_off: some_light
260261 - delay: 10s
261262` ` `
262263
263264# ### Configuration variables
264265
265266- **count** (**Required**, int): The number of times the action should be repeated. The counter is available to
266- lambdas using the reserved word " iteration" .
267+ lambdas using the implicit script parameter ` iteration` .
267268
268- - **then** (**Required**, [Action](#config-action )): The action to repeat.
269+ - **then** (**Required**, [Action](#all-actions )): The action to repeat.
269270
270271{{< anchor "wait_until_action" >}}
271272
@@ -298,8 +299,8 @@ on_...:
298299
299300# ### Configuration variables
300301
301- - **condition** (**Required**, [Condition](#config-condition )): The condition to wait to become true.
302- - **timeout** (*Optional*, [Time](#config- time)): Time to wait before timing out. Defaults to never timing out.
302+ - **condition** (**Required**, [Condition](#all-conditions )): The condition to wait to become true.
303+ - **timeout** (*Optional*, [Time](/guides/configuration-types# time)): Time to wait before timing out. Defaults to never timing out.
303304
304305{{< anchor "while_action" >}}
305306
@@ -322,10 +323,10 @@ on_...:
322323
323324# ### Configuration variables
324325
325- - **condition** (**Required**, [Condition](#config-condition )): The condition to check to determine whether or not to
326+ - **condition** (**Required**, [Condition](#all-conditions )): The condition to check to determine whether or not to
326327 execute.
327328
328- - **then** (**Required**, [Action](#config-action )): The action to perform until the condition evaluates to false.
329+ - **then** (**Required**, [Action](#all-actions )): The action to perform until the condition evaluates to false.
329330
330331{{< anchor "component-update_action" >}}
331332
@@ -456,10 +457,10 @@ on_...:
456457
457458# ### Configuration variables
458459
459- - **time** (**Required**, [templatable](#config-templatable ), [Time](#config- time)):
460+ - **time** (**Required**, [templatable](/automations/templates ), [Time](/guides/configuration-types# time)):
460461 The time for which the condition has to have been true.
461462
462- - **condition** (**Required**, [condition](#config-condition )): The condition to check.
463+ - **condition** (**Required**, [condition](#all-conditions )): The condition to check.
463464
464465{{< anchor "lambda_condition" >}}
465466
0 commit comments