Created
March 19, 2026 19:47
-
-
Save bbbenji/0047197798e8f92f26988003312920fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Water Leak Alert | |
| description: 'Push notification (mobile App) + persistent notification will be sent | |
| as soon as one of the selected sensors detects moisture/a leak.' | |
| domain: automation | |
| input: | |
| sensor: | |
| name: moisture Sensor | |
| description: List of moisture Sensors (Leak Detectors) | |
| selector: | |
| entity: | |
| multiple: true | |
| device_class: moisture | |
| titel: | |
| name: Title | |
| description: Title of the notification - e.g., !! LEAK DETECTED !! | |
| default: ' !! LEAK DETECTED !!' | |
| selector: | |
| text: | |
| text: | |
| name: Text | |
| description: 'Text Message. This message will be added | |
| to the name of the sensor [sensor name] [text message].' | |
| default: ' has detected a water leak!' | |
| 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