DSMR not working good since .108 or homeassistant core or supervisor upgrade (217)

Hi, since one of the last 2 upgrades my readings are not stable. It sometimes works, sometimes don’t. While before it was very stable. I get the following errors:

Traceback (most recent call last):
File “/usr/local/lib/python3.7/asyncio/events.py”, line 88, in _run
self._context.run(self._callback, *self._args)
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/init.py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py”, line 92, in data_received
self.handle_telegram(telegram)
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py”, line 107, in handle_telegram
parsed_telegram = self.telegram_parser.parse(telegram)
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py”, line 57, in parse
telegram[signature] = parser.parse(match.group(0))
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py”, line 159, in parse
return MBusObject(self._parse(line))
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py”, line 138, in _parse
for i, value in enumerate(values)]
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py”, line 138, in
for i, value in enumerate(values)]
File “/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py”, line 235, in parse
value = self.coerce_type(value) if value is not None else value
ValueError: invalid literal for int() with base 10: ‘2C’

And this is total:

readings are “unknown” and I do not know where to start troubleshooting this issue…

The USB device is in:

Configuration did not change and the table in influxdb was neatly filled until it stopped. Eg:
image

EDIT: And then it starts working again…


Above is now 3 times, but I have seen 44 or more there… what is wrong?

1 Like

Hello,

I got the exact same issue after the updates. Only mine never started working again.
Any progress in resolving the issue?

Is this a serial communication to a modbus device. The modbus integration was broken in 108.1 to 108.6 since 0.108.7 ist was reverted to the 0.107.7 version and works again.

Not sure if it’s serial, i think so.
It worked fine on 0.108.6. Then i did both the core and supervisor update and it stopped working (0.108.7). Saying sensor state is unknown.
Then i went back to 0.108.6 and still getting the same issue.

hope this information helps cause i don’t know to fix it

Update:
New version 0.108.8 just installed and dit NOT solve the problem

0.108.8 installed and not starting at all anymore…

I keep having issue since last update of homeassistant. I am not an expert on these matters, but it there I can do something myself?

hello, does someone know if I can something myself to this recently introduced error?

I have the error flooding my logs and missing a lot of readings…

I am on:

image

My errors: (home-assistant.log is 1.5Mb!)

> 2020-05-09 15:04:01 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:04:08 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform onkyo is taking over 10 seconds.
> 2020-05-09 15:04:11 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:04:21 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:04:31 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:04:41 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:04:51 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:05:01 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:05:11 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:05:21 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:05:32 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:05:42 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:05:52 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:06:01 ERROR (SyncWorker_12) [homeassistant.components.fortios.device_tracker] Name not found in client data: 'host'
> 2020-05-09 15:06:02 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:06:12 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:06:22 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SerialTransport._read_ready()
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
>     self._protocol.data_received(data)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
>     self.handle_telegram(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
>     parsed_telegram = self.telegram_parser.parse(telegram)
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
>     telegram[signature] = parser.parse(match.group(0))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
>     return MBusObject(self._parse(line))
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
>     for i, value in enumerate(values)]
>   File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
>     value = self.coerce_type(value) if value is not None else value
> ValueError: invalid literal for int() with base 10: '2C'
> 2020-05-09 15:06:32 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in 

same issue here. But I’m still getting readings, not really a big issue yet, but the log is getting flooded

It’s an issue yes. since this started reading is not stable. I have to restart home assistant sometimes multiple times to restart readings.

Are we alone with this problem? It is very annoying and intermitting/unstable. It does work for a while and then not. Very intermittent and I do not know where to start solving it. Any help appreciated.

Log Details (ERROR)
Logger: homeassistant.core
Source: /usr/src/homeassistant/homeassistant/core.py:156
First occurred: 8:11:20 AM (13 occurrences)
Last logged: 8:13:21 AM

Error doing job: Exception in callback SerialTransport._read_ready()
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 92, in data_received
    self.handle_telegram(telegram)
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/clients/protocol.py", line 107, in handle_telegram
    parsed_telegram = self.telegram_parser.parse(telegram)
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 57, in parse
    telegram[signature] = parser.parse(match.group(0))
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 159, in parse
    return MBusObject(self._parse(line))
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in _parse
    for i, value in enumerate(values)]
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 138, in <listcomp>
    for i, value in enumerate(values)]
  File "/usr/local/lib/python3.7/site-packages/dsmr_parser/parsers.py", line 235, in parse
    value = self.coerce_type(value) if value is not None else value
ValueError: invalid literal for int() with base 10: '2C'

I’m using 2 DSMR meters on the same HA instance, i never had any of these errors so far… Used a dockerized setup until 0.106, after that using a NUC-like system with HassOS. i have 2 v5 DSMR meters which work 100%. I know this isn’t helping you but it doesn’t look a problem with the code, maybe with the DSMR meter version used?

Since I am not alone I think this is not related to my setup only…

I use:

  - platform: dsmr
    #port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AO3RXEHS-if00-port0
    port: /dev/ttyUSB0
    #to find usb path go to ssh/cli hassos and type hardware info
    dsmr_version: 2.2
    precision: 3

I use:

  • platform: dsmr
    port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AK3J2IHZ-if00-port0
    dsmr_version: 5
    precision: 2

Try modifying the precision, as i see some integer error…