RFLink stopped working (UnicodeDecodeError: 'utf-8' codec can't decode...)

Hello.

I am on Home Assistant 0.93.2 (Ubuntu 18.04.2 LTS x64 4.15.0-50-generic).

RFLink stopped working unexpectedly giving these errors in debug log:

2019-05-30 12:12:55 INFO (MainThread) [rflink.protocol] disconnected because of close/abort.
tail: /usr/share/hassio/homeassistant/home-assistant.log: file truncated
2019-05-30 12:13:06 INFO (MainThread) [homeassistant.components.rflink] Initiating Rflink connection
2019-05-30 12:13:06 INFO (MainThread) [homeassistant.components.rflink] Connected to Rflink
2019-05-30 12:13:06 DEBUG (MainThread) [rflink.protocol] connected

2019-05-30 12:13:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._read_ready of SerialTransport(<uvloop.Loop running=True closed=False debug=False>, <rflink.protocol.RflinkProtocol object at 0x7feb3474cdd8>, Serial<id=0x7feb3474c438, open=True>(port=‘/dev/ttyACM0’, baudrate=57600, bytesize=8, parity=‘N’, stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 66, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/ init .py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/usr/local/lib/python3.7/site-packages/rflink/protocol.py”, line 46, in data_received
data = data.decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x98 in position 2: invalid start byte

2019-05-30 12:13:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._read_ready of SerialTransport(<uvloop.Loop running=True closed=False debug=False>, <rflink.protocol.RflinkProtocol object at 0x7feb3474cdd8>, Serial<id=0x7feb3474c438, open=True>(port=‘/dev/ttyACM0’, baudrate=57600, bytesize=8, parity=‘N’, stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 66, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/ init .py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/usr/local/lib/python3.7/site-packages/rflink/protocol.py”, line 46, in data_received
data = data.decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x98 in position 1: invalid start byte

2019-05-30 12:13:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._read_ready of SerialTransport(<uvloop.Loop running=True closed=False debug=False>, <rflink.protocol.RflinkProtocol object at 0x7feb3474cdd8>, Serial<id=0x7feb3474c438, open=True>(port=‘/dev/ttyACM0’, baudrate=57600, bytesize=8, parity=‘N’, stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 66, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/ init .py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/usr/local/lib/python3.7/site-packages/rflink/protocol.py”, line 46, in data_received
data = data.decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x86 in position 0: invalid start byte

2019-05-30 12:13:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._read_ready of SerialTransport(<uvloop.Loop running=True closed=False debug=False>, <rflink.protocol.RflinkProtocol object at 0x7feb3474cdd8>, Serial<id=0x7feb3474c438, open=True>(port=‘/dev/ttyACM0’, baudrate=57600, bytesize=8, parity=‘N’, stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 66, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/ init .py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/usr/local/lib/python3.7/site-packages/rflink/protocol.py”, line 46, in data_received
data = data.decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x98 in position 0: invalid start byte

You are not alone, I have the same error as of recently:

2019-05-31 18:27:32 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._read_ready of SerialTransport(<uvloop.Loop running=True closed=False debug=False>, <rflink.protocol.RflinkProtocol object at 0x7f611ec9d668>, Serial<id=0x7f611fb3ffd0, open=True>(port=’/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_95432313837351C061B2-if00’, baudrate=57600, bytesize=8, parity=‘N’, stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
Traceback (most recent call last):
File “uvloop/cbhandles.pyx”, line 66, in uvloop.loop.Handle._run
File “/usr/local/lib/python3.7/site-packages/serial_asyncio/init.py”, line 106, in _read_ready
self._protocol.data_received(data)
File “/usr/local/lib/python3.7/site-packages/rflink/protocol.py”, line 46, in data_received
data = data.decode()
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x98 in position 0: invalid start byte

Same here.
Yesterday i noticed the same error in the home assistant log.

2019-06-02 09:24:35 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SerialTransport._read_ready of SerialTransport(<uvloop.Loop running=True closed=False debug=False>, <rflink.protocol.RflinkProtocol object at 0x7f980d11e160>, Serial<id=0x7f9809df2b38, open=True>(port='/dev/ttyACM0', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 66, in uvloop.loop.Handle._run
  File "/usr/local/lib/python3.7/site-packages/serial_asyncio/__init__.py", line 106, in _read_ready
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
    data = data.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte