mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Corrected yaml example.
corrected sun to state for triggers.
This commit is contained in:
parent
23d54e4fef
commit
0c6506e9b6
@ -29,7 +29,7 @@ automation:
|
|||||||
state: 'not_home'
|
state: 'not_home'
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- platform: sun
|
- platform: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'above_horizon'
|
state: 'above_horizon'
|
||||||
|
|
||||||
@ -38,11 +38,15 @@ automation:
|
|||||||
data: {"event":"anything_on"}
|
data: {"event":"anything_on"}
|
||||||
|
|
||||||
- alias: 'ManyThing Recording OFF'
|
- 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:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
state: 'home'
|
state: 'home'
|
||||||
|
- platform: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
state: 'below_horizon'
|
||||||
|
|
||||||
|
|
||||||
condition: use_trigger_values
|
condition: use_trigger_values
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user