File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -253,16 +253,18 @@ 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
267269- **then** (**Required**, [Action](#config-action)): The action to repeat.
268270
You can’t perform that action at this time.
0 commit comments