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
|
2020-02-25 00:52:57 +00:00
|
|
|
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
|