From 7e6b3794b06ec0cc3377eec1f4c5b316a4af8917 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 24 Dec 2022 19:46:11 -0500 Subject: [PATCH] Cold weather seems to have poked a hole in my logic... --- packages/scheduling.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index 78f2b76..562b681 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -224,7 +224,7 @@ script: option: > {% if is_state('input_boolean.kallen_overnight','on') %} N/A - {% elif states('sensor.tonights_low_temp') >= states('input_number.kallen_fan_threshold') %} + {% elif (states('sensor.tonights_low_temp') | int) >= (states('input_number.kallen_fan_threshold') | int) %} Fan {% else %} White Noise @@ -366,8 +366,8 @@ script: option: > {% if is_state('input_boolean.master_bedroom_aircon_installed','off') %} N/A - {% elif states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_run_threshold') %} - {% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_mode_threshold') %} + {% elif (states('sensor.tonights_low_temp') | int) >= (states('input_number.master_bedroom_aircon_run_threshold') | int) %} + {% if (states('sensor.tonights_low_temp') | int) >= (states('input_number.master_bedroom_aircon_mode_threshold') | int) %} AC {% else %} Fan @@ -380,7 +380,7 @@ script: entity_id: input_select.scheduled_climate_mode_master_bedroom_fan data: option: > - {% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_fan_threshold') %} + {% if (states('sensor.tonights_low_temp') | int) >= (states('input_number.master_bedroom_fan_threshold') | int) %} Fan {% else %} N/A @@ -407,7 +407,7 @@ script: data: option: > {% if is_state('input_boolean.emma_bedroom_aircon_installed','on') %} - {% if states('sensor.tonights_low_temp') >= states('input_number.emma_aircon_threshold') %} + {% if (states('sensor.tonights_low_temp') | int) >= (states('input_number.emma_aircon_threshold') | int) %} AC {% else %} White Noise