Initial Situation
I use Home Assistant as the foundation for home automation in my house. I monitor the central heating system, as well as doors, windows, and mailbox, using sensors.
Current Situation
The house was renovated some time ago. In the coming years, replacing the existing gas heating system will become necessary. Therefore, current energy consumption (electricity, gas, and water) is an important issue. As a first step, I'm using an IoT adapter from Gantrisch Energie. This adapter runs Tasmota32 version 14.5.0. Integration with Home Assistant is done via the Mosquitto Broker. My initial step is to record electrical energy consumption, which I then display in the Home Assistant dashboard.
Interfaces and Boundary Conditions
The energy supplier (Energie Thun AG) has installed a Landis & Gyr E450 smart meter in my house. The IoT adapter can be connected via the M-Bus interface using an RJ-12 cable. Parameterization is done via a script. There is a corresponding configuration for each of the required OBIS codes.
For example: 1,pm(1.7.0)@1000,Pi ___ 1_7,kW,Pi,3
I discovered by chance that gas and water consumption data is also available via the M-Bus interface (the gas and water meters transmit the recorded readings to the smart meter via a radio connection (868 MHz)). All this data (electricity, gas, and water) is transmitted to Energie Thun using powerline technology.
Challenge
After consulting with the specialists at Energie Thun, the gas and water consumption values are transmitted every hour on the hour and made available on the M-Bus interface. The following OBIS codes are used:
• Water: 0-1:24.2.1;2
• Gas: 0-3:24.2.1;2
When I configure this in the corresponding script, it looks like this. from
1,pm(24.2.1)@1,WaterTotal ___ 24_2_1,m3,Water,1
And indeed, this reads the value from the water meter. According to the specialist, this is necessary because the water consumption is transmitted first, followed by the gas consumption.
As I understand the script, a reduced or compressed OBIS code is used here.
My question is: Is there a way to configure the script so that I can distinguish between the two full OBIS codes for water and gas?