I don’t know if this is a very specific problem, but I often forget to open my windows during the day. (In Germany air ventilation isn’t very common) Further I wan’t to save on expensive gas by only opening the windows when it’s relatively warm outside.
So I created an automation wich sends a reminder to the person at home to open all the windows. When I interact with the notification it sets a timer and reminds me to close them again.
I would share this as a blueprint but sadly I’m bad with yaml.
Maybe someone could flesh out this idea to include window sensors or the weather forecast
alias: Notification - Open the windows
description: ""
trigger:
- platform: time
at: "14:30:00"
condition: []
action:
- if:
- condition: state
entity_id: zone.home
state: "0"
then:
- wait_for_trigger:
- platform: numeric_state
entity_id: zone.home
above: 0
continue_on_timeout: false
timeout:
hours: 8
minutes: 0
seconds: 0
milliseconds: 0
- choose:
- conditions:
- condition: state
entity_id: person.1
state: home
sequence:
- service: notify.mobile_app_1
data:
message: Open the windows
title: Open the windows
data:
actions:
- action: WINDOW_TIMER
title: Windows opened
- conditions:
- condition: state
entity_id: person.2
state: home
sequence:
- service: notify.mobile_app_2
data:
title: Open the windows
message: Open the windows
data:
actions:
- action: WINDOW_TIMER
title: Windows opened
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: WINDOW_TIMER
continue_on_timeout: false
timeout:
hours: 3
minutes: 0
seconds: 0
milliseconds: 0
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- choose:
- conditions:
- condition: state
entity_id: person.1
state: home
sequence:
- service: notify.mobile_app_1
data:
title: Close the windows 🪟
message: Close the windows
- conditions:
- condition: state
entity_id: person.2
state: home
sequence:
- service: notify.mobile_app_2
data:
title: Close the windows 🪟
message: Close the windows 🪟
mode: single