Water Meter Monitoring System: A DIY Success Story

I’ve always been fascinated by the idea of monitoring my home’s utilities in real-time. After experimenting with various sensors and systems, I decided to take on a DIY project to monitor my water usage. Here’s how it all came together!

The Goal

I wanted to create a system that could track water flow, temperature, and boiler performance. The idea was to have all this data accessible on my dashboard, allowing me to monitor and analyze it over time.

The Setup

I decided to use a Wemos D1 mini for its versatility and affordability. The system measures:

  • Water flow rate into the house
  • Temperature of the main water feed
  • Boiler outlet temperature
  • Boiler return temperature

All data is published to MQTT and displayed on my HABPanel dashboard. Here’s a quick look at the setup:

Number utility_water_main_flow_rate “Water - Main supply flow rate” (g_persist_change, g_persist_5minute, Group_HabPanel_Dashboard) {mqtt=“< [mqtt:home/utility/water/flowrate:state:default]”}
// Other sensor configurations…

The Arduino Code

The Arduino code was adapted from GitHub, where I found a great sketch for monitoring water flow and temperature. I made a few tweaks to suit my specific needs, but the core functionality remained intact. You can find the original code here.

The Dashboard

Seeing all this data come together on my dashboard was incredibly satisfying. Here’s a glimpse of how it looks:
Dashboard

Challenges and Solutions

  1. Calibration: Getting the flow sensor to provide accurate readings was a bit tricky. I had to experiment with different settings to ensure the data was reliable.
  2. Temperature Accuracy: Ensuring the temperature sensors provided consistent readings was another hurdle. I found that placing them in the right spots was crucial.
  3. Integration with MQTT: Setting up MQTT was straightforward, but ensuring all sensors were publishing data correctly took some time.

Results

This project has been a fantastic learning experience. Not only have I gained a deeper understanding of my home’s water usage, but I’ve also developed a system that can potentially save me money on utilities. It’s also given me a sense of accomplishment to see something I built from scratch working seamlessly.

Tips for Others

  • Start Small: If you’re new to DIY projects, start with a smaller project to get comfortable with the tools and concepts.
  • Plan Ahead: Spend time planning your setup to avoid unnecessary complications later.
  • Use Open Source: Don’t reinvent the wheel. There are amazing resources and communities out there that can save you time and effort.

This project has inspired me to take on more DIY home automation projects. If you’re thinking about something similar, I highly recommend giving it a try! The satisfaction of seeing your project come to life is unparalleled.

Happy tinkering! :rocket: