Open mattsaxon opened 2 years ago
yes error handling needs improvement.
im sure i only get the issue if i unplug the USB to serial adapter...... so the port disappears.. Some times when plugging back in, its assisnged a different ttyUSB# which causes issues. I can unplug the serial from the usb and plug it back in and the code continues. Guess Same as when i power off the speakercraft, the serial just sits waiting for next update.
Improved the error handling, but is still doesn't reconnect if you put the cable back. However it no longer fills the logs or hangs HA,
Suspect there is an issue with pyserial or Raspberry Pi handling of it.