From b956a37402d8ac3cc6d0b7fadb339b47f2af5440 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sat, 4 Feb 2017 02:16:34 +0000 Subject: [PATCH] Adding Alert mode override (for time) --- script/voice_notify.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/script/voice_notify.yaml b/script/voice_notify.yaml index 30b74572..eb4dabf6 100755 --- a/script/voice_notify.yaml +++ b/script/voice_notify.yaml @@ -21,10 +21,14 @@ voice_notify: - condition: state entity_id: input_boolean.guest_mode state: 'on' - - - condition: time - after: '08:00:00' - before: '21:00:00' + - condition: or + conditions: + - condition: time + after: '08:00:00' + before: '21:00:00' + - condition: state + entity_id: input_boolean.alert_mode + state: 'on' - condition: state entity_id: input_boolean.speech_notifications state: 'on'