Passive Water Meter Monitoring in Home Assistant
I like monitoring home statistics in Home Assistant (HA), particularly those which can help us detect problems or monitor usage. At our house the water meter is a Neptune ProCoder)R900i, which integrates a Neptune ProCoder register with the stuff so the city can do remote meter reading. This is unencrypted, a simple broadcast that contains the serial number printed on the meter, which can be received decoded with a simple SDR (software-defined radio) and a package like bemasher/rtlamr.
Nothing to plug in, no cloud services, no special trickery, just tuning into the right frequency and looking for data from the ID number printed on the meter.
A few years back I played with this and a RTL-SDR.COM TV tuner-type dongle and it worked well, but I didn’t see much use and didn’t want to run another server just to grab this data. Recently I noticed there’s a complete Home Assistant App, allangood/rtlamr2mqtt, that talks to a locally connected SDR so I thought I’d give it another look.
After a bit of experimenting and figuring out where the decimal place falls in the reading and how often to have the app sleep for, it’s working great. With the following settings I get a reading every ~84 seconds. The meter itself updates every 15 minutes, so this catches changes within a minute or two of the meter reporting it.
general:
sleep_for: 60
meter:
id: XXXXXXXXXX
protocol: r900
name: Water Meter
format: ######.##
unit_of_measurement: ft³
icon: mdi:water
device_class: water
state_class: total_increasing
expire_after: 3600
manufacturer: Neptune
model: ProCoder R900i
Note that the sleep_for settings stacks up with the observed start/listen/stop time of the app, making for ~84 seconds. This will likely vary with other configs.
The result is that in HA I’ve now got charts of water usage by hour and overall usage stats in the Energy dashboard:
And because I log everything, long-term, to InfluxDB I can get longer term metrics charted out in Grafana:
Then building on this, the water meter has built-in leak detection (see page 34, Table 10, Leak Status Flag). The leak status itself is exposed in HA as LeakNow, which looks at the number of 15-minute intervals within the last 96 intervals where the eighth digit changed. The result in HA, 0-3, is as follows:
0: Less than 50 of the 96 intervals: No leak.1: 50 to 95 of the 96 intervals: Intermittent leak.2: All 96 intervals: Continuous leak.
This is a pretty good way if seeing if something is continuously using water. This isn’t the near-realtime-leak-detection that some more direct monitoring products offer, but it’s plenty for an alert/badge/whatever in HA to give a heads-up that something has been running for longer than it should be.
Of course having HA do calculations on the hourly usage may be faster, but that’s not a path I’ve gone down yet…



















