2021-05-11 18:34:52 +00:00
|
|
|
- id: hallway-doorbell
|
|
|
|
alias: '[Hallway] Doorbell'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: switch.doorbell_button_switch
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
|
|
|
action:
|
|
|
|
- service: notify.notify
|
|
|
|
data:
|
|
|
|
message: "Doorbell"
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.mute_doorbell
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
2021-08-11 22:37:29 +00:00
|
|
|
- service: script.turn_on
|
|
|
|
entity_id: script.doorbell_bell
|
2021-07-19 19:38:24 +00:00
|
|
|
- service: script.pause_all_players
|
2022-01-10 23:22:00 +00:00
|
|
|
- service: zwave_js.set_config_parameter
|
2021-05-11 18:34:52 +00:00
|
|
|
data:
|
2022-01-10 23:22:00 +00:00
|
|
|
parameter: '7'
|
2021-05-11 18:34:52 +00:00
|
|
|
value: 'Door bell music'
|
2022-01-10 23:22:00 +00:00
|
|
|
target:
|
|
|
|
device_id: 1502b537888f71390cd2b5adfaec6430
|
2021-05-11 18:34:52 +00:00
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id: switch.siren_switch
|
|
|
|
|
|
|
|
- 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'
|
2021-08-11 22:37:29 +00:00
|
|
|
for:
|
|
|
|
seconds: 1
|
2021-05-11 18:34:52 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
entity_id: switch.doorbell_bell
|