Home Assistant Leak Detection Automations
A practical Home Assistant leak-detection automation pattern using a water shutoff valve, maintenance guards, Activity Feed logging, Repairs tracking, and actionable phone notifications.

Six years after the original Phyn Plus setup, this follow-up is less about one device and more about the automation pattern I actually want around water leaks: treat the shutoff as the important event, log what happened, make the alert hard to miss, and keep the YAML tied to real Home Assistant entities.
In my house, the device is Phyn Plus, but the same idea applies to any water shutoff valve or leak-detection setup that exposes a reliable Home Assistant state.
The automation pattern
- Use a real incident signal. For my setup, that is the shutoff valve moving to closed.
- Guard against planned maintenance, such as a leak test helper being active.
- Write a clear Activity Feed or logbook entry so the timeline tells the story later.
- Create a Home Assistant Repair when the shutoff happens, because this is not just a casual notification.
- Send a critical actionable phone alert with the context needed to recover.
- Use state-based cleanup so the alert can clear when the system is back to normal.
The important lesson from the newer Phyn integration work is not to invent entity IDs just because a release note mentions an alert type. The v2026.6.3 release adds broader Phyn alert support and better historical statistics, but the production YAML should still reference only the entities Home Assistant actually creates in your registry.
Current YAML
The live package is here: config/packages/phynplus.yaml. It keeps the shutoff response focused on the confirmed valve entity, the leak-test guard, Repairs tracking, and the shared notification script.
Watch the video on YouTube, and if you want the original Phyn Plus backstory, that older write-up is still here: Phyn Plus – Smart Water Shutoff Device.
Happy Automating!
– Carlo

