From 0a737cf7cdb4e7355d22146a943482d81b097553 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Fri, 7 May 2021 01:04:17 +0200 Subject: [PATCH] Update dorbell automation --- .../files/automations/hallway-doorbel.yaml | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/automations/files/automations/hallway-doorbel.yaml b/automations/files/automations/hallway-doorbel.yaml index ebcedd3..14573c5 100644 --- a/automations/files/automations/hallway-doorbel.yaml +++ b/automations/files/automations/hallway-doorbel.yaml @@ -10,26 +10,35 @@ - service: notify.notify data: message: "Doorbell" + - service: media_player.media_pause + target: + entity_id: + - media_player.bathroom + - media_player.bedroom + - media_player.living_room + - media_player.nvidia_shield + - media_player.spotify_11175365349 + - media_player.nvidia_shield - service: light.turn_on data: - brightness: 200 - rgb_color: - - 49 - - 27 - - 146 - entity_id: light.computer_lights - - service: light.turn_on + effect: Police + entity_id: light.desk_lightbar_ambilight + - service: zwave.set_config_parameter data: - flash: long - brightness: 200 - rgb_color: - - 49 - - 27 - - 146 - entity_id: light.computer_lights + node_id: 12 + parameter: 7 + value: 'Door bell music' + - service: switch.turn_on + entity_id: switch.siren_switch - delay: '30' + - service: light.turn_on + data: + hs_color: [ 240,100 ] + entity_id: light.desk_lightbar_ambilight + - delay: '5' - service: light.turn_off - entity_id: light.computer_lights + entity_id: light.desk_lightbar_ambilight + - id: hallway-doorbell-burn-prevention alias: '[Hallway] Doorbell burn prevention' mode: restart