From 0d00747fe45d1c3651c0233aa5fa25e4bf0595c2 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 9 Jun 2023 18:27:01 +0200 Subject: [PATCH] New automation that taunts to open the windows when temperatur is falling. Plus presence condition. --- automations.yaml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/automations.yaml b/automations.yaml index d568628..b76bfce 100644 --- a/automations.yaml +++ b/automations.yaml @@ -506,6 +506,9 @@ minutes: 5 seconds: 0 condition: + - condition: state + entity_id: person.marcus_scholz + state: home - condition: state entity_id: sensor.season state: summer @@ -537,3 +540,54 @@ ' mode: single +- id: '1686327239749' + alias: Fenster öffnen wenn es kühler wird + description: Im Sommer, wenn die Außentemperatur sich der Innentemperatur annähert. + trigger: + - platform: numeric_state + entity_id: sensor.aussentemperator + for: + hours: 0 + minutes: 5 + seconds: 0 + below: sensor.wohnungstemperatur + condition: + - condition: state + entity_id: person.marcus_scholz + state: home + - condition: or + conditions: + - condition: state + entity_id: input_text.sleep_as_android + state: sleep_tracking_stopped + - condition: state + entity_id: input_text.sleep_as_android + state: alarm_alert_dismiss + - condition: state + entity_id: sensor.season + state: summer + action: + - service: notify.mobile_app_le2123 + data: + title: Schlaues lüften + message: '{{message}} + + ' + enabled: true + - service: tts.speak + data: + cache: true + media_player_entity_id: media_player.raspiaudio_muse_luxe + message: '{{message}} + + ' + target: + entity_id: tts.piper + mode: single + variables: + message: 'Die Außentemperatur ist mit {{states.sensor.aussentemperator.state}} + ° Celsius {{((states.sensor.aussentemperator.state|float)-(states.sensor.wohnungstemperatur.state|float)) + | round(1)}} Grad niedriger als die Wohnungstemperatur. Lass die Frischluft + herein! + + '