Fix notify selector: use text input with comma-separated values

This commit is contained in:
martin 2026-05-31 14:09:39 +00:00
parent 4524af7b2c
commit 22758e2573

View file

@ -91,13 +91,12 @@ blueprint:
notify_target:
name: Benachrichtigungsgerät(e) (optional)
description: >
Ein oder mehrere Notify-Entitäten für Push-Nachrichten, z. B. notify.iphone_84.
Ein oder mehrere Notify-Entitäten, kommagetrennt.
Beispiel: notify.iphone_84 oder notify.iphone_84, notify.martins_ipad
Leer lassen für keine Benachrichtigung.
default: []
default: ""
selector:
entity:
domain: notify
multiple: true
text:
variables:
dehumidify_switch: !input dehumidify_switch
@ -108,7 +107,9 @@ variables:
duration_minutes: !input duration_minutes
cancel_delay_seconds: !input cancel_delay_seconds
room_name: !input room_name
notify_target: !input notify_target
notify_raw: !input notify_target
notify_target: >
{{ (notify_raw | string).split(',') | map('trim') | select('ne', '') | list }}
previous_mode: "{{ state_attr(climate_entity, 'hvac_mode') | default(states(climate_entity)) }}"
start_humidity: "{{ states(humidity_sensor) | round(1) }}"