Home-AssistantConfig/config/automation/guard_dog.yaml

25 lines
617 B
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
######################################################################
## Speak Max! Speak Max!!
######################################################################
- alias: Guard Dog
trigger:
- platform: state
entity_id: input_boolean.guard_dog
to: 'on'
from: 'off'
- platform: state
entity_id: binary_sensor.front_door_opened
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: group.garage_doors
2018-01-02 00:00:45 +00:00
state: 'closed'
action:
- service: script.dog_bark
- service: input_boolean.turn_off
entity_id: input_boolean.guard_dog