DSMR Reader Add-on for Home Assistant

When restarting HA it takes about 45 minutes before DSMR reader is available.
During this time non of the sensors are updated too.

Any idea what can cause this ?

Hi all,

about three weeks ago all of a sudden the add-on stopped working. I tried a lot already (changing configurations, looking at this forum, reinstall the add-on and integration, use a different P1 cable), but the last message processed is three weeks ago. The error message I get is:

2024-11-12 11:58:43,631 ERROR    mixins       run_once                        107 | dsmr_datalogger.management.commands.dsmr_datalogger: [!] Exception raised. Traceback (most recent call last):
  File "/app/dsmr_datalogger/scripts/dsmr_datalogger_api_client.py", line 39, in read_telegram
    serial_handle = serial.serial_for_url(
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.11/site-packages/serial/serialposix.py", line 336, in open
    self._update_dtr_state()
  File "/usr/local/lib/python3.11/site-packages/serial/serialposix.py", line 713, in _update_dtr_state
    fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_DTR_str)
OSError: [Errno 5] I/O error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/app/dsmr_backend/mixins.py", line 96, in run_once
    self.run(data=self.data, **options)
  File "/app/dsmr_datalogger/management/commands/dsmr_datalogger.py", line 29, in run
    telegram = next(self.telegram_generator)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/dsmr_datalogger/scripts/dsmr_datalogger_api_client.py", line 43, in read_telegram
    raise RuntimeError("Failed to connect: {}", error) from error
RuntimeError: ('Failed to connect: {}', OSError(5, 'I/O error'))
2024-11-12 11:58:43,632 INFO     mixins       _stop                           138 | dsmr_datalogger.management.commands.dsmr_datalogger: Exiting on next run...

Does anyone know what to do?

Hi Jaap, can you dubbel check the usb port configuration? Sometimes it can happen that the p1 usb reader pops up on a other internal USB bus. Go to settings → System → hardware → All hardware and lookup the correct USB port in the list:

This is mine:

Hi Sander,

Thanks for your response!
It looks the same:

.

And what are your current settings in the addon?