mattsaxon / HASS-SpeakercraftMediaPlayer

Speakercraft Platform for Home Assistant
4 stars 1 forks source link

Reconnection of serial cable after a disconnect doesn't work and needs HA restart #24

Open mattsaxon opened 2 years ago

mattsaxon commented 2 years ago

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.

sjeffrey101 commented 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.