In Belgium, both gas and water meter readings can be made available through the P1 port of the electricity meter. ESPHome supports separate entries for these measurements: gas_delivered_be
and water_delivered
.
However, I noticed these values remained unavailable in device/dashboard, and it took a while to track down the issue. This short guide is meant to help anyone facing the same problem.
When gas and water meters are linked to your electricity meter, they are each assigned an mbus_id. The order in which the meters are connected determines their id’s: the first meter gets id 1, the second gets id 2.
This can lead to unavailable entries if the installation order is different. For example, if your water meter was installed before the gas meter, ESPHome’s defaults won’t match the actual configuration, and data will not appear unless you manually adjust the mbus id’s.
How to check the assigned id’s?
To check which ID is assigned to each meter:
- Press the green button on your electricity meter until the display shows a value starting with
96.1.1-*
on the first line (* will be 1 or 2). - The second line will display the serial number of the linked meter.
- Note which serial number corresponds to your gas meter and which to your water meter.
How to use the mbus ids?
Once you’ve identified which meter is linked to which mbus_id, update your dsmr
configuration in ESPHome accordingly. This can be done by assigning gas_mbus_id
and water_mbus_id
values.
Note that the water_mbus_id is a config that is supported by code but ncluded in the documentation (yet).
Example
If your gas meter appears under 96.1.1-2
and your water meter under 96.1.1-1
, your config should look like this:
dsmr:
id: dsmr_instance
max_telegram_length: 1700
gas_mbus_id: 2
water_mbus_id: 1