Home Assistant Add-on: AMR2MQTT
Runs rtlamr to read meter data and send to MQTT broker.
Allows you to use an rtl-sdr dongle to listen for signals from ERT compatible smart meters using rtlamr. This runs as a daemon by launching rtl-tcp and rtlamr, parsing the output and pushing it into MQTT so Home Assistant can consume it.
There’s too many acronyms, explain yourself
Most meters for gas, electric and water broadcast the consumption information they collect. This is why generally the gas/electric/water company doesn’t come onto your property anymore to physically take readings. They just drive by and collect the information as it is being broadcast or have other ways of aggregating the broadcasted consumption info.
Often you can collect this information too using an rtl-sdr dongle and software like this addon that knows how to to turn the broadcasted consumption info into something you can use in other applications. Well actually software like bemasher’s wonderful rtlamr application. This addon is really a thin shell on that which pushes the readings you are interested in over to your MQTT broker in a way HA understands. This way you can use your gas/electric/water consumption information in your dashboards and automations within HA.
Sounds great! What do I do?
First you’ll need an rtl-sdr dongle. If you’re interested, I have a NooElec NESDR Nano 2+ although others work fine.
However note that this add-on does not work with all meters. Some potential problems include:
- Meter does not broadcast consumption information, it just displays it
- Broadcasts by your meter are encrypted and cannot be used
- Meter only broadcasts once a month when the utility company pings it
So before beginning, check this list of compatible meters and see if your meter is on there. It will have the manufacturer and model number printed on it somewhere.
This list isn’t exhaustive so if you don’t find your meter it may still work if you’re willing to take a gamble and order a dongle anyway. But just bear in mind this solution is not universal and YMMV.
That’s the major requirement. After that you will need an MQTT broker set up which both this addon and HA are talking to and there’s a few steps to help you find your particular meter(s) from all the ones around you broadcasting. Take a look at this addon’s docs for instructions there if you need help.
This addon’s name sounds familiar…
This began as a port of ragingcomputer’s amridm2mqtt to a Home Assistant add-on in order to make it easier to use in HAOS and supervised setups which you may have seen some discussion about around here. There are a number of other modifications as well such as support for other formats like
scm and a wider variety of MQTT configurations. Big thanks to ragingcomputer for their work.
About 75% through the project I stumbled across rtlamr2mqtt. My own fault for not getting all the way through the amridm2mqtt forum post since I realized later it was linked in there. This was obviously a bit of a bummer since it made my work redundant but I decided to continue on anyway so I could learn about rtlamr and add features on my schedule. Like for example I can’t use my MQTT broker with that addon since it doesn’t support advanced security options around certificates, which (understandably) is probably not a high priority for others.
The addon’s documentation and readme cover all the addon’s options and have setup/troubleshooting info. If you need help beyond that, you can:
- Comment here
- Open an issue in the repository
- Ask for help in the #add-ons channel of the HA discord (I’m CentralCommand#0913 there).