Use notify selector type with two separate optional fields
This commit is contained in:
parent
22758e2573
commit
6e32874db5
1 changed files with 14 additions and 9 deletions
|
|
@ -88,15 +88,19 @@ blueprint:
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
|
||||||
notify_target:
|
notify_target_1:
|
||||||
name: Benachrichtigungsgerät(e) (optional)
|
name: Benachrichtigungsgerät 1 (optional)
|
||||||
description: >
|
description: Erstes Gerät für Push-Nachrichten. Leer lassen für keine Benachrichtigung.
|
||||||
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:
|
selector:
|
||||||
text:
|
notify:
|
||||||
|
|
||||||
|
notify_target_2:
|
||||||
|
name: Benachrichtigungsgerät 2 (optional)
|
||||||
|
description: Zweites Gerät für Push-Nachrichten (optional).
|
||||||
|
default: ""
|
||||||
|
selector:
|
||||||
|
notify:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
dehumidify_switch: !input dehumidify_switch
|
dehumidify_switch: !input dehumidify_switch
|
||||||
|
|
@ -107,9 +111,10 @@ 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_raw: !input notify_target
|
notify_target_1: !input notify_target_1
|
||||||
|
notify_target_2: !input notify_target_2
|
||||||
notify_target: >
|
notify_target: >
|
||||||
{{ (notify_raw | string).split(',') | map('trim') | select('ne', '') | list }}
|
{{ [notify_target_1, notify_target_2] | 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