From: Giorgio Ravera Date: Fri, 8 Feb 2019 14:23:46 +0000 (+0100) Subject: Changed day time starting at 7 instead of 8 X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=5477f82ca42d5b665840c13f79bbc58828cf222d;p=homeassistant.git Changed day time starting at 7 instead of 8 --- 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