From fc9bcc9db6d3b7e5d4814c8698b3b34c08b849da Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 20 Mar 2026 22:47:43 -0400 Subject: [PATCH] Add alert for when windows are open and it gets too hot or cold outside --- automations.yaml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/automations.yaml b/automations.yaml index 73d425c..53944da 100644 --- a/automations.yaml +++ b/automations.yaml @@ -6405,3 +6405,59 @@ data: {} alias: Disable Recorder mode: restart +- id: '1773964427974' + alias: Temperature Window Alert + description: Alert when the temperature outside gets too cold or too hot for having + windows open + triggers: + - trigger: numeric_state + entity_id: + - weather.iron_nerd_weather_station + attribute: temperature + below: 50 + id: cold + alias: Cold + - trigger: numeric_state + entity_id: + - weather.iron_nerd_weather_station + attribute: temperature + above: 80 + id: hot + alias: Hot + conditions: + - condition: state + entity_id: binary_sensor.windows + state: + - 'on' + actions: + - choose: + - conditions: + - condition: trigger + id: + - cold + alias: Cold + sequence: + - action: script.speech_engine + metadata: {} + data: + who: everywhere + message: It has gotten a bit chilly outside, and there are windows open. + Please consider closing them! + type: weather + alias: Play announcement for cold + - conditions: + - alias: Hot + condition: trigger + id: + - hot + sequence: + - alias: Play announcement for hot + action: script.speech_engine + metadata: {} + data: + who: everywhere + message: It has gotten pretty hot outside, and there are windows open. Please + consider closing them! + type: weather + alias: Routing + mode: restart