1
0
ansible-home-assistant/configuration/automations/hallway-doorbell.yaml

57 lines
1.6 KiB
YAML
Raw Normal View History

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:
- service: script.turn_on
entity_id: script.doorbell_bell
- service: script.pause_all_players
2021-05-11 18:34:52 +00:00
- service: light.turn_on
data:
effect: Police
target:
entity_id: light.desk_lightbar_ambilight
2021-05-11 18:34:52 +00:00
- service: zwave.set_config_parameter
data:
node_id: 12
parameter: 7
value: 'Door bell music'
- service: switch.turn_on
entity_id: switch.siren_switch
2021-05-25 15:08:20 +00:00
- delay:
seconds: 10
2021-05-11 18:34:52 +00:00
- service: light.turn_on
data:
hs_color: [ 240,100 ]
entity_id: light.desk_lightbar_ambilight
- delay:
2021-08-12 21:04:23 +00:00
seconds: 5
2021-05-11 18:34:52 +00:00
- service: light.turn_off
entity_id: light.desk_lightbar_ambilight
- 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
2021-05-11 18:34:52 +00:00
action:
- service: switch.turn_off
entity_id: switch.doorbell_bell