-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate check water leak blueprint and add news sensors
- Loading branch information
Showing
7 changed files
with
83 additions
and
98 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
- alias: crawl_space_check_water_leak | ||
trigger: | ||
- platform: time_pattern | ||
minutes: '/5' | ||
- entity_id: binary_sensor.crawl_space_water_sensor_water_leak_detected | ||
platform: state | ||
to: 'on' | ||
condition: | ||
condition: state | ||
entity_id: binary_sensor.crawl_space_water_sensor_water_leak_detected | ||
state: 'on' | ||
action: | ||
service: notify.notify | ||
data: | ||
message: Water detected in crawl space! | ||
data: | ||
push: | ||
badge: 1 | ||
- alias: crawl_space_main_line_check_water_leak | ||
use_blueprint: | ||
path: check_water_leak.yaml | ||
input: | ||
binary_sensor: binary_sensor.crawl_space_main_line_water_sensor_water_leak_detected | ||
area: Crawl Space Main Line |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- alias: kitchen_sink_check_water_leak | ||
use_blueprint: | ||
path: check_water_leak.yaml | ||
input: | ||
binary_sensor: binary_sensor.kitchen_sink_water_sensor_water_leak_detected | ||
area: Kitchen Sink | ||
|
||
- alias: kitchen_dishwasher_check_water_leak | ||
use_blueprint: | ||
path: check_water_leak.yaml | ||
input: | ||
binary_sensor: binary_sensor.kitchen_dishwasher_water_sensor_water_leak_detected | ||
area: Kitchen Dishwasher | ||
|
||
- alias: kitchen_refrigerator_check_water_leak | ||
use_blueprint: | ||
path: check_water_leak.yaml | ||
input: | ||
binary_sensor: binary_sensor.kitchen_refrigerator_water_sensor_water_leak_detected | ||
area: Kitchen Refrigerator |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
blueprint: | ||
name: Check Water Leak | ||
domain: automation | ||
input: | ||
binary_sensor: | ||
area: | ||
|
||
variables: | ||
area: !input area | ||
trigger: | ||
- platform: time_pattern | ||
minutes: '/5' | ||
- entity_id: !input binary_sensor | ||
platform: state | ||
to: 'on' | ||
condition: | ||
condition: state | ||
entity_id: !input binary_sensor | ||
state: 'on' | ||
action: | ||
service: notify.notify | ||
data: | ||
message: "Water detected: {{ area }}" | ||
data: | ||
push: | ||
badge: 1 |