WiMBIB Guide

Installation & Setup

  1. Attach the antenna to the SMA connector and connect power via the USB-C cable on your WiMBIB.
  2. Search for the Wi-Fi SSID called “WIMBIB_<mac>” with your mobile device or laptop. Connect to it.
  3. Open your webbrowser and go to url http://192.168.1.1 or http://wimbib.local (if your device supports mDNS/avahi/bonjour). Note: On older phones it might be needed to disable “mobile data”, due to the phone doesn’t understand where to route the data (over wifi or cellular network)
  4. Go to the settings page, press button “Scan”.
  5. Select your Wi-Fi access point SSID and fill in the password.
  6. Set a login protection password – for your safety!
  7. If you have received a .kem file from your watermeter provider, press the button “Open KEM file”. Select your file and press OK. Note.*
  8. …or if you have received your encryption key in free text instead of a KEM file (should be in hexadecimal format, 0011AAFF…format). Then enter the key in the key field. The serial field is the serial number that is on the label of your watermeter.
  9. Then click the button “Save & Restart”.
  10. Reconnect to your home network/access point on your mobile device/laptop.
  11. Go to your webbrowser, enter url https://wimbib.local or the IP presented on the WiMBIB display.
  12. Now you have to wait for WiMBIB to receive data from your watermeter (read chapter ‘How does it work’ below).
  13. Done!

* The KEM-file can come in different formats. One is a clean .kem file, sometimes its named *.zip.kem and sometimes its a *.zip file.

If its an *.zip.kem file, just rename it to .zip and unzip it. Inside resides two files, where one is the actual .kem file which you load into your WiMBIB.

Home Assistant & MQTT

WiMBIB communicates to other software/services via MQTT. MQTT is a communication protocol for internet of things devices.

  1. Install an MQTT broker of your choice (via HACS, Mosquitto via docker container or as standalone application)
  2. Go to WiMBIB settings -> MQTT. Enable it. Add IP/hostname and possible username/password if authentication is used by your broker.
  3. Click button “Save & Restart”
  4. Verify that MQTT state is “connected”.
  5. Go to home assistant -> Settings -> Devices & services. Click the tab “Devices”. Scroll down until you find WiMBIB. Click on it. NOTE. WiMBIB must first receive a wireless m-bus full frame before it can determine which sensors that shall be registered into your home assistant.
  6. If everything works as expected, you should now see all entities available for you in Home Assistant.
  7. Click Home assistant -> Settings -> Dashboards -> Energy.
  8. In the box “Water consumption”. Press button “Add water source”. Select your WiMBIB volume sensor.
  9. Done!

How does it work?

The watermeter sends data continously (at intervalls) over a radio protocol named Wirelss M-Bus. Normally Kamstrup meters send a chunk (frame) of radio information each 90seconds.

– “By running a WiMBIB, does it draw more battery of my water meter?”. The answer is no. The data is transmitted from your watermeter regardless if your WiMBIB is picking it up. WiMBIB does not transmit any data over Wirelss M-Bus. It only listens and decodes data that is sent over the air.

– “Why does it take so long time until I receive any information after restart?”. The reason is in the way Wireless M-Bus works. The watermeters sends (in the case of watermeters, can be different on other devices) two different types of radio frames. One is called ‘full frame’, the other ‘compact frame’. A full frame contains information on what kind of data type that is transmitted, the format of the data, for instance temperature, volume, alarms data and lots of other metadata. Compact frames only transmit actual values. For the WiMBIB to understand how to process the compact frames, it needs to receive at least one full frame before.

Full frames are only transmitted once normally per eight frames*. But it can differ, and also if its weekend or during different hours of the day. The other frames between full frames are compact frames.

Normally it might take ~10-20 minutes before a full frame is transmitted and WiMBIB receives it. Until then, it will show “waiting” on the OLED display with a CF-counter (compact frame).

After the full frame is received, WiMBIB will decode each radio frame (per 90 seconds) received.

* Can be different on different watermeters. Kamstrup meters normally sends per 8.

Measurement information

The watermeters comes with a range of different measurement points. However, not all are sent by your watermeter. The set of data that is sent over the wireless interface is configurable by the VA-provider. Which means, even if your meter have the ability to send one data point – the VA provider might not have activated it, and thus it is not transmitted.

This table show the sensors that the WiMBIB firmware currently supports.

MeasurementDescriptionHome Assistent Sensor
Leak alarmLeakage detectedwimbib_leak_alarm
Burst alarmPipe is burstingwimbib_burst_alarm
Dry alarmNo water in the meterwimbib_dry_alarm
Reverse alarmWater is flowing in reverse directionwimbib_reverse_alarm
Total water volumeMeter setting volumewimbib_total_volume
Total water volume reverseMeter setting, but reverse volumewimbib_volume_reverse
Consumption last 24hVolume consumed last 24 hourswimbib_consumption_last_24h
Target volume yearWater volume consumed during last yearwimbib_target_volume_year
Target volume monthWater volume consumed during last monthwimbib_target_volume_month
Flow actualCurrent water flowwimbib_flow_actual
Max flow yearHighest water flow measured during last yearwimbib_max_flow_year
Max flow monthHighest water flow measured during last monthwimbib_max_flow_month
Max flow dayHighest water flow measured during last daywimbib_max_flow_day
Min flow monthLowest water flow measured during last monthwimbib_min_flow_month
Min flow dayLowest water flow measured during last daywimbib_min_flow_day
Volume weighted water temp dayVolume weighted water temperature during last daywimbib_vol_weighted_water_temp_day
Time weighted meter temp dayTime weighted meter temperature during last daywimbib_time_weighted_meter_temp_day
Volume weighted water temp monthVolume weighted water temperature during last monthwimbib_vol_weighted_water_temp_month
Min water temp dayLowest measured water temperature during last daywimbib_min_water_temp_day
Min water temp monthLowest measured water temperature during last monthwimbib_min_water_temp_month
Min water temp yearLowest measured water temperature during last yearwimbib_min_water_temp_year
Max water temp dayHighest measured water temperature during last daywimbib_max_water_temp_day
Max water temp monthHighest measured water temperature during last monthwimbib_max_water_temp_month
Max water temp yearHighest measured water temperature during last yearwimbib_max_water_temp_year
Min meter temp dayLowest measured meter temperature during last daywimbib_min_meter_temp_day
Min meter temp monthLowest measured meter temperature during last monthwimbib_min_meter_temp_month
Min meter temp yearLowest measured meter temperature during last yearwimbib_min_meter_temp_year
Max meter temp monthHighest measured meter temperature during last monthwimbib_max_meter_temp_month
Max meter temp yearHighest measured meter temperature during last yearwimbib_max_meter_temp_year
Table of sensors and measurement points

FAQ & Troubleshooting

There is a facebook group at https://www.facebook.com/groups/remnetech.wimbib where you can find help and information about latest firmware upgrades.

LED Blinking Schema

BlinkingDescription
5 fast blueWiMBIB is booting
2 slow blueWIFI connected successfully to your access point
2 slow redWIFI failed to connect to your access point
3 slow blueMQTT connection successful
3 slow redMQTT connection failed
1 slow blueRadio frame successfully received and decoded
1 slow redRadio frame decoding failed (CRC)
1 slow yellowCompact frame successfully received, however, still waiting for full frame

Reset the WiMBIB device

If your device for some reason needs to be reset to factory defaults and you’re not able to communicate with it – its possible to flash new firmware onto the device via the USB port.

  1. Connect the WiMBIB device to an computer via a USB cable (don’t use the one that came with your device, its only for power and is missing the data lines).
  2. On windows, you might need to install the USB-bridge chip drivers found at http://www.wch-ic.com/downloads/CH341SER_EXE.html
  3. Go to https://remne.github.io/wimbib/webflash/ , press the “connect”-button and select your port to the P1IB.
  4. Follow the instructions.

Read debug logs via ‘Remote debug log’-function

  1. Go the the WiMBIB settings -> Advanced Settings -> Remote debug log.
  2. Enable it. Set the IP field to the IP of your PC. Press ‘save & restart’.
  3. Make sure you have netcat (or similar) installed. For windows its ncat ( https://nmap.org/ncat/ ). In mac its ‘nc’ (download via brew). For Linux netcat.
  4. In a terminal window, run “netcat -ul 8888” (or nc/ncat depending on your OS).
  5. If you’ve done things correctly, the terminal will be populated with logs from your wimbib.

Read debug logs via USB

  1. Connect the WiMBIB device to an computer via a USB cable (don’t use the one that came with your device, its only for power and is missing the data lines).
  2. On windows, you might need to install the USB-bridge chip drivers found at http://www.wch-ic.com/downloads/CH341SER_EXE.html
  3. Open your favorite terminal program. Putty is recommended. https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe
  4. Open the virtual serial port, use baudrate 115200.