Fix notify: use notify.send_message with entity_id target
This commit is contained in:
parent
5300c9cf3c
commit
098c7207c5
1 changed files with 16 additions and 7 deletions
|
|
@ -75,13 +75,14 @@ blueprint:
|
|||
text:
|
||||
|
||||
notify_target:
|
||||
name: Benachrichtigungsdienst (optional)
|
||||
name: Benachrichtigungsgerät (optional)
|
||||
description: >
|
||||
Notify-Dienst für Push-Nachrichten, z. B. notify.mobile_app_dein_handy.
|
||||
Notify-Entität für Push-Nachrichten, z. B. notify.iphone_84.
|
||||
Leer lassen für keine Benachrichtigung.
|
||||
default: ""
|
||||
selector:
|
||||
text:
|
||||
entity:
|
||||
domain: notify
|
||||
|
||||
variables:
|
||||
dehumidify_switch: !input dehumidify_switch
|
||||
|
|
@ -111,7 +112,9 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ notify_target != '' }}"
|
||||
then:
|
||||
- service: "{{ notify_target }}"
|
||||
- service: notify.send_message
|
||||
target:
|
||||
entity_id: "{{ notify_target }}"
|
||||
data:
|
||||
title: "👍 Entfeuchtung nicht nötig"
|
||||
message: >
|
||||
|
|
@ -132,7 +135,9 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ notify_target != '' }}"
|
||||
then:
|
||||
- service: "{{ notify_target }}"
|
||||
- service: notify.send_message
|
||||
target:
|
||||
entity_id: "{{ notify_target }}"
|
||||
data:
|
||||
title: "🪟 Entfeuchtung abgebrochen"
|
||||
message: >
|
||||
|
|
@ -153,7 +158,9 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ notify_target != '' }}"
|
||||
then:
|
||||
- service: "{{ notify_target }}"
|
||||
- service: notify.send_message
|
||||
target:
|
||||
entity_id: "{{ notify_target }}"
|
||||
data:
|
||||
title: "💧 Entfeuchtung gestartet"
|
||||
message: >
|
||||
|
|
@ -193,7 +200,9 @@ action:
|
|||
- condition: template
|
||||
value_template: "{{ notify_target != '' }}"
|
||||
then:
|
||||
- service: "{{ notify_target }}"
|
||||
- service: notify.send_message
|
||||
target:
|
||||
entity_id: "{{ notify_target }}"
|
||||
data:
|
||||
title: "✅ Entfeuchtung beendet"
|
||||
message: >
|
||||
|
|
|
|||
Loading…
Reference in a new issue