Water Usage & Leak Monitor
Use with Domoticz
This script monitors water flow and leakage, updating the status on AWTRIX3. It calculates the percentage of time water is flowing and checks for continuous micro-leaks (e.g., dripping).
- Topic
- Smarthome
- Includes
- Flow
Runs on
- Does not run on 32×8 (TC001 & DIY) Made for AWTRIX 3.
- Does not run on 52×16 (TC002) Made for AWTRIX 3.
- Runs on 32×8 with AWTRIX 3 (TC001 & DIY)
Flow description
🚀 Flow:
-
Trigger:
- Executes every 1 minute to analyze water flow and leakage data.
-
Condition:
- Monitors the water flow from "Watermeter - Current usage".
- Tracks the time:
- With flow (leakage detection).
- Without flow (to detect extended periods of no activity).
-
Actions:
✅ If flow > 0:- Resets the "no flow" timer.
- Increases the percentage time with flow, up to a maximum of 100%.
🛑 If flow = 0:
- Tracks time with no flow.
- Checks for periods of 2 hours with no flow to reset micro-leak tracking.
⚠️ Leak Detection:
- If no 2-hour flowless period is detected within 24 hours, sets leakage to 100%.
-
AWTRIX3 Updates:
- Sends real-time water flow (liters/min) and leakage percentage to AWTRIX3 via the "AWTRIX3 - Send Custom App" device.
-
Logging:
- Provides detailed logs of flow status, time with/without flow, and leakage percentage.
More information:
Domoticz:
www.domoticz.com
Domoticz AWTRIX3 Plugin:
https://github.com/galadril/Domoticz-AWTRIX3-Plugin
Sign in to view and copy the code of this flow.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
Have an idea?
Sign in to ask questions and join the conversation.