Add-on request : wmbusmeter

I’m one of the posters in the thread in the hjemmeautomasjon forum who’s actually using wmbusmeters to read water meter reading. I just got the encryption key for the water meter at my cabin as well, so I’d really like to be able to vote twice. :smiley:

If anyone has any questions regarding this, feel free to ask.

2 Likes

wmbusmeters has an addon in the official repo:

It does not support auto discovery but there is a setup guide for the mqtt sensor config on the addon page.

Following this guide worked for me: https://github.com/weetmuts/wmbusmeters/blob/fe936f5062124ffa3c55c9a624717dbc43ef58da/ha-addon/DOCS.md

If you find a device, try setting it up with NOKEY:

meters:

  • |-
    name=WaterMeter
    driver=auto
    id=123456 discovered in step 6. of the addon docs
    key=NOKEY

Most devices are not encrypted, at least in Germany, i can measure heaters, water meters and even the official fire alarm system without any further setup

6 Likes

Just tried it today, got the following error when trying to install:

22-05-10 13:52:17 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/weetmuts/wmbusmeters/tree/master/ha-addon repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --recursive --depth=1 --shallow-submodules https://github.com/weetmuts/wmbusmeters/tree/master/ha-addon /data/addons/git/5a8e3177
stderr: 'Cloning into '/data/addons/git/5a8e3177'...
fatal: repository 'https://github.com/weetmuts/wmbusmeters/tree/master/ha-addon/' not found

UPDATE: It seems to have installed anyway, so next up is testing with a USB device plugged in.

Hi all, I’m super interested in this topic and here in Belgium we got the Multical21 installed.

Can a short guide be made of what’s needed (HW & SW) and how to get it up & running?
Especially recommended hardware (quality vs price) and where to buy it in the EU.

1 Like

I’m also looking into this. Did you made any progress with this?

I am successfully running this on Home Assistant Blue for a couple of weeks now. I purchased the M871A-USB - Wireless M-Bus USB-adapter 868 MHz from IMST (good for EU, because they are in Germany). Installed wmbusmeters as HA add-on by adding the repository according to the instructions here. The USB radio was discovered automatically by the add-on and it soon discovered my meters in the Log tab. Then it was just a matter of adding them in the wmbusmeters config like this:

name=ColdWater driver=apator162 id=12345678 key=00000000000000000000000000000000
name=HotWater driver=apator162 id=12345678 key=00000000000000000000000000000000

You will obviously need to adjust these values based on the Log. I was lucky there is no encryption on my meters. Then I added the following to my configuration.yaml to make the entities show up in HA:

mqtt:
  sensor:
    - state_topic: "wmbusmeters/ColdWater"
      json_attributes_topic: "wmbusmeters/ColdWater"
      unit_of_measurement: "m³"
      state_class: total_increasing
      device_class: water
      value_template: "{{ value_json.total_m3 }}"
      name: Cold Water
      icon: "mdi:gauge-low"
      unique_id: cold_water
    - state_topic: "wmbusmeters/HotWater"
      json_attributes_topic: "wmbusmeters/HotWater"
      unit_of_measurement: "m³"
      state_class: total_increasing
      device_class: water
      value_template: "{{ value_json.total_m3 }}"
      name: Hot Water
      icon: "mdi:gauge"
      unique_id: hot_water

Finally I set-up some Utility Meter helpers in the HA UI to calculate the current (hourly, 15 minutes, etc.) consumption from the increasing totals reported by the meters.


I am still trying to figure out how to make it work in the Energy dashboard, because none of the meters show up currently. I had a bug in the configuration, which is now fixed - for the meters to show up in the Energy dashboard, you have to use instead of m3 as unit of measurement.

7 Likes

Edit: my bad damn it. Seems like HA needed a restart for the dashboard to wake up. Reloading of the “manually configured mqtt templates” wasnt enough. Thanks for the help @hubikj

This is so f-ing weird. I have the same device_class, state_class and unit_of_measurement as you, but the sensor still doesn’t show up in the energy dashboard.
I’ve managed to get my sensor that I converted to “liters” in the dashboard, but that doesnt seem to work. Has been showing 0 for över 3 hours now.

Getting frustrated :smiley:

Which meter you use on water with this adapter reader ?

I live in Belgium too. Have bought the usb dongle @hubikj recommended.
Based on his instructions as well ones from addon creator (thanks both!) managed to install and integrate it into HA.
However, have to return the device because meters (heating radiator and water) in my building use different technology.
In Belgium, metering company ISTA provides 3 different types: radio, wmbus and pulse meters. The usb is good for second type but not useful in my case (radio based emters).

if you live in Leuven or around you can test my device before I return it back to German seller.

Apator AT-WMBUS-16-2 (I did not choose it myself, the building administration did)

I have some issues running this addon, not sure what is the cause of this, I created an issue for it:

As the HA Addon does have a config, I have added everything there, but since I´m using a USB stick called rtl433, I have a feeling that it does not fetch the added meter for decoding it.

I have decrypted the telegram correctly, so I know my KEM file is correctly decrypted, and the key I´m providing is working.

can anyone tell me what im doing wrong here? im not getting anything. got My HA on a RPI4 and with!
im871a stick on a 20m usb cable right next to the Multical21 watermeter. not getting any telegrams to set up the meter

Isn’t this why your wmbus adapter is not detected?

No its a booster cable but have it Working now. It was my config that was wrong

Has anyone successfully used this add-on together with the device RTL2832U ? To get data from a MultiCal21

There is a fork of the wmbusmeter project that allows the use of this type of device, I think, but it’s not available as an add-on.

Can I ask what you changed from default config? I don’t receive any telegram in my log from meter. It have recognized my USB dongle but only got my Mozilla and my phone listed in the log. Can’t see any meters.

My device is 5-6 meters from the meter and as I read the range should be like 500 meters on the im871a-usb.

In my case “helped” to remove the default example meter, then after restart I got message No meters configured. Printing id:s of all telegrams heard! followed by all the received telegrams. Unfortunately all my meters are encrypted.

1 Like

Is the Home Assistant integration for this still available? The link above leads to error 404

Hello all,

the wmbusmeter repo you will find here: GitHub - wmbusmeters/wmbusmeters-ha-addon: To become the new public ha-addon repository for wmbusmeters.

It works like a charm! You can choose between the stable and the edge version.
i personaly prefer the stable version. But if you need it, fixes and enhancemnets will go into the edge version a litle bit faster.

BR

1 Like

Thanks. I had found that shortly after asking 🫣
Now I just have to hope that I will get the access key to my water meter once it has been installed in two weeks🤞