From dd064b1446170c16ec2c48cce014c210e85e5601 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 9 Dec 2019 08:26:46 -0500 Subject: [PATCH] Preventing door chime from interrupting voice annoucnements --- config/packages/security.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 3e7c477..67fd6c9 100755 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -129,12 +129,22 @@ automation: - binary_sensor.back_door from: 'off' condition: - - condition: state - entity_id: input_boolean.audible_notifications - state: 'on' - - condition: state - entity_id: input_boolean.guest_mode - state: 'off' + condition: and + conditions: + - condition: state + entity_id: input_boolean.audible_notifications + state: 'on' + - condition: state + entity_id: input_boolean.guest_mode + state: 'off' + - condition: or + conditions: + - condition: state + entity_id: media_player.theater + state: 'idle' + - condition: state + entity_id: media_player.theater + state: 'off' action: - service: script.door_chime initial_state: true