Fix notify selector: use text input with comma-separated values
This commit is contained in:
parent
4524af7b2c
commit
22758e2573
1 changed files with 7 additions and 6 deletions
|
|
@ -91,13 +91,12 @@ blueprint:
|
||||||
notify_target:
|
notify_target:
|
||||||
name: Benachrichtigungsgerät(e) (optional)
|
name: Benachrichtigungsgerät(e) (optional)
|
||||||
description: >
|
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.
|
Leer lassen für keine Benachrichtigung.
|
||||||
default: []
|
default: ""
|
||||||
selector:
|
selector:
|
||||||
entity:
|
text:
|
||||||
domain: notify
|
|
||||||
multiple: true
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
dehumidify_switch: !input dehumidify_switch
|
dehumidify_switch: !input dehumidify_switch
|
||||||
|
|
@ -108,7 +107,9 @@ variables:
|
||||||
duration_minutes: !input duration_minutes
|
duration_minutes: !input duration_minutes
|
||||||
cancel_delay_seconds: !input cancel_delay_seconds
|
cancel_delay_seconds: !input cancel_delay_seconds
|
||||||
room_name: !input room_name
|
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)) }}"
|
previous_mode: "{{ state_attr(climate_entity, 'hvac_mode') | default(states(climate_entity)) }}"
|
||||||
start_humidity: "{{ states(humidity_sensor) | round(1) }}"
|
start_humidity: "{{ states(humidity_sensor) | round(1) }}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue