@clau-bucur wrote:
Hello,
I have a serial integration where I read some DHT22 sensors from an Arduino Nano.
My config:sensor: - platform: serial name: pod_nano serial_port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 - platform: template sensors: hol_temperatura: friendly_name: Temperatura Hol unit_of_measurement: "°C" value_template: '{{states.sensor.pod_nano.attributes["hol_temperatura"] | round(1)}}' hol_umiditate: friendly_name: Umiditate Hol unit_of_measurement: "%" value_template: '{{states.sensor.pod_nano.attributes["hol_umiditate"] | round(0)}}'
The sensors run fine for a while, but it could be that after a day or so, they don’t get any more data from the serial.
Checking the serial with picocom for example, shows that the Arduino is still sending data.
But it looks like Home Assistant lost the link with the serial device.The same happens if I unplug the device, and plug it back.
The link is lost and I need to restart Home Assistant in order to get it back.Is there a way for the serial integration to recover from a broken connection to the device?
Thanks!
Posts: 4
Participants: 2