Fix Emma's climate scheduling using old logic

This commit is contained in:
2025-04-28 21:33:49 -04:00
parent 10d7ec5e03
commit 713ddb9f75

View File

@ -714,14 +714,19 @@ script:
entity_id: input_select.scheduled_climate_mode_emma_bedroom entity_id: input_select.scheduled_climate_mode_emma_bedroom
data: data:
option: > option: >
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') %} {% set low = states('sensor.overnight_lowest_temperature') | int %}
{% if (states('sensor.overnight_lowest_temperature') | int) >= (states('input_number.emma_aircon_threshold') | int) %} {% set run_threshold = states('input_number.emma_bedroom_aircon_run_threshold') | int %}
{% set mode_threshold = states('input_number.emma_bedroom_aircon_mode_threshold') | int %}
{% if is_state('input_boolean.emma_bedroom_aircon_installed','off') %}
N/A
{% elif low >= run_threshold %}
{% if low >= mode_threshold %}
AC AC
{% else %} {% else %}
White Noise Fan
{% endif %} {% endif %}
{% else %} {% else %}
White Noise N/A
{% endif %} {% endif %}
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target: