DIY-Viking

If you want something done right…

Water consumption in Home Assistant

We have an Itron Water Meter with an Everblu Cyble optical reader. The water company is regularly (every 2-3 months) passing in the street with their car, and a computer sends a radio signal to every meter (using a unique identifier for each house). Each meter responds with a radio signal that gives the water volume (and some other values) on the Itron water meter. The water company use this information to establish their invoice.

By using the projects everblu-meters and everblu-meters-esp8266, I have managed to import our water consumption into Home Assistant. I currently have in production the esp8266-version, and have incorporated the data into the energy dashboard:

waterconsumption.png

I bought a Wemos esp8266 and a CC1101 on Ali Express for less than €5,-. I already had the dupont-cables. After soldering the pins on the Wemos, I connected like this:

WemosCC1101
GND1
3V32
D13
D84
D55
D76
D67
D28
Please verify that this is compatible with the esp8266 and CC1101 you have

Install the Arduino IDE. Prepare the IDE for the Wemos (details here). Download the repository-files:

downloadzip.png

Import all the files into the Arduino IDE. Install EspMQTTClient, and make the necessary changes in the files as described on the Github page.

Where I live (Strasbourg, France), SDEA (the water company) has configured the Everblu-meters to report negative values outside of business hours. I added some code around line 102 to only interrogate on weekdays:

// At 10:00:00am UTC -- Added by me: && (ptm->tm_wday > 0 && ptm->tm_wday < 6)

if (ptm->tm_hour == 10 && ptm->tm_min == 0 && ptm->tm_sec == 0 && (ptm->tm_wday > 0 && ptm->tm_wday < 6)) {

Compile and upload.

I use the daily consumption on a dashboard:

Weather forecast next 6 hours. Mailbox indicator (Empty/Letter/Package). Garage door open/closed. Temperatures outside and living room. Real-time power consumption for the whole house. Water consumption last 24 hours.

Honi

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top
WordPress Appliance - Powered by TurnKey Linux