Automation #1 – Get Notified When Leak Sensor is Tripped
alias: Binary - Leak Sensor Alert
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.water_leak_sensor_1
- binary_sensor.water_leak_sensor_2
- binary_sensor.water_leak_sensor_3
to: "on"
from: "off"
action:
- service: notify.telegram
data_template:
title: WATER LEAK
message: >-
{{ trigger.to_state.attributes.friendly_name }} has detected a leak. If
this is a critical sensor, then the water has been shut off. Please
investigate.
- service: notify.family_emergency
data_template:
title: WATER LEAK
message: >-
{{ trigger.to_state.attributes.friendly_name }} has detected a leak. If
this is a critical sensor, then the water has been shut off. Please
investigate.
- service: notify.google_assistant_sdk
data_template:
message: >-
{{ trigger.to_state.attributes.friendly_name }} has detected a leak. If
this is a critical sensor, then the water has been shut off. Please
investigate.
Automation Example #2 – Notify When Water Is Shut Off
alias: Water Main Shutoff - Notification
description: ""
trigger:
- platform: device
type: turned_off
entity_id: switch.water_shut_off_valve_state
domain: switch
condition: []
action:
- service: notify.telegram
data:
message: The water main has been shut-off, please investigate.
title: Alert
- service: notify.telegram
data:
title: WATER SHUT-OFF
message: The water main has been shut-off, please investigate.
- service: notify.family_emergency
data:
title: WATER SHUT-OFF
message: The water main has been shut-off, please investigate.
- service: notify.google_assistant_sdk
data:
title: WATER SHUT-OFF
message: The water main has been shut-off, please investigate.
mode: single
Automation Example #3 – Turn off Water When Leak Detected
alias: Binary Leak - Shut Off Water
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.water_leak_sensor_1
- binary_sensor.water_leak_sensor_2
- binary_sensor.water_leak_sensor_3
to: "on"
from: "off"
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.water_shut_off_valve_state
mode: single
API Call (Curl) Home Assistant Templates Links to Resources If you want to use the SwitchBot without the hub, you can use the direct integration and BLE devices: https://www.home-assistant.io/integrations/switchbot/ Forum Post about API: https://community.home-assistant.io/t/switch-bot-api-integration/270550/52 SwitchBot API Documentation: https://github.com/OpenWonderLabs/SwitchBotAPI#get-device-list Home Assistant Switch Bot: https://peyanski.com/home-assistant-switchbot-curtain-integration/
Here is the code mentioned in the video for the last step: Today’s video is a part 2 to last week’s review video on the Roborock S5 MAX. This method should work for ALL Roborock vacuums (possibly even the Xaiomi ones). Please leave feedback if this worked for your model of vacuum. We look at…
Video Forget just checking stats — this integration lets you command your Tesla. Start the climate, unlock the doors, change the charging rate — all without ever opening the Tesla app. With the new official Tesla Fleet integration in Home Assistant, you can now control core vehicle functions directly from your dashboard, phone, or smartwatch….
Favorite HACS Components In my video, I mentioned that I have a number of favorite HACS integrations and Lovelace UI elements. All of these elements are available in the HACS store. NWS Alerts https://github.com/finity69x2/nws_alerts I mentioned this in my Severe Weather alerts video. This is the central component that pulls down alerts from the National…