Skip to content

Commit

Permalink
integrate check water leak blueprint and add news sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
tvelich committed Dec 7, 2024
1 parent 74b3711 commit 3ccfd1b
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 98 deletions.
24 changes: 6 additions & 18 deletions automation/bathroom_downstairs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,9 @@
entity_id: light.bathroom_downstairs
brightness_pct: "{{ states('sensor.default_indoor_brightness') | float }}"

- alias: bathroom_downstairs_check_water_leak
trigger:
- platform: time_pattern
minutes: '/5'
- entity_id: binary_sensor.bathroom_downstairs_water_sensor_water_leak_detected
platform: state
to: 'on'
condition:
condition: state
entity_id: binary_sensor.bathroom_downstairs_water_sensor_water_leak_detected
state: 'on'
action:
service: notify.notify
data:
message: Water detected in downstairs bathroom!
data:
push:
badge: 1
- alias: bathroom_downstairs_toilet_check_water_leak
use_blueprint:
path: check_water_leak.yaml
input:
binary_sensor: binary_sensor.bathroom_downstairs_toilet_water_sensor_water_leak_detected
area: Downstairs Bathroom Toilet
31 changes: 13 additions & 18 deletions automation/bathroom_upstairs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,16 @@
entity_id: light.bathroom_upstairs
brightness_pct: "{{ states('sensor.default_indoor_brightness') | float }}"

- alias: bathroom_upstairs_check_water_leak
trigger:
- platform: time_pattern
minutes: '/5'
- entity_id: binary_sensor.bathroom_upstairs_water_sensor_water_leak_detected
platform: state
to: 'on'
condition:
condition: state
entity_id: binary_sensor.bathroom_upstairs_water_sensor_water_leak_detected
state: 'on'
action:
service: notify.notify
data:
message: Water detected in upstairs bathroom!
data:
push:
badge: 1
- alias: bathroom_upstairs_toilet_check_water_leak
use_blueprint:
path: check_water_leak.yaml
input:
binary_sensor: binary_sensor.bathroom_upstairs_toilet_water_sensor_water_leak_detected
area: Upstairs Bathroom Toilet

- alias: bathroom_upstairs_sink_check_water_leak
use_blueprint:
path: check_water_leak.yaml
input:
binary_sensor: binary_sensor.bathroom_upstairs_sink_water_sensor_water_leak_detected
area: Upstairs Bathroom Sink
24 changes: 6 additions & 18 deletions automation/crawl_space.yaml
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
24 changes: 6 additions & 18 deletions automation/garage.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
- alias: garage_check_water_leak
trigger:
- platform: time_pattern
minutes: '/5'
- entity_id: binary_sensor.garage_water_sensor_water_leak_detected
platform: state
to: 'on'
condition:
condition: state
entity_id: binary_sensor.garage_water_sensor_water_leak_detected
state: 'on'
action:
service: notify.notify
data:
message: Water detected in garage!
data:
push:
badge: 1
- alias: garage_sink_check_water_leak
use_blueprint:
path: check_water_leak.yaml
input:
binary_sensor: binary_sensor.garage_sink_water_sensor_water_leak_detected
area: Garage Sink

- alias: garage_back_door_left_open
trigger:
Expand Down
20 changes: 20 additions & 0 deletions automation/kitchen.yaml
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
32 changes: 6 additions & 26 deletions automation/laundry_room.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,12 @@
entity_id: light.laundry_room
brightness_pct: "{{ states('sensor.default_indoor_brightness') | float }}"

- alias: laundry_room_check_water_leak
trigger:
- platform: time_pattern
minutes: '/5'
- entity_id: binary_sensor.laundry_room_water_sensor_water_leak_detected
platform: state
to: 'on'
- entity_id: binary_sensor.laundry_room_water_sensor_water_leak_detected_2
platform: state
to: 'on'
condition:
condition: or
conditions:
- condition: state
entity_id: binary_sensor.laundry_room_water_sensor_water_leak_detected
state: 'on'
- condition: state
entity_id: binary_sensor.laundry_room_water_sensor_water_leak_detected_2
state: 'on'
action:
service: notify.notify
data:
message: Water detected in laundry room!
data:
push:
badge: 1
- alias: laundry_room_washing_machine_check_water_leak
use_blueprint:
path: check_water_leak.yaml
input:
binary_sensor: binary_sensor.laundry_room_washing_machine_water_sensor_water_leak_detected
area: Laundry Room Washing Machine

- alias: laundry_room_deck_door_left_open
trigger:
Expand Down
26 changes: 26 additions & 0 deletions blueprints/automation/check_water_leak.yaml
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

0 comments on commit 3ccfd1b

Please sign in to comment.