Fix notify: use notify.send_message with entity_id target

This commit is contained in:
martin 2026-05-31 12:36:27 +00:00
parent 5300c9cf3c
commit 098c7207c5

View file

@ -75,13 +75,14 @@ blueprint:
text: text:
notify_target: notify_target:
name: Benachrichtigungsdienst (optional) name: Benachrichtigungsgerät (optional)
description: > 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. Leer lassen für keine Benachrichtigung.
default: "" default: ""
selector: selector:
text: entity:
domain: notify
variables: variables:
dehumidify_switch: !input dehumidify_switch dehumidify_switch: !input dehumidify_switch
@ -111,7 +112,9 @@ action:
- condition: template - condition: template
value_template: "{{ notify_target != '' }}" value_template: "{{ notify_target != '' }}"
then: then:
- service: "{{ notify_target }}" - service: notify.send_message
target:
entity_id: "{{ notify_target }}"
data: data:
title: "👍 Entfeuchtung nicht nötig" title: "👍 Entfeuchtung nicht nötig"
message: > message: >
@ -132,7 +135,9 @@ action:
- condition: template - condition: template
value_template: "{{ notify_target != '' }}" value_template: "{{ notify_target != '' }}"
then: then:
- service: "{{ notify_target }}" - service: notify.send_message
target:
entity_id: "{{ notify_target }}"
data: data:
title: "🪟 Entfeuchtung abgebrochen" title: "🪟 Entfeuchtung abgebrochen"
message: > message: >
@ -153,7 +158,9 @@ action:
- condition: template - condition: template
value_template: "{{ notify_target != '' }}" value_template: "{{ notify_target != '' }}"
then: then:
- service: "{{ notify_target }}" - service: notify.send_message
target:
entity_id: "{{ notify_target }}"
data: data:
title: "💧 Entfeuchtung gestartet" title: "💧 Entfeuchtung gestartet"
message: > message: >
@ -193,7 +200,9 @@ action:
- condition: template - condition: template
value_template: "{{ notify_target != '' }}" value_template: "{{ notify_target != '' }}"
then: then:
- service: "{{ notify_target }}" - service: notify.send_message
target:
entity_id: "{{ notify_target }}"
data: data:
title: "✅ Entfeuchtung beendet" title: "✅ Entfeuchtung beendet"
message: > message: >