Home-AssistantConfig/config/automation/guard_dog.yaml

26 lines
660 B
YAML
Executable File

######################################################################
## Speak Max! Speak Max!!
######################################################################
- alias: Guard Dog
id: 4e785061-1157-4b8d-8d48-3a74904f8e54
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
state: 'closed'
action:
- service: script.dog_bark
- service: input_boolean.turn_off
entity_id: input_boolean.guard_dog