From 542a86739cddc6040651598801dc01242409d132 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 18 Oct 2022 00:05:39 -0400 Subject: [PATCH] Fix when master bedroom A/C not installed --- packages/scheduling.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index 0c226e8..b8db8ec 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -393,7 +393,9 @@ script: entity_id: input_select.scheduled_climate_mode_master_bedroom_aircon data: option: > - {% if states('sensor.tonights_low_temp') >= states('input_number.master_bedroom_aircon_run_threshold') %} + {% 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') %} AC {% else %}