From 9a1298b249731093246bcf3c099bcc1df58e3ab5 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 24 Jun 2020 22:55:01 +0300 Subject: [PATCH] Refactor good night routine --- config/packages/routines/good_night.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/packages/routines/good_night.yaml b/config/packages/routines/good_night.yaml index ae990f4..245c126 100644 --- a/config/packages/routines/good_night.yaml +++ b/config/packages/routines/good_night.yaml @@ -2,6 +2,11 @@ script: routine_good_night: alias: Routine ยท Going to sleep sequence: + # Use say_discretely instead of talk, because night mode is already on. + - service: script.say_discretely + data: + message: "Entering night mode. Good night!" + - service: light.turn_on entity_id: light.bed_led data: @@ -21,10 +26,6 @@ script: - media_player.nvidia_shield - media_player.living_room_tv - switch.titanium - # Use say_discretely instead of talk, because night mode is already on. - - service: script.say_discretely - data: - message: "Entering night mode. Good night!" - service: light.turn_on entity_id: light.browser_kitchen