28 lines
656 B
YAML
28 lines
656 B
YAML
- id: front-door-doorbell
|
|
alias: '[Hallway] Doorbell'
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: switch.doorbell_button_switch
|
|
from: 'off'
|
|
to: 'on'
|
|
action:
|
|
- service: script.turn_on
|
|
entity_id: script.doorbell_bell
|
|
- service: notify.notify
|
|
data:
|
|
message: "Doorbell"
|
|
|
|
- id: hallway-doorbell-bell-burn-prevention
|
|
alias: '[Hallway] Doorbell bell burn prevention'
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: switch.doorbell_bell
|
|
from: 'off'
|
|
to: 'on'
|
|
for:
|
|
seconds: 1
|
|
action:
|
|
- service: switch.turn_off
|
|
entity_id: switch.doorbell_bell |