Last active
November 19, 2024 15:38
-
-
Save jasonmadigan/fcbb23392485397f9b407bf5dec8886a to your computer and use it in GitHub Desktop.
HASS Water Leak Alert Blueprint
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: Moisture Sensor | |
description: Perform action when moisture sensor turns wet | |
domain: automation | |
input: | |
actions: | |
name: Actions | |
description: | |
Notifications or similar to be run. {{ trigger.event.data.new_state.attributes.friendly_name | |
}} will be the name of the sensor | |
selector: | |
action: {} | |
source_url: https://gist.github.com/jasonmadigan/fcbb23392485397f9b407bf5dec8886a | |
trigger: | |
- event_data: {} | |
event_type: state_changed | |
platform: event | |
condition: | |
- condition: template | |
value_template: > | |
{{ trigger.event.data.new_state is not none and trigger.event.data.new_state.attributes.device_class == "moisture" }} | |
- condition: template | |
value_template: > | |
{{ trigger.event.data.new_state is not none and trigger.event.data.new_state.state == "on" }} | |
action: | |
- choose: [] | |
default: !input "actions" | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment