esp8266_p1meter icon indicating copy to clipboard operation
esp8266_p1meter copied to clipboard

Not receiving data from gas usage

Open gohigher14 opened this issue 2 years ago • 3 comments

I get all measurements from my electricity , but nothing at all from gas usage. On my electricity company's app i can see my daily usage from electricity and gas. So why can't i see my gas usage? Is this a bug or something else?

gohigher14 avatar Dec 14 '22 19:12 gohigher14

Same issue for me

NicolaiVdS avatar Feb 08 '23 15:02 NicolaiVdS

I also had the same issue. If you're in Belgium, I think the OBIS code for gas is different from what's in master (probably Dutch specific...?). In master, it's 0-1:24.2.1, whereas for me, 0-1:24.2.3 worked instead. Substituting this on line 273 fixed my issue.

This works for me:

if (strncmp(telegram, "0-1:24.2.3", strlen("0-1:24.2.3")) == 0)
{
    GAS_METER_M3 = getValue(telegram, len, '(', '*');
}

If that does not work, maybe take a close look at the telegram itself which should be printed on the serial. Maybe there's another code still that needs to be used... Additional source: https://jensd.be/1205/linux/data-lezen-van-de-belgische-digitale-meter-met-de-p1-poort

I'm not sure how this could be resolved properly... @daniel-jong maybe it could get a mention on the readme?

gustav-janssens avatar Feb 09 '23 22:02 gustav-janssens

I changed those values on my installation and it 100% fixed the issue. Perhaps building in a location based config item could prevent this in the future?

bobsiboo avatar Oct 10 '23 09:10 bobsiboo