Skip to content

Instantly share code, notes, and snippets.

@bbbenji
Created March 19, 2026 19:47
Show Gist options
  • Select an option

  • Save bbbenji/0047197798e8f92f26988003312920fd to your computer and use it in GitHub Desktop.

Select an option

Save bbbenji/0047197798e8f92f26988003312920fd to your computer and use it in GitHub Desktop.
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