Many water meters, heat meters and heat cost allocators installed by utilities and housing cooperatives have a small radio that broadcasts the reading every few seconds or a few times a day, so a collector can read them on a walk-by or drive-by route. The protocol is wireless M-Bus (wM-Bus, EN 13757-4), and in Europe it usually runs at 868 MHz. If the meter is yours to read, you can pick up the same packets at home and get a live consumption figure without a pulse sensor, a camera pointed at the dial or the utility's portal.

The open-source program wmbusmeters does the decoding. It takes raw telegrams from a USB receiver, an RTL-SDR stick, a wired M-Bus interface or a file, and turns them into JSON with fields such as total_m3. From there you can publish to MQTT, write to a database or call a script.

Two things decide whether this works for you: whether your receiver can hear the mode the meter transmits in, and whether you have the decryption key. Most of this guide is about those two.

Modes: S1, T1 and C1

The standard defines several modes. The letter names the mode, and the digit says whether the device only transmits (1) or can also receive (2). The ones you will meet on residential meters are:

Mode Frequency What it does
S1 (stationary) 868.3 MHz Sends a few times per day, long header, optimised for battery-powered meters read by fixed receivers
T1 (frequent transmit) 868.95 MHz Sends a very short frame (typically 3-8 ms) every few seconds, for walk-by and drive-by reading
C1 (compact) 868.95 MHz Similar to T, but fits more data into the same energy and duty-cycle budget

T and C share a frequency, and the standard allows one receiver to pick up both. S1 sits on a different frequency with different encoding, so a receiver set to T1/C1 will not hear an S1 meter.

The meter's datasheet normally states the mode. For example, Apator's AT-WMBUS-16-2 radio overlay, made for its JS-02 Smart+ and SmartC+ water meters, transmits on 868.95 MHz and is read by receivers working in T1 or T2 mode.

Choosing a receiver

wmbusmeters supports a list of dedicated dongles and the generic RTL-SDR stick. They differ in what they can hear at the same time and in how much work the computer has to do.

  • RTL-SDR (RTL2832U). wmbusmeters starts rtl_sdr and rtl_wmbus in the background. By default it tunes to 868.625 MHz with 1.6 MHz sampling, which covers both 868.3 and 868.95 MHz, so S1, T1 and C1 are decoded in parallel. The cost is CPU time: the README warns that rtl_wmbus -s uses a noticeable amount of it, and the wiki's antenna notes say the RTL-SDR uses a lot of CPU and energy. If you already own a stick from an rtl_433 setup, it is the cheapest way to find out what your meter sends.
  • IMST iU891A. Listens to S1, C1 or T1, or C1 and T1 together. In the wiki's informal range test it was the best receiver of the group.
  • Amber Metis-II (amb8465). Listens to S1, C1 or T1, or C1 and T1 together. The wiki rates it almost as good as the iU891A with the same antenna. The older im871a and amb8465 sticks are no longer produced.
  • Radiocraft rc1180. T1 only.
  • nanoCUL (Arduino Nano with a CC1101). Cheap and DIY-friendly, but the wiki warns that it can never handle telegrams longer than 148 bytes, even with improved firmware, while wM-Bus telegrams can be up to 255 bytes. Check your meter's telegram length before you rely on it.
  • ESP32 with a CC1101, SX1276 or SX1262 radio. The external ESPHome component SzczepanLeon/esphome-components receives and decodes wM-Bus on the board itself, using code taken from wmbusmeters. Its current version uses the ESP-IDF framework and splits the configuration into wmbus_radio, wmbus_meter and sensor entries. This puts the receiver next to the meter and sends readings over Wi-Fi, which helps when the meter is in a basement or a cabinet far from your server.

The antenna matters more than the receiver brand. The wiki author placed an indoor antenna in a wooden house with thin walls and received a C1 water meter 1.5 m underground in a concrete shaft about 35 m away, using an iU891A, a Metis-II or a shielded RTL-SDR with a proper 868 MHz antenna. The same wiki shows a homemade quarter-wave dipole cut from TV coax, with each arm trimmed to 82 mm for 868 MHz. A metal meter cabinet or a manhole cover will cut range sharply, so test in the place where the receiver will live.

Install and listen

wmbusmeters runs on GNU/Linux (including Raspberry Pi), macOS and FreeBSD. Fedora packages it (dnf install wmbusmeters), Debian has it in experimental, and there are experimental Docker images and snaps. Building from source is a plain ./configure; make; sudo make install, which also installs the daemon. The 3.0.0 release from June 2026 can also run in a browser that supports serial ports (tested in Chrome/Chromium and Edge) at wmbusmeters.org/inbrowser, which is handy for a quick test with a USB dongle.

Start by listening without naming any meter. wmbusmeters then prints the header of every telegram it hears:

wmbusmeters auto:t1

Use auto:c1 or auto:s1 for the other modes, or rtlwmbus for an RTL-SDR. For each telegram you get the radio ID, the manufacturer code, the device type, whether it is encrypted, and the driver wmbusmeters would pick, for example:

Received telegram from: 71727374
          manufacturer: (BMT) BMETERS, Italy (0x9b4)
                  type: Heat/Cooling load meter (0x0d) encrypted
                   ver: 0x0b
                driver: hydrocalm3

