A DIY water leak detection system built with ESPHome and Home Assistant, designed to detect water leaks or identify taps accidentally left running. It utilizes a YF-B10-S water flow sensor installed on the main water supply pipe (from your rooftop tank or directly from the main supply line).
This solution complements traditional floor-based water sensors, such as the Tuya Smart Water Leak Sensor, by detecting hidden leaks like toilet tank leaks, faulty taps, or pipe issues.
The system sends real-time notifications and alerts via Home Assistant, helping you to quickly respond and prevent water damage and excessive water usage.
- ESPHome YAML configuration.
- Home Assistant automation YAML.
- Code to be included in configuration.yaml
The solution is functional but has room for improvement (e.g., better flow measurement accuracy, distinguishing between types of leaks). Contributions and improvements are highly encouraged!
Note: This solution requires some plumbing work. Alternative solutions, such as ultrasonic sensors, were either unreliable or costly in my testing.