Has anyone been able to make this work on a Badger Model 25 water meter? I have an ESP32 with a LJ18A3-8Z/BX but I’m not able to figure out where to mount it to get a reading. I’ve tried holding the sensor over all parts of the meter, with water running, without any luck.
If I hold the sensor up to the metal (brass?) bottom section, the sensor lights up and stays lit no matter where on the metal I hold it. If I hold it up to the plastic housing on top, I get nothing at all.
I’m sure there’s a magnet inside the meter somewhere, I just can’t figure out where.
is it possible to add a water leak test
ex: if for a while (1 hour)we receive impulses without stopping
it means that there is a leak, then we send a message (alarm)
I’ve built this water meter some time ago, took me some time to succesfully tie-wrap it to the water meter .
After the meter was up and running I tried adding it to the utility dashboard. However, HA did not like the way the variables were defined, so I made some slight adjustments per instructions I found elsewhere. The sensor part in ESP-home now looks like this:
@pbrink Hi, thank you for the great project.
I have succesfully made watermeter. but I have a little issue with the sensors.
There are 2 sensors that succesfull post info: sensor.water_meter_total & sensor.water_pulse_meter.
But the other 3 (sensor.water_total & sensor.water_usage_liter & sensor.water_pulse) always stay 0, do you have an idea what goes wrong?
I do not understand how a pulse meter can have the unit of liter/min. Could you please explain? In your configuration, there are two sensors with liter/min.
Thanks for this @pbrink.
I am using similar solution but my water meter has reed switch (2 wires) and it says it is 1 impulse/liter, but it turned out that it sends 3 impulses per liter (one rotation of dial is 1 liter, when that happened, I counted 3 liters which was not ok) so I adjusted code a bit.
I am struggling to understand the difference between pulse_counter and pulse_meter
When testing, it seems OK as I get update every 6 seconds (if I let 1l flow, I will see it within 6 seconds, also flow rate L/min seems OK (updating every 6 seconds also).
However when I for instance have 0,020m3 of water, and I restart ESP, I then get 0,000 again. Is that expected behavior for the “total”? If I create utility meter for water usage, then it is OK, but I would expect that ESP would “keep” the value (or HA)
Hi @hackex, It’s been a long time since I build this sensor. I’m pretty unsure about the L/min value. The values look fine, I remember it was a bit of a puzzle. I need to find some time to digg in
You both asked a question that has the same answer.
However when I for instance have 0,020m3 of water, and I restart ESP, I then get 0,000 again. Is that expected behavior for the “total”? If I create utility meter for water usage, then it is OK, but I would expect that ESP would “keep” the value (or HA)
Just one question, how do you set the initial value as the water meter don’t start with 0?
The total values from the ESP will always be 0 after a power cycle / restart. This is expected value. The definition of “state_class: total_increasing” in ESP creates a sensor with the state class total_increasing. This means that HA will calculate the increase based on the positive delta.
The sensor when it’'s first added to Home Assistant is used as an initial zero-point. When a new meter cycle is detected, in our case after the ESP is restarted, the zero-point will be set to 0.
When I use my water between 11pm and 1am. It increases a lot the water consumption. But not according to what I really use. for example I use 5-6l but it shows then 61l. But during the day. I have no problem. Can anyone tell me why ? And when I tray to follow my hourly usage in the UI. It shows up in m3 and not in L.