DSMR Gas reading

Hello,
I’m using the dsmr binding to read out my electricity statistics. This works fine, all data is present.
In the text output from my P1 port I see also the gas measurement in the last line:
0-1:24.2.3(191127180506W) (00095.291*m3)
I added 2 lines to my things file to read out the gas consumption.

Bridge dsmr:dsmrBridge:mysmartmeter [serialPort="/dev/ttyUSB0"] {
    Things:
        electricity_v5_0    electricityV5 [channel=0 , refresh=30]
        gj_v5_0             dsmrV5gj      [channel=1 , refresh=30]
        m3_v5_0             gasmeter      [channel=1,  refresh=30]
}

Looking via configuration things on paperUI I see that both are online, but not reading any data.
The only value I get in paperUI Control for these items are the Device Type =“3” Delivery =“-NaN” and Timestamp =“-”
Any idea why the binding is not reading the data ? Or can I test something ?

For completeness I add also my items file

Number Energy_Total_Delivery_Day      "Totaal Levering Dag [%.3f kWh]"             {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_delivery_tariff1"}
Number Energy_Total_Delivery_Night    "Totaal Levering Nacht [%.3f kWh]"           {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_delivery_tariff2"}
Number Energy_Total_Production_Day    "Totaal Productie Dag [%.3f kWh]"            {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_production_tariff1"}
Number Energy_Total_Production_Night  "Totaal Productie Nacht [%.3f kWh]"          {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_production_tariff2"}
Number Energy_Actual_Delivery         "Actuele Levering [%.3f kW]"                 {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_actual_delivery"}
Number Energy_Actual_Delivery_W       "Actuele Levering [%.0f W]"        (gPower)
Number Energy_Actual_Production       "Actuele Productie [%.3f kW]"                {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_actual_production"}
Number Energy_Actual_Production_W     "Actuele Productie [%.0f W]"       (gPower)
String Energy_Tarif                   "Energie Tarief"                             {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_tariff_indicator"}
Number Energy_Voltage                 "Energie Voltage [%.1f Volt]"                {channel="dsmr:electricity_v5_0:mysmartmeter:electricityV5:emeter_instant_voltage_l1"}

Number Energy_Gas                     "Gas Verbruik"                               {channel="dsmr:gj_v5_0:mysmartmeter:dsmrV5gj:gjmeter_value"}
Number Energy_Gas_Time                "Gas Laatste meting"                         {channel="dsmr:gj_v5_0:mysmartmeter:dsmrV5gj:gjmeter_value_timestamp"}

Kind regards, Hans

It looks like the reading for gas readings are not recognized. If you run the discovery for the DSMR binding in PaperUI it should print any problems in the logging. This might be a first indication. If that doesn’t give any more information you can enable debug of trace log level (log:set DEBUG org.openhab.binding.dsmr)

Hey,
During the discovery the next lines are printed in the log

2019-11-28 16:21:20.226 [INFO ] [.discovery.DSMRMeterDiscoveryService] - There are some unrecognized values, which means some meters might not be detected. Not all values are recognized.    Please report your raw data as example:
2019-11-28 16:21:20.228 [INFO ] [.discovery.DSMRMeterDiscoveryService] - Possible incorrect meters configured. These are configured: GJ_V5_0, ELECTRICITY_V5_0, M3_V5_0.But the following u   nconfigured meters are found in the data received from the meter:

The trace log level gives:

> 2019-11-28 16:29:47.184 [DEBUG] [rnal.device.cosem.CosemObjectFactory] - Received unknown Cosem Object(OBIS id: 0-1:24.2.3)
> 2019-11-28 16:29:47.189 [DEBUG] [rnal.device.cosem.CosemObjectFactory] - Received unknown Cosem Object(OBIS id: 0-0:96.1.4)
> 2019-11-28 16:29:47.201 [DEBUG] [rnal.device.cosem.CosemObjectFactory] - Received unknown Cosem Object(OBIS id: 1-0:31.4.0)

The raw data I receive from USB-cable:
> 0-1:24.2.3(191127180506W) (00095.291*m3)`
Where the 95.291 is the gas used in m³, and this is latest measured on 27 Nov 2019 at 18h05m06s

Kind regards, Hans

`

If you want a complete log, I took a screenshot of the output of USB-cable.


Thanks for helping, Hans

Can you send me the raw output via direct message in text form. I need it to run the program to correctly identify the values.

Here is reading from my Smartmeter. Electricity works fine, but with Gas is shown in paperui and connected but I receive as value -NaN. As you can see my Gas is on channel 2, the first meter won’t connect. So it was replaced. That’s why channel 2. My Gasmeter is SMR 5. What do I wrong?

Here is my things file.

Bridge dsmr:dsmrBridge:mysmartmeter [serialPort="/dev/ttyUSB0"] {
Things:
device_v5 dsmrDeviceV5 [channel=-1]
electricity_v5_0 electrameter [channel=0]
gas_v3_0 gasmeter [channel=1]

/ISK5\2M550E-1012

1-3:0.2.8(50)
0-0:1.0.0(201022191257S)
0-0:96.1.1(453030343330300000000000000000)
1-0:1.8.1(002303.700kWh)
1-0:1.8.2(001695.668
kWh)
1-0:2.8.1(000548.374kWh)
1-0:2.8.2(001279.676
kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.452kW)
1-0:2.7.0(00.000
kW)
0-0:96.7.21(00008)
0-0:96.7.9(00005)
1-0:99.97.0(3)(0-0:96.7.19)(190115011853W)(0000000389s)(200217121327W)(0000000853s)(200401114717S)(0000011165s)
1-0:32.32.0(00006)
1-0:32.36.0(00001)
0-0:96.13.0()
1-0:32.7.0(232.4
V)
1-0:31.7.0(002A)
1-0:21.7.0(00.449
kW)
1-0:22.7.0(00.000kW)
0-1:24.1.0(003)
0-1:96.1.0()
0-1:24.2.1(700101010000W)(00000000)
0-2:24.1.0(003)
0-2:96.1.0(4730303339303031383433313135303138)
0-2:24.2.1(201022191006S)(00847.336
m3)
!465C

I would expect it to be m3_v5_0 and/or channel=2. To check remove this thing and see what discovery finds.

Ik heb nu een meter (DSMR v5) die on line is.

Thanks for the help. I can see the total meter reading. But is it also possible to see the information of gas usage per hour. As you can see in P1 monitor and Domoticz.

Thanks in advance.

The binding only reports the information passed by the meter. But depending what you want to see there are several options to store the data total via the persistence service and query the delta of a certain period and show it in a chart. See Persistence | openHAB