New automation that taunts to open the windows when temperatur is falling. Plus presence condition.

This commit is contained in:
Marcus Scholz 2023-06-09 18:27:01 +02:00
parent d17935a803
commit 0d00747fe4
1 changed files with 54 additions and 0 deletions

View File

@ -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!
'