Created
November 10, 2022 17:11
-
-
Save user-x-adm/cf8c86cca7376595f47b5e9ff6c6beb9 to your computer and use it in GitHub Desktop.
Home Assistant Blueprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Alarm Rauchmelder | |
description: 'Wenn einer der Rauchmelder Rauch erkennt, werden Push Nachrichten | |
an die mobile Apps verschickt und eine Benachrichtigung erstellt.' | |
domain: automation | |
input: | |
sensor: | |
name: Rauchmelder | |
description: Liste der Rauchmeldersensoren | |
selector: | |
entity: | |
multiple: true | |
device_class: smoke | |
titel: | |
name: Meldungstitel | |
description: Titel für die Meldung beispielsweise !! Feueralarm !! | |
default: ' !! Feueralarm !!' | |
selector: | |
text: | |
text: | |
name: Meldungstext | |
description: 'Text (Inhalt) der Meldung. Der eingegebene Text wird | |
an den Namen des Sensors, der ausgelöst hat, angehängt. | |
[Name des Sensors]+[Meldungstext]' | |
default: ' hat Rauch erkannt!' | |
selector: | |
text: | |
trigger: | |
- platform: state | |
entity_id: !input sensor | |
to: 'on' | |
condition: [] | |
variables: | |
text_var: !input text | |
action: | |
- service: notify.notify | |
data: | |
title: !input titel | |
message: '{{trigger.to_state.name}} {{text_var}}' | |
- service: notify.persistent_notification | |
data: | |
title: !input titel | |
message: '{{trigger.to_state.name}} {{text_var}}' | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hallo Leute, ich habe meinen Blueprint neu geschrieben und erweitert. Die neue Version findet ihr hier