homeassistant-data

git clone git://archive.git.mtrnord.blog/MTRNord/homeassistant-data.git
Log | Files | Refs

commit 2dd6952ee95b91b202debae3d9b41b0a824d1cf6
parent 4037e465b084ffa5f764f275cf07b919264ee93c
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 16 May 2025 20:41:59 +0200

Ensure the logic is correct for the reactivation

Diffstat:
Mblueprints/automation/window_opened_status.yaml | 24+++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/blueprints/automation/window_opened_status.yaml b/blueprints/automation/window_opened_status.yaml @@ -74,12 +74,18 @@ actions: - action: climate.turn_off target: entity_id: !input thermostat - default: - - action: climate.set_temperature - target: - entity_id: !input thermostat - data: - temperature: !input target_temp_windows_closed - - action: climate.turn_on - target: - entity_id: !input thermostat + - conditions: + - condition: and + conditions: + - condition: state + entity_id: !input window_sensor + state: "off" + sequence: + - action: climate.set_temperature + target: + entity_id: !input thermostat + data: + temperature: !input target_temp_windows_closed + - action: climate.turn_on + target: + entity_id: !input thermostat