In a block of flats you will see many meters. Find yours before you go further. The radio ID is often printed on the meter, but not always: on Diehl/Sappel IZAR water meters the printed number does not match the wM-Bus ID. The wiki's trick is to listen to all IZAR meters with '*' as the ID and match the prefix and serial_number fields in the JSON against the label on your meter.

The encryption key

Most utility meters encrypt their payload, usually with AES-128. The header (ID, manufacturer, type) stays readable, which is why the listening step above works, but the consumption values do not. To decode them you need the 16-byte key for that specific meter, written as 32 hex characters.

Where the key comes from depends on who owns the meter:

  • The utility or housing cooperative. Ask the water company or the administrator who installed the meter. Some hand out keys on request, some do not.
  • The meter supplier. For Kamstrup meters, suppliers can send a KEM file with a password, and wmbusmeters ships a script (utils/kem-import.py) that extracts the key and creates meter files from it.
  • A factory default. Apator's datasheet for the AT-WMBUS-16-2 says the payload is protected with AES-128 in CBC mode and that anyone who knows the current key can set a new one. On the Elektroda forum, users report that new overlays ship with an all-zero key that the operator may change, and a wmbusmeters issue shows an AT-WMBUS-16-2 decoded with 00000000000000000000000000000000. Treat that as something to try on your own meter, not a universal key.

If the meter does not encrypt, use NOKEY. Keep keys and raw telegrams out of public forum posts and Git repositories, and do not configure meters that are not yours.

To check a key and a driver against a captured telegram without setting up the daemon, use --analyze:

wmbusmeters --analyze=00112233445566778899AABBCCDDEEFF <telegram hex>

The same analysis runs online at wmbusmeters.org.

Run it as a daemon and publish to MQTT

Once you know the ID, driver and key, put them in config files. The main file is /etc/wmbusmeters.conf; meters go in /etc/wmbusmeters.d/, one file each. A setup with an iU891A on T1, publishing every reading to Mosquitto on the same machine, looks like this:

# /etc/wmbusmeters.conf
loglevel=normal
device=/dev/ttyUSB0:iu891a:t1
format=json
meterfiles=/var/lib/wmbusmeters/meter_readings
meterfilesaction=overwrite
logfile=/var/log/wmbusmeters/wmbusmeters.log
shell=/usr/bin/mosquitto_pub -h localhost -t wmbusmeters/$METER_ID -m "$METER_JSON"
alarmshell=/usr/bin/mosquitto_pub -h localhost -t wmbusmeters_alarm -m "$ALARM_TYPE $ALARM_MESSAGE"
alarmtimeout=1h
alarmexpectedactivity=mon-sun(00-23)
ignoreduplicates=true
# /etc/wmbusmeters.d/ColdWater
name=ColdWater
id=12345678
key=00112233445566778899AABBCCDDEEFF
driver=apator162

Then sudo systemctl enable --now wmbusmeters. The latest reading also lands in /var/lib/wmbusmeters/meter_readings/ColdWater, which is a quick way to confirm decoding works before you look at MQTT. The alarmtimeout line makes wmbusmeters raise an alarm when nothing has been received for an hour, which catches a dead receiver or a moved antenna.

Two settings deserve attention:

  • Name the device, not auto. The README recommends a full path such as /dev/ttyUSB0:iu891a:t1 in production. auto probes every serial port on startup, which is slow, and some Raspberry Pi models misbehave when random data is sent to /dev/ttyAMA0 in Bluetooth mode (donotprobe=/dev/ttyAMA0 stops that).
  • Name the driver, not auto. wmbusmeters aims to guarantee that a named driver keeps its JSON fields compatible across upgrades. With driver=auto, an upgrade can switch your meter to a newer driver with different field names. This is not hypothetical: version 2.0.0 replaced the qwater and qheat drivers with qwaterv2 and qheatv2, whose field names differ.

The JSON for a water meter looks like this (from the README):

{"_":"telegram","media":"water","meter":"iperl","name":"MyTapWater","id":"33225544","max_flow_m3h":0,"total_m3":123.529,"timestamp":"2024-03-03T18:37:00Z"}

Any MQTT client can use total_m3 from there. For Home Assistant Container or Core, the wmbusmeters wiki gives this MQTT sensor, with the topic matching the meter ID:

mqtt:
  sensor:
    - name: "meter_name"
      state_topic: "wmbusmeters/12345678"
      unit_of_measurement: "m³"
      device_class: water
      state_class: total
      value_template: "{{ value_json.total_m3 }}"

On Home Assistant OS there is a wmbusmeters add-on, and the same telegrams can go to Domoticz, ioBroker, openHAB or Prometheus; the wiki has a page for each.

What to expect from the readings

  • Update rate is set by the meter, not by you. A T1 meter may send every few seconds, an S1 meter only a few times a day. Some telegrams also carry a value stored on a set date, such as consumption at the end of last month (target_m3 in some drivers), next to the current total. Read the driver's field list so you chart the right one.
  • The radio reading may not match the dial. A radio overlay that was reused or fitted later can carry an earlier count. Compare a few readings with the mechanical register and apply an offset in your own system rather than touching the utility's device.
  • Not every field gets decoded. The apator162 driver, for example, extracts the total volume; much of Apator's payload is manufacturer-specific, and the driver notes say only part of it is understood so far.
  • wmbusmeters 3.0 changed field names in some drivers. The release notes list them (for example device_date_time became device_datetime in several drivers). Check them before you upgrade a working setup.