File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,8 @@ All Triggers
317
317
- :ref: `binary_sensor.on_click <binary_sensor-on_click >` / :ref: `binary_sensor.on_double_click <binary_sensor-on_double_click >` / :ref: `binary_sensor.on_multi_click <binary_sensor-on_multi_click >`
318
318
- :ref: `esphomeyaml.on_boot <esphomeyaml-on_boot >` / :ref: `esphomeyaml.on_shutdown <esphomeyaml-on_shutdown >` / :ref: `esphomeyaml.on_loop <esphomeyaml-on_loop >`
319
319
- :ref: `pn532.on_tag <pn532-on_tag >`
320
+ - :ref: `time.on_time <time-on_time >`
321
+ - :ref: `interval.interval <interval >`
320
322
321
323
All Actions
322
324
-----------
@@ -555,6 +557,29 @@ Please note this is only useful right now if your script contains a ``delay`` ac
555
557
then :
556
558
- script.stop : my_script
557
559
560
+ .. _interval :
561
+
562
+ ``interval ``
563
+ ------------
564
+
565
+ This component allows you to run actions periodically with a fixed interval.
566
+ For example if you want to toggle a switch every minute, you can use this component.
567
+ Please note that this certain cases are also possible with the :ref: `time.on_time <time-on_time >`
568
+ trigger, but this one is more light-weight and user-friendly.
569
+
570
+ .. code-block :: yaml
571
+
572
+ # Example configuration entry
573
+ interval :
574
+ - interval : 1min
575
+ then :
576
+ - switch.toggle : relay_1
577
+
578
+ Configuration options:
579
+
580
+ - **interval ** (**Required **, :ref: `config-time `): The interval to execute the action with.
581
+ - **then ** (**Required **, :ref: `config-action `): The action to perform.
582
+
558
583
See Also
559
584
--------
560
585
You can’t perform that action at this time.
0 commit comments