From b5dd9621d1582b50f19e8caca79ff8350d10c8c1 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 11 Mar 2025 02:07:15 -0400 Subject: [PATCH] Don't turn basement heat on if it was off --- scripts.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/scripts.yaml b/scripts.yaml index 1d81b60..7d264cf 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -199,11 +199,18 @@ going_upstairs: then: - alias: Decide basement studio heater action if: - - condition: numeric_state - entity_id: weather.iron_nerd_weather_station - attribute: temperature - below: 32 - alias: Temperature below freezing + - alias: If temp below freezing and heat is on + condition: and + conditions: + - condition: numeric_state + entity_id: weather.iron_nerd_weather_station + attribute: temperature + below: 32 + alias: Temperature below freezing + - condition: state + entity_id: climate.basement_studio_vtherm + state: heat + alias: Heat on then: - action: climate.set_preset_mode metadata: {}