EDL21 Stops working and needs HA restart

Hey! I do have the EDL21 Integration that kind of works fine. However, after a few hours the integration stops working and I need Ha to restart. When doing so, the energy dashboard is back and updated, it seems that the “Power missed” is being added, so the data is not missing but stuck somewhere (?).

You can also see that the Data is jumping when looking at the Sensor directly.

I am using one of these IR to USB converters.


The Sensor is integrated via:

sensor:
  - platform: edl21
    serial_port: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0046-if00-port0

I am running HA with Supervisor on a Debian VM. It just requires a Restart of HA, no reboot. So I can rule out a driver/hardware issue.

Does anyone know how to fix this?

I have the same issue. Sometimes, for me, it helps to remove the Sensor ans put it back. So no restart is needed. I will try to access the logs.

After enable debug i got:

Nov 05 08:22:58 homeassistant homeassistant[593]: 2024-11-05 09:22:58.864 DEBUG (MainThread) [sml.asyncio] port closed
Nov 05 08:22:58 homeassistant homeassistant[593]: 2024-11-05 09:22:58.863 WARNING (MainThread) [sml.asyncio] Timeout while waiting for meter data. Please check reading device. Restarting edl21

That’s a generic error message. The fun fact is that a reboot solves the problem temporary.