mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Fix automation script in cookbook
Fix automation example 'Using time interval and input boolean' in cookbook.
This commit is contained in:
parent
ca55f21157
commit
0379b23e43
@ -22,20 +22,19 @@ input_boolean:
|
||||
icon: mdi:spotlight
|
||||
|
||||
automation:
|
||||
# Changes Hue light every two minutes to random color if input boolean is set to on
|
||||
# Changes Hue light to random color based on state of a input boolean
|
||||
- alias: 'Set LivingColors to random color'
|
||||
trigger:
|
||||
- platform: time
|
||||
platform: time
|
||||
minutes: '/2'
|
||||
seconds: 0
|
||||
condition:
|
||||
- platform: input_boolean
|
||||
platform: state
|
||||
entity_id: input_boolean.loop_livingcolors
|
||||
state: on
|
||||
state: 'on'
|
||||
action:
|
||||
service: light.turn_on
|
||||
entity_id:
|
||||
- light.woonkamer_livingcolors
|
||||
entity_id: light.woonkamer_livingcolors
|
||||
data:
|
||||
effect: random
|
||||
transition: 5
|
||||
|
Loading…
x
Reference in New Issue
Block a user