Home-AssistantConfig/config/automation/away.yaml

38 lines
1.0 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Shut it all down. No one is here
######################################################################
- alias: 'Away Mode'
2020-07-20 18:33:03 +00:00
id: 712e845a-9d72-4993-b8af-890b167c807b
2018-01-02 00:00:45 +00:00
trigger:
- platform: state
entity_id: binary_sensor.downstairs_nest_away
to: 'off'
2018-01-02 00:00:45 +00:00
- platform: state
entity_id: group.family
to: 'not_home'
- platform: state
entity_id: input_boolean.good_night
to: 'on'
2020-02-15 21:22:42 +00:00
- platform: event
#Sent from IFTTT Webhooks : {"action":"IFTTT_Away:}
event_type: ifttt_webhook_received
event_data:
action: IFTTT_Away
2018-01-02 00:00:45 +00:00
condition:
- condition: state
entity_id: group.family
state: 'not_home'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- service: script.interior_off
- service: switch.turn_off
entity_id: switch.back_landscaping
- service: input_boolean.turn_off
entity_id: input_boolean.good_night