mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
You can find the entire repo here.
This commit is contained in:
24
config/automation/guard_dog.yaml
Executable file
24
config/automation/guard_dog.yaml
Executable file
@@ -0,0 +1,24 @@
|
||||
######################################################################
|
||||
## 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.all_covers
|
||||
state: 'closed'
|
||||
|
||||
action:
|
||||
- service: script.dog_bark
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.guard_dog
|
Reference in New Issue
Block a user