mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Merge pull request #200 from R1chardTM/patch-1
Fix automation script in cookbook
This commit is contained in:
commit
5b0f26825d
@ -25,17 +25,16 @@ automation:
|
||||
# Changes Hue light every two minutes to random color if input boolean is set to on
|
||||
- alias: 'Set LivingColors to random color'
|
||||
trigger:
|
||||
- platform: time
|
||||
minutes: '/2'
|
||||
seconds: 0
|
||||
platform: time
|
||||
minutes: '/2'
|
||||
seconds: 0
|
||||
condition:
|
||||
- platform: input_boolean
|
||||
entity_id: input_boolean.loop_livingcolors
|
||||
state: on
|
||||
platform: state
|
||||
entity_id: input_boolean.loop_livingcolors
|
||||
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