Add notification when humidity is already OK or window is open
This commit is contained in:
parent
7e0d6193ad
commit
5300c9cf3c
1 changed files with 91 additions and 60 deletions
|
|
@ -6,7 +6,7 @@ blueprint:
|
||||||
Luftfeuchtigkeit und geschlossenen Fenstern/Türen. Bricht ab, sobald
|
Luftfeuchtigkeit und geschlossenen Fenstern/Türen. Bricht ab, sobald
|
||||||
ein Fenster oder eine Tür geöffnet wird, und setzt die Klimaanlage
|
ein Fenster oder eine Tür geöffnet wird, und setzt die Klimaanlage
|
||||||
danach auf den vorherigen Modus zurück. Optional: Push-Benachrichtigung
|
danach auf den vorherigen Modus zurück. Optional: Push-Benachrichtigung
|
||||||
beim Start und Ende mit aktuellem Feuchtigkeitswert.
|
beim Start, Ende und wenn die Entfeuchtung nicht nötig ist.
|
||||||
domain: automation
|
domain: automation
|
||||||
input:
|
input:
|
||||||
dehumidify_switch:
|
dehumidify_switch:
|
||||||
|
|
@ -99,19 +99,50 @@ trigger:
|
||||||
entity_id: !input dehumidify_switch
|
entity_id: !input dehumidify_switch
|
||||||
to: "on"
|
to: "on"
|
||||||
|
|
||||||
condition:
|
action:
|
||||||
|
- choose:
|
||||||
|
|
||||||
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ states(humidity_sensor) | float(0) > humidity_threshold | float(0) }}
|
{{ states(humidity_sensor) | float(0) <= humidity_threshold | float(0) }}
|
||||||
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ notify_target != '' }}"
|
||||||
|
then:
|
||||||
|
- service: "{{ notify_target }}"
|
||||||
|
data:
|
||||||
|
title: "👍 Entfeuchtung nicht nötig"
|
||||||
|
message: >
|
||||||
|
{{ room_name }}: Luftfeuchtigkeit ist in Ordnung ({{ states(humidity_sensor) | round(1) }} % — Grenzwert {{ humidity_threshold }} %).
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: !input dehumidify_switch
|
||||||
|
|
||||||
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ expand(contact_sensors)
|
{{ expand(contact_sensors)
|
||||||
| selectattr('state', 'eq', 'on')
|
| selectattr('state', 'eq', 'on')
|
||||||
| list
|
| list
|
||||||
| count == 0 }}
|
| count > 0 }}
|
||||||
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ notify_target != '' }}"
|
||||||
|
then:
|
||||||
|
- service: "{{ notify_target }}"
|
||||||
|
data:
|
||||||
|
title: "🪟 Entfeuchtung abgebrochen"
|
||||||
|
message: >
|
||||||
|
{{ room_name }}: Fenster oder Tür ist geöffnet – Entfeuchtung nicht gestartet.
|
||||||
|
Aktuelle Luftfeuchtigkeit: {{ states(humidity_sensor) | round(1) }} %
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: !input dehumidify_switch
|
||||||
|
|
||||||
action:
|
default:
|
||||||
- service: climate.set_hvac_mode
|
- service: climate.set_hvac_mode
|
||||||
target:
|
target:
|
||||||
entity_id: !input climate_entity
|
entity_id: !input climate_entity
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue