Corrected yaml example.
corrected sun to state for triggers.
This commit is contained in:
parent
23d54e4fef
commit
0c6506e9b6
1 changed files with 6 additions and 2 deletions
|
@ -29,7 +29,7 @@ automation:
|
|||
state: 'not_home'
|
||||
|
||||
condition:
|
||||
- platform: sun
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
state: 'above_horizon'
|
||||
|
||||
|
@ -38,11 +38,15 @@ automation:
|
|||
data: {"event":"anything_on"}
|
||||
|
||||
- alias: 'ManyThing Recording OFF'
|
||||
# This calls an IFTTT recipe to turn off recording of the ManyThing Camera when we are home.
|
||||
# This calls an IFTTT recipe to turn off recording of the ManyThing Camera when we are home except at night.
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
state: 'home'
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
|
||||
|
||||
condition: use_trigger_values
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue