@@ -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" >}}
@@ -213,19 +213,19 @@ on_...:
213213
214214At least one of `condition`, `all` or `any` must be provided.
215215
216- - **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.
217217 If this is configured with a list of conditions then they must all be true for the condition to be true.
218218
219- - **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
220220 therefore equivalent to `condition` .)
221221
222- - **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
223223 condition will be true.
224224
225- - **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.
226226 Defaults to doing nothing.
227227
228- - **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.
229229 Defaults to doing nothing.
230230
231231{{< anchor "lambda_action" >}}
@@ -253,18 +253,20 @@ on_...:
253253 - repeat:
254254 count: 5
255255 then:
256+ - lambda: ESP_LOGI("main", "Turning lights on for iteration [%d]", iteration);
256257 - light.turn_on: some_light
257258 - delay: 1s
259+ - lambda: ESP_LOGI("main", "Turning lights off for iteration [%d]", iteration);
258260 - light.turn_off: some_light
259261 - delay: 10s
260262` ` `
261263
262264# ### Configuration variables
263265
264266- **count** (**Required**, int): The number of times the action should be repeated. The counter is available to
265- lambdas using the reserved word " iteration" .
267+ lambdas using the implicit script parameter ` iteration` .
266268
267- - **then** (**Required**, [Action](#config-action )): The action to repeat.
269+ - **then** (**Required**, [Action](#all-actions )): The action to repeat.
268270
269271{{< anchor "wait_until_action" >}}
270272
@@ -297,8 +299,8 @@ on_...:
297299
298300# ### Configuration variables
299301
300- - **condition** (**Required**, [Condition](#config-condition )): The condition to wait to become true.
301- - **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.
302304
303305{{< anchor "while_action" >}}
304306
@@ -321,10 +323,10 @@ on_...:
321323
322324# ### Configuration variables
323325
324- - **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
325327 execute.
326328
327- - **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.
328330
329331{{< anchor "component-update_action" >}}
330332
@@ -455,10 +457,10 @@ on_...:
455457
456458# ### Configuration variables
457459
458- - **time** (**Required**, [templatable](#config-templatable ), [Time](#config- time)):
460+ - **time** (**Required**, [templatable](/automations/templates ), [Time](/guides/configuration-types# time)):
459461 The time for which the condition has to have been true.
460462
461- - **condition** (**Required**, [condition](#config-condition )): The condition to check.
463+ - **condition** (**Required**, [condition](#all-conditions )): The condition to check.
462464
463465{{< anchor "lambda_condition" >}}
464466
0 commit comments