2018-01-02 00:00:45 +00:00
|
|
|
######################################################################
|
|
|
|
## Speak Max! Speak Max!!
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
- alias: Guard Dog
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 4e785061-1157-4b8d-8d48-3a74904f8e54
|
2018-01-02 00:00:45 +00:00
|
|
|
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'
|
|
|
|
|
2022-06-24 13:43:42 +00:00
|
|
|
# condition:
|
|
|
|
# - condition: state
|
|
|
|
# entity_id: group.garage_doors
|
|
|
|
# state: 'closed'
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: script.dog_bark
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
entity_id: input_boolean.guard_dog
|