Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Serial integration is unstable

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>