ndokter / dsmr_parser

Library to parse Dutch Smart Meter Requirements (DSMR) telegrams.
MIT License
110 stars 64 forks source link

Wrong regex for couple of objects #83

Closed qistoph closed 2 years ago

qistoph commented 2 years ago

https://github.com/ndokter/dsmr_parser/blob/d989cfd0e65d529e0bc420e3a0ce6521f6315f27/dsmr_parser/obis_references.py#L20

I believe the regexes should include \d-\d: just like the others, but there are missing for the following objects:

LONG_POWER_FAILURE_COUNT = r'\d-\d:96\.7\.9.+?\r\n'
SHORT_POWER_FAILURE_COUNT = r'\d-\d:96\.7\.21.+?\r\n'
POWER_EVENT_FAILURE_LOG = r'\d-\d:99\.97\.0.+?\r\n'
qistoph commented 2 years ago

Nevermind, I was doing something wrong.