Show humidity change (before/after/diff) in end notification

This commit is contained in:
martin 2026-05-31 13:55:20 +00:00
parent d4a0a5dd82
commit 4524af7b2c

View file

@ -110,6 +110,7 @@ variables:
room_name: !input room_name
notify_target: !input notify_target
previous_mode: "{{ state_attr(climate_entity, 'hvac_mode') | default(states(climate_entity)) }}"
start_humidity: "{{ states(humidity_sensor) | round(1) }}"
trigger:
- platform: state
@ -227,7 +228,8 @@ action:
title: "✅ Entfeuchtung beendet"
message: >
{{ room_name }}: Klimaanlage wurde zurückgesetzt.
Aktuelle Luftfeuchtigkeit: {{ states(humidity_sensor) | round(1) }} %
Vorher: {{ start_humidity }} % → Jetzt: {{ states(humidity_sensor) | round(1) }} %
({{ '%+.1f' | format(states(humidity_sensor) | float - start_humidity | float) }} %)
- service: input_boolean.turn_off
target: