From 67c766158ec8e8156e06e3b054d513e557355dd8 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 6 Sep 2022 17:17:11 -0400 Subject: [PATCH] Some climate scheduling changes --- packages/scheduling.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index 755ee0d..803190c 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -249,14 +249,14 @@ automation: time: > {% set low = state_attr('sensor.current_forecast','overnight_low') | float %} {% set high = state_attr('sensor.current_forecast','high_temp') | float %} - {% if high > 85 and is_state('sensor.school_tomorrow','on') %} + {% if high >= 85 and is_state('sensor.school_tomorrow','on') %} 20:00 - {% elif high > 85 and is_state('sensor.school_tomorrow','off') %} + {% elif high >= 85 and is_state('sensor.school_tomorrow','off') %} 21:00 - {% elif low > 55 and low < 60 %} + {% elif low >= 55 and low <= 60 %} 22:30 {% elif low > 60 %} - 21:45 + 21:30 {% else %} 00:00 {% endif %} @@ -283,10 +283,10 @@ automation: time: > {% set high = state_attr('sensor.current_forecast','high_temp') | float %} {% set low = state_attr('sensor.current_forecast','overnight_low') | float %} - {% if high > 85 %} - 21:00 - {% elif high > 80 %} - 22:00 + {% if high >= 85 %} + 20:30 + {% elif high >= 80 or low >= 60 %} + 21:30 {% else %} - 23:00 + 22:30 {% endif %} \ No newline at end of file