Cold weather seems to have poked a hole in my logic...

This commit is contained in:
2022-12-24 19:46:11 -05:00
parent 0099e575a3
commit 7e6b3794b0

View File

@ -224,7 +224,7 @@ script:
option: > option: >
{% if is_state('input_boolean.kallen_overnight','on') %} {% if is_state('input_boolean.kallen_overnight','on') %}
N/A 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 Fan
{% else %} {% else %}
White Noise White Noise
@ -366,8 +366,8 @@ script:
option: > option: >
{% if is_state('input_boolean.master_bedroom_aircon_installed','off') %} {% if is_state('input_boolean.master_bedroom_aircon_installed','off') %}
N/A N/A
{% elif states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_run_threshold') %} {% elif (states('sensor.tonights_low_temp') | int) >= (states('input_number.master_bedroom_aircon_run_threshold') | int) %}
{% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_mode_threshold') %} {% if (states('sensor.tonights_low_temp') | int) >= (states('input_number.master_bedroom_aircon_mode_threshold') | int) %}
AC AC
{% else %} {% else %}
Fan Fan
@ -380,7 +380,7 @@ script:
entity_id: input_select.scheduled_climate_mode_master_bedroom_fan entity_id: input_select.scheduled_climate_mode_master_bedroom_fan
data: data:
option: > 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 Fan
{% else %} {% else %}
N/A N/A
@ -407,7 +407,7 @@ script:
data: data:
option: > option: >
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') %} {% 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 AC
{% else %} {% else %}
White Noise White Noise