esphome-stream-server icon indicating copy to clipboard operation
esphome-stream-server copied to clipboard

Unreliable connections with ESPHome > 2021.9

Open tube0013 opened this issue 2 years ago • 2 comments

Serial connections are very unreliable when using this component with any ESPHome Version greater than 2021.9. By unreliable I mean the connection resets every few hours.

tube0013 avatar Jul 20 '22 16:07 tube0013

Do you have any error messages or related information for when the issue happens? When the connection is reset, what do you have to do to get it working again?

robinsmidsrod avatar Sep 14 '22 08:09 robinsmidsrod

Connection will get reestablished.

Problem being serial is disconnected frequently for small amounts of time while reconnects and zigbee network restarted.

tube0013 avatar Sep 14 '22 11:09 tube0013

Just installed esphome with this on esp32dev board. Inconsistent intervals. Might run 36 hours of 10 minutes. Restart will improve.

povlhp avatar Jan 06 '23 14:01 povlhp

You could try the socket-abstraction branch (see PR #25). I've done a major update to use the socket APIs directly instead of through the Arduino libraries, and I hope that also improves reliability. I haven't done any long duration testing myself yet though.

oxan avatar Feb 03 '23 00:02 oxan

I'll close this now, as I haven't been able to reproduce this with the new socket-based approach. If you still encounter this issue, please reopen the issue and we'll see if we can dive further into it.

oxan avatar Feb 07 '23 21:02 oxan