esphome-stream-server
esphome-stream-server copied to clipboard
Unreliable connections with ESPHome > 2021.9
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.
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?
Connection will get reestablished.
Problem being serial is disconnected frequently for small amounts of time while reconnects and zigbee network restarted.
Just installed esphome with this on esp32dev board. Inconsistent intervals. Might run 36 hours of 10 minutes. Restart will improve.
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.
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.