esp8266_p1meter
esp8266_p1meter copied to clipboard
Not receiving data from gas usage
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?
Same issue for me
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?
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?