since the new 2020.12.0 (or the OS 5.8) update I am now getting these errors on the DSMR integration. It was working perfectly fine before, but now it stopped working
Logger: dsmr_parser.clients.protocol
Source: /usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py:112
First occurred: 10:56:35 AM (394 occurrences)
Last logged: 11:03:39 AM
failed to parse telegram
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py", line 108, in handle_telegram
parsed_telegram = self.telegram_parser.parse(telegram)
File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 59, in parse
telegram[signature] = parser.parse(match.group(0))
File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 249, in parse
return ProfileGenericObject(self._parse(line))
File "/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.py", line 148, in _parse
raise ParseError("Invalid '%s' line for '%s'", line, self)
dsmr_parser.exceptions.ParseError: ("Invalid '%s' line for '%s'", '99.97.0()\r\n', <dsmr_parser.parsers.ProfileGenericParser object at 0x7f13411fe2e0>)
You already seem to have a better grasp of the underlying issue as have. Maybe it is useful for the HA devs to add your bug report upstream to the HA issue so they know to look into that direction.
You can find this file here: /usr/local/lib/python-3.8/site-packages/dsmr-parser/
For that you need access to the docker image, which in my case is running on ESXi. I open the console and enter ârootâ as user and next âloginâ to get a shell.
Run the command docker exec -it homeassistant /bin/bash to open a shell and you can find the path
Logger: dsmr_parser.clients.protocol
Source: /usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.py:112
First occurred: 16:57:38 (30 occurrences)
Last logged: 16:58:06
failed to parse telegram
Traceback (most recent call last):
File â/usr/local/lib/python3.8/site-packages/dsmr_parser/clients/protocol.pyâ, line 108, in handle_telegram
parsed_telegram = self.telegram_parser.parse(telegram)
File â/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.pyâ, line 59, in parse
telegram[signature] = parser.parse(match.group(0))
File â/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.pyâ, line 249, in parse
return ProfileGenericObject(self._parse(line))
File â/usr/local/lib/python3.8/site-packages/dsmr_parser/parsers.pyâ, line 148, in _parse
raise ParseError(âInvalid â%sâ line for â%sââ, line, self)
dsmr_parser.exceptions.ParseError: (âInvalid â%sâ line for â%sââ, â99.97.0()\r\nâ, <dsmr_parser.parsers.ProfileGenericParser object at 0xb0e19850>
I have been doing some more research around this intermittent stopping of readings. I found out it stops arou d the whole hours every now and then so today 13.01, 14.01, 15.01 and 19.01. I have an automation to detect âno more differenceâ in readings and then reload the integration and alerting me.
Is this something somone can work with? What would be the right place to share my data to solve this?