From 5477f82ca42d5b665840c13f79bbc58828cf222d Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Fri, 8 Feb 2019 15:23:46 +0100 Subject: [PATCH] Changed day time starting at 7 instead of 8 --- automation/home_assistant.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/home_assistant.yaml b/automation/home_assistant.yaml index 9393fdce..8ac3b7ac 100644 --- a/automation/home_assistant.yaml +++ b/automation/home_assistant.yaml @@ -42,7 +42,7 @@ - service: input_boolean.turn_on data_template: entity_id: > - {% if now().strftime('%H')|int >= 7 and now().strftime('%H')|int < 23 %} + {% if now().strftime('%H')|int >= 8 and now().strftime('%H')|int < 23 %} input_boolean.home_mode_day {% else %} input_boolean.home_mode_night @@ -55,7 +55,7 @@ - alias: "Home Assistant: Modalità Giorno/Notte" trigger: - platform: time - at: '07:00:00' + at: '08:00:00' - platform: time at: '23:00:00' - platform: homeassistant @@ -70,7 +70,7 @@ - service: input_boolean.turn_on data_template: entity_id: >- - {% if now().strftime('%H')|int >= 7 and now().strftime('%H')|int < 23 %} + {% if now().strftime('%H')|int >= 8 and now().strftime('%H')|int < 23 %} input_boolean.home_mode_day {% else %} input_boolean.home_mode_night -- 2.47.3