Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFLink, UnicodeDecodeError: 'utf-8' #23942

Closed
olskar opened this issue May 17, 2019 · 52 comments
Closed

RFLink, UnicodeDecodeError: 'utf-8' #23942

olskar opened this issue May 17, 2019 · 52 comments

Comments

@olskar
Copy link
Contributor

olskar commented May 17, 2019

Home Assistant release with the issue:
0.93.1

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io

Component/platform:
https://www.home-assistant.io/components/rflink/

Description of problem:
RFLink does not work

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

rflink:
  port: /dev/ttyACM0

Traceback (if applicable):

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 0x7f4f014a6b00>, Serial<id=0x7f4f01227390, 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

Additional information:

@olskar
Copy link
Contributor Author

olskar commented May 19, 2019

Another update on this bug, I can "fix" it by running a rflink-python command in the underlying os.

For exmaple sudo rflink on newkaku_00220600_1
When I run that, and hass is running as well, hass seem to work fine with rflink afterwards?

Do you have any idea @aequitas?

@degraafm
Copy link

I have the same issue. Problem started in 0.93.1

Connecting to rflink over ip (socat with rflink on anthother linux machine) works fine

@aequitas
Copy link
Contributor

@degraafm does the problem manifest consistently or sporadically? Could you maybe try with a previous version to see when it was still working?

This change happened recently [0] but I don't know if its related?

[0] 2c07bfb#diff-d9ab991eeffd384c9d9f8528a2c546bf

@degraafm
Copy link

The problem manifests consistently. After rebooting/restarting rflink works for about 30 seconds. Then the unicode decode error is apppearing in the logs.

Rflink in Version 0.92.2 is working fine

@olskar
Copy link
Contributor Author

olskar commented May 26, 2019

Hm i downgraded to 0.92.2 and have the same error

@IscreaMan
Copy link

IscreaMan commented May 30, 2019

I am having same problem. Home Assistant 0.93.2.

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

@aequitas
Copy link
Contributor

Could you please run HA with the debug on for rflink[0] and post relevant output here? I might get a better picture of what is going wrong when I know which data is coming in.

[0] https://www.home-assistant.io/components/rflink/#debug-logging

@IscreaMan
Copy link

My output is already posted with debug on.

2019-05-30 12:13:06 DEBUG (MainThread) [rflink.protocol] connected

@olskar
Copy link
Contributor Author

olskar commented May 31, 2019

Between 02:03:08 and 02:03:25, I run sudo rflink on newkaku_00220600_1 on my ubuntu server (that has hass installed in docker) to turn a light on . After that, as you can see in the logs, rflink starts working.

Not sure if that can help in understanding whats going on @aequitas ?

2019-05-31 02:02:46 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 0x7fb5067b4128>, Serial<id=0x7fb50697bfd0, 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
2019-05-31 02:02:46 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 0x7fb5067b4128>, Serial<id=0x7fb50697bfd0, 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 2: invalid start byte
2019-05-31 02:03:08 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 0x7fb5067b4128>, Serial<id=0x7fb50697bfd0, 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-31 02:03:08 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 0x7fb5067b4128>, Serial<id=0x7fb50697bfd0, 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 0xe0 in position 0: invalid continuation byte
2019-05-31 02:03:08 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 0x7fb5067b4128>, Serial<id=0x7fb50697bfd0, 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 5: invalid start byte
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] received data: 20;07;OK;
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] got packet: 20;07;OK;
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] command response: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] received data: 20
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] received data: ;08;Oregon TempHygro;ID=
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] received data: 2DED;TEMP=005d;HUM=86;HS
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] received data: TATUS=3;BAT=OK;
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] got packet: 20;08;Oregon TempHygro;ID=2DED;TEMP=005d;HUM=86;HSTATUS=3;BAT=OK;
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'oregon temphygro', 'id': '2ded', 'temperature': 9.3, 'temperature_unit': '°C', 'humidity': 86, 'humidity_unit': '%', 'humidity_status': 'wet', 'battery': 'ok'}
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2ded_temp', 'sensor': 'temperature', 'value': 9.3, 'unit': '°C'}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2ded_temp', 'sensor': 'temperature', 'value': 9.3, 'unit': '°C'}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2ded_hum', 'sensor': 'humidity', 'value': 86, 'unit': '%'}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2ded_hum', 'sensor': 'humidity', 'value': 86, 'unit': '%'}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2ded_hstatus', 'sensor': 'humidity_status', 'value': 'wet', 'unit': None}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2ded_hstatus', 'sensor': 'humidity_status', 'value': 'wet', 'unit': None}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2019-05-31 02:03:25 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2ded_bat', 'sensor': 'battery', 'value': 'ok', 'unit': None}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2ded_bat', 'sensor': 'battery', 'value': 'ok', 'unit': None}
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2019-05-31 02:03:25 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2019-05-31 02:03:26 DEBUG (MainThread) [rflink.protocol] received data: 20;09;FineOffs
2019-05-31 02:03:26 DEBUG (MainThread) [rflink.protocol] received data: et;ID=00ff;TEMP=0066;
2019-05-31 02:03:26 DEBUG (MainThread) [rflink.protocol] got packet: 20;09;FineOffset;ID=00ff;TEMP=0066;
2019-05-31 02:03:26 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'fineoffset', 'id': '00ff', 'temperature': 10.2, 'temperature_unit': '°C'}
2019-05-31 02:03:26 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'fineoffset_00ff_temp', 'sensor': 'temperature', 'value': 10.2, 'unit': '°C'}
2019-05-31 02:03:26 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'fineoffset_00ff_temp', 'sensor': 'temperature', 'value': 10.2, 'unit': '°C'}
2019-05-31 02:03:26 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2019-05-31 02:03:26 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2019-05-31 02:03:28 DEBUG (MainThread) [rflink.protocol] received data: 20;0A;WH3;ID=43d0;TE
2019-05-31 02:03:28 DEBUG (MainThread) [rflink.protocol] received data: MP=0073;HUM=75;
2019-05-31 02:03:28 DEBUG (MainThread) [rflink.protocol] got packet: 20;0A;WH3;ID=43d0;TEMP=0073;HUM=75;
2019-05-31 02:03:28 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'wh3', 'id': '43d0', 'temperature': 11.5, 'temperature_unit': '°C', 'humidity': 75, 'humidity_unit': '%'}
2019-05-31 02:03:28 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'wh3_43d0_temp', 'sensor': 'temperature', 'value': 11.5, 'unit': '°C'}
2019-05-31 02:03:28 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'wh3_43d0_temp', 'sensor': 'temperature', 'value': 11.5, 'unit': '°C'}

@bendikrb
Copy link
Contributor

Between 02:03:08 and 02:03:25, I run sudo rflink on newkaku_00220600_1 on my ubuntu server (that has hass installed in docker) to turn a light on . After that, as you can see in the logs, rflink starts working.

I can confirm that this also works on in my setup (homeassistant running inside docker here as well).

A little snippet of my debug output as well (before running the above mentioned command);

2019-05-31 02:20:31 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 0x7fc1de9944e0>, Serial<id=0x7fc1df59e4a8, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55739323138351D06162-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 0xe6 in position 0: invalid continuation byte
2019-05-31 02:20:31 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 0x7fc1de9944e0>, Serial<id=0x7fc1df59e4a8, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55739323138351D06162-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 0x9e in position 0: invalid start byte
2019-05-31 02:22:29 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 0x7fc1de9944e0>, Serial<id=0x7fc1df59e4a8, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55739323138351D06162-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 2: invalid start byte
2019-05-31 02:22:29 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 0x7fc1de9944e0>, Serial<id=0x7fc1df59e4a8, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55739323138351D06162-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
2019-05-31 02:23: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 0x7fc1de9944e0>, Serial<id=0x7fc1df59e4a8, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55739323138351D06162-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 2: invalid start byte
2019-05-31 02:23: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 0x7fc1de9944e0>, Serial<id=0x7fc1df59e4a8, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_55739323138351D06162-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 0x9e in position 0: invalid start byte

@degraafm
Copy link

It seems the problem occurs only on docker/hass.io. I can reproduce the problem om ubuntu with hass.io. On a raspberry pi with hass installed in a python virtual env. Rflink is working fine.

@Sjeff
Copy link

Sjeff commented Jun 2, 2019

Yesterday i noticed the same error.

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

Hassio 0.93.2
Intel NUC with Ubuntu and docker.

@aequitas
Copy link
Contributor

aequitas commented Jun 2, 2019

So I've finally come around to update my hassio installation to HA 0.93.2 but the problem doesn't manifest itself here. So I'm not able to debug this locally.

Which version of hassio are you running. Mine is at 165, I have a pretty old installation so maybe it's lagging behind and the problem only exists on newer hassio versions?

@aequitas
Copy link
Contributor

aequitas commented Jun 2, 2019

I updated python-rflink and created a pr to include the latest version in HA. This should result in a more robust handling of invalid incoming data.

Beware this will not fix the issue per se. It will just ignore the data, log a warning and continue. But previously the invalid data would not be logged at all, not even in debug. So this might give a better insight in why things go wrong.

aequitas pushed a commit to aequitas/home-assistant that referenced this issue Jun 2, 2019
@olskar
Copy link
Contributor Author

olskar commented Jun 3, 2019

Mine is at 165 as well. How are you running hassio @aequitas ? Is it on pi or something else?

@aequitas
Copy link
Contributor

aequitas commented Jun 3, 2019

@olskar yes, on an RPi 3b+. Rflink plugged into the USB.

One thing might be worth mentioning is that I don't use the /dev/ttyACM0 device path but a unique per-device path: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_XXXXXXXXXXXXXXXXXXX-if00

This path will be different for your configuration. You can view them like so:

root@hassio:~# ls -l /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Jun  2 18:16 usb-Arduino__www.arduino.cc__0042_55632313338351B08080-if00 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Jun  2 18:16 usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 -> ../../ttyUSB0```

It is because I have multiple serial devices and they sometime get assigned different numbers when booting the raspberry pi. Using the unique paths ensures I get the correct device for Rflink.

I don't think this is problem that is playing on your end. As you told it works when you invoke Rflink directly (which defaults to `/dev/ttyACM0`). But for others this might be the issue. As input from any other serial device than a Rflink could generate invalid data for the rflink module.

@olskar
Copy link
Contributor Author

olskar commented Jun 3, 2019

I am starting to think it might be related to docker+hassio+rflink and exposing device to the docker container

I have installed hassio manually on my Intel nuc, @Sjeff also running on nuc

@olskar
Copy link
Contributor Author

olskar commented Jun 3, 2019

@aequitas Here is log with 0.46. (At 16:00:46 I send a command with rflink on host os).

019-06-03 15:59:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for rflink which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-06-03 15:59:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for custom_updater which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-06-03 15:59:11 DEBUG (MainThread) [rflink.protocol] connected 2019-06-03 15:59:35 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~��~������
2019-06-03 15:59:35 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �f�x����x��fx�ff���f����������������� 2019-06-03 15:59:35 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ��������f��f��f��������������
2019-06-03 15:59:35 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �
2019-06-03 15:59:38 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '01351e16', 'switch': 'b', 'command': '0'}
2019-06-03 15:59:38 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;01351e16;b;0;\r\n'
2019-06-03 15:59:38 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2019-06-03 15:59:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ������f憞f��~��f
2019-06-03 15:59:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �������~f�f�f����xf�~��ff�f������f 2019-06-03 15:59:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �f昘������� 2019-06-03 15:59:43 WARNING (MainThread) [rflink.protocol] acknowledge timeout 2019-06-03 15:59:53 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~�x����f���~��� 2019-06-03 15:59:53 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ff�~��f��������fff�f�����f��ff���
2019-06-03 15:59:53 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���x��x���f�f昘�������
2019-06-03 16:00:12 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���
�x��ff������f��� 2019-06-03 16:00:12 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ����~f�f�f������x���f�f昘�������
2019-06-03 16:00:20 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���
��������f�x�x�fx��f� 2019-06-03 16:00:20 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ��xx�~f�f�f������x�����
2019-06-03 16:00:27 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���

2019-06-03 16:00:27 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �~~f�����f����x�~f�f�f����xx�
2019-06-03 16:00:27 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �ff�f���怘�
2019-06-03 16:00:36 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���
����ff��f�
2019-06-03 16:00:36 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���f�������~f�f�f����xf���ff�f�
2019-06-03 16:00:36 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �����f�f昘�������
2019-06-03 16:00:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���
2019-06-03 16:00:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ����f���x�������������~��f�x����
f�f�f����������ff�f����~怘� 2019-06-03 16:00:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~��~�����x�������������~
2019-06-03 16:00:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ��f�x����~f�f�f����������ff�f����
2019-06-03 16:00:39 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: 怘�
2019-06-03 16:00:41 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���
������f�
2019-06-03 16:00:41 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ��
���ff���f��������fff�f�����f�~ 2019-06-03 16:00:41 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �ff������x��x���f�f昘������� 2019-06-03 16:00:42 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~��~xf���f�x�x 2019-06-03 16:00:42 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �fx��f�������fff�f�����fx���ff 2019-06-03 16:00:42 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �f�������� 2019-06-03 16:00:46 DEBUG (MainThread) [rflink.protocol] received data: 20;0B;OK; 2019-06-03 16:00:46 DEBUG (MainThread) [rflink.protocol] got packet: 20;0B;OK; 2019-06-03 16:00:46 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'unknown', 'ok': True} 2019-06-03 16:00:46 DEBUG (MainThread) [rflink.protocol] command response: {'node': 'gateway', 'protocol': 'unknown', 'ok': True} 2019-06-03 16:01:09 DEBUG (MainThread) [rflink.protocol] received data: 20;0C;XT200 2019-06-03 16:01:09 DEBUG (MainThread) [rflink.protocol] received data: ;ID=1068;TEMP=00f0;BAT=L 2019-06-03 16:01:09 DEBUG (MainThread) [rflink.protocol] received data: OW; 2019-06-03 16:01:09 DEBUG (MainThread) [rflink.protocol] got packet: 20;0C;XT200;ID=1068;TEMP=00f0;BAT=LOW; 2019-06-03 16:01:09 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'xt200', 'id': '1068', 'temperature': 24.0, 'temperature_unit': '°C', 'battery': 'low'}

@Sjeff
Copy link

Sjeff commented Jun 4, 2019

Debug log HA 0.93.2
Also changed the port from /dev/ttyACM0 to /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00 to see if its related but the error's and warnings remain the same.

I only have 1 device connected to rflink to switch on and off a light.
This device is not responding to any on/off commands.

2019-06-04 10:57:33 INFO (SyncWorker_10) [homeassistant.loader] Loaded rflink from homeassistant.components.rflink
2019-06-04 10:57:33 INFO (MainThread) [homeassistant.components.rflink] Initiating Rflink connection
2019-06-04 10:57:33 INFO (MainThread) [homeassistant.components.rflink] Connected to Rflink
2019-06-04 10:57:33 DEBUG (MainThread) [rflink.protocol] connected
2019-06-04 10:57:34 INFO (MainThread) [homeassistant.components.light] Setting up light.rflink
2019-06-04 10:58:07 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 10:58:07 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 10:58:07 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 10:59:04 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 10:59:04 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 10:59:04 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:00:01 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:00:01 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:00:01 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:00:58 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:00:58 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:00:58 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:01:55 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:01:55 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:01:55 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:02:52 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:02:52 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:04:46 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:04:46 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:05:43 DEBUG (MainThread) [rflink.protocol] received data: ��
2019-06-04 11:05:43 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:05:43 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:06:40 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:06:40 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:06:40 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:07:37 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:07:37 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:08:34 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:08:34 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
 File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:08:34 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:09:31 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:09:31 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:09:31 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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:09:45 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: 3 to Rflink device: newkaku_00fd0f56_10
2019-06-04 11:09:45 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '00fd0f56', 'switch': '10', 'command': '3'}
2019-06-04 11:09:45 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;00fd0f56;10;3;\r\n'
2019-06-04 11:09:45 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2019-06-04 11:09:50 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-06-04 11:09:50 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: 3 to Rflink device: newkaku_00fd0f56_10
2019-06-04 11:09:50 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '00fd0f56', 'switch': '10', 'command': '3'}
2019-06-04 11:09:50 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;00fd0f56;10;3;\r\n'
2019-06-04 11:09:50 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2019-06-04 11:09:55 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-06-04 11:10:02 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: off to Rflink device: newkaku_00fd0f56_10
2019-06-04 11:10:02 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '00fd0f56', 'switch': '10', 'command': 'off'}
2019-06-04 11:10:02 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;00fd0f56;10;off;\r\n'
2019-06-04 11:10:02 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2019-06-04 11:10:07 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-06-04 11:10: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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:10: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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received
2019-06-04 11:10: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 0x7f68943dc550>, Serial<id=0x7f6894b7f860, open=True>(port='/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5573632383935140B2C1-if00', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))>
  File "/usr/local/lib/python3.7/site-packages/rflink/protocol.py", line 46, in data_received

@olskar
Copy link
Contributor Author

olskar commented Jun 4, 2019

If I go to portainer and mark "home assistant" and "hassio_supervisor" and then press restart, I do not get any errors.

But if I restart home assistant from inside home assistant, I get the above errors.

So this seems to be a bug connected to hass.io somehow.

Don't know if we could tag someone that knows a lot about hass.io that perhaps can understand why this occurs?

@Sjeff
Copy link

Sjeff commented Jun 4, 2019

I tried the same as @olskar but that didn't work for me.
Receiving the same error and the light doesn't turn on or off.

My portainer install is a separate docker container not a hass.io addon.

@aequitas
Copy link
Contributor

aequitas commented Jun 5, 2019

@olskar I haven't been around much in the HA community lately so I don't know who currently is most knowledgeable about the hassio system. Maybe @balloob or @pvizeli know?

Correct me if I'm wrong, but what we know at the moment is its:

  • not rflink (version) specific, since not everyone using rflink (eg me) has issues, version of rflink has not changed recently
  • not HA version specific as downgrading from 0.93.1 to previously working 0.92.2 does not work for everyone
  • might be hassio specific, but we have one hassio on 165 working and one not, so it's not hassio version specific. But maybe related to how/when your hassio was setup?
  • seems related to how the container interacts with the serial device (technically the container only binds the serial device inside the container, so not much that could go wrong there).
  • running rflink outside of the HA container works and in some cases restores functionality inside the container

pvizeli pushed a commit that referenced this issue Jun 5, 2019
@IscreaMan
Copy link

IscreaMan commented Jun 12, 2019

I give up. Tried everythinh including clean Home Assistant instalation on a different machine. Is there any progress on solution? :)

This looks like similar problem 2 years ago: https://community.home-assistant.io/t/solved-rflink-flooding-the-log-file/18762

@olskar
Copy link
Contributor Author

olskar commented Jun 19, 2019

For some reason the method i used earlier (restart docker container) does not work any more, hopefully this bug can be fixed

olskar added a commit to olskar/home-assistant.github.io that referenced this issue Jun 29, 2019
Added information on workaround  if affected by bug  home-assistant/core#23942
@fleshinachair
Copy link

fleshinachair commented Jul 21, 2019

I'm getting this same issues and the workaround doesnt work for me. Running Hass.io latest on a Intel NUC. Is there any solution, my rflink devices no longer show and my log gets full of this kind of stuff:

2019-07-21 18:45:56 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~ �x��ff��f��~��`f��~����~`f�f�
2019-07-21 18:45:56 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data:  f����xx�~��ff�f����~�f�f昘�������
2019-07-21 18:45:59 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-07-21 18:46:04 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-07-21 18:46:09 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-07-21 18:46:13 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~ ����f����
2019-07-21 18:46:13 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ��~f~f�~��`f����~�x��fff� f����������
2019-07-21 18:46:13 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ff�f��`�~怘�
2019-07-21 18:46:14 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-07-21 18:46:19 WARNING (MainThread) [rflink.protocol] acknowledge timeout
2019-07-21 18:46:23 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: ���~ ��~�f���f���~
2019-07-21 18:46:23 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data:  f�f���~��`f����f�`�~�ff��`f��������~�f
2019-07-21 18:46:23 WARNING (MainThread) [rflink.protocol] Error during decode of data, invalid data: �`f������������ff����~怘�

@matthewharrington
Copy link

Same issue here. Only started with upgrade to 0.96.4. Garbage serial data as per others here.

@matthewharrington
Copy link

I have also tried the workaround with ser2net and am still getting errors.

@fleshinachair
Copy link

it's only started happening in the last couple of weeks for me and I always update to latest release. Worked flawlessly before that.

@matthewharrington
Copy link

So, I have managed to get this going with a workaround.
I am running the Rflink using Ser2Net as per the instructions halfway through this thread. Any restart of Home Assistant causes corrupted data from the RFlink.
I can get the rflink running after a restart of Hassio by stopping the Ser2Net service and then starting it again after Home Assistant is running. Once the service is restarted it runs fine until the next HASSIO restart. In my case it ran for a week without issue until I had to restart Home Assistant. It seems to be something to do with the RFLink data coming into Hassio before it starts.

I hope this helps someone. Cheers, Matt

@olskar
Copy link
Contributor Author

olskar commented Aug 23, 2019

Recently i got this only on restart, now it can occur suddenly, anyone able to confirm that? This on 0.97.2

@olskar
Copy link
Contributor Author

olskar commented Aug 27, 2019

I tried today to install home assistant in docker using these instructions:
https://www.home-assistant.io/docs/installation/docker/

The bug is not present in that installation.

So i guess somehow it has to be related to hass.io?

@RoosterX
Copy link

Same problems here with running Hassio in docker under Ubuntu server, rflink is unusable. I'm running Ubuntu on my esxi server, with passthrough to my usb card. Evereything else usb seem to work.

@matthewharrington
Copy link

No Python skills here at all but I think the ability to either delay the start of this component when HASSIO starts or restarts will work around the problem. Is it possible to add a start delay to a component? This issue only occurs on a HASSIO restart and stopping the serial flow and restarting once HASSIO results in normal behavior.

@RoosterX
Copy link

I new to this docker way of doing things, so could it be a user error? In my installation I didn't setup a docker compose or similar to expose the different ports, since all ports seems to automatically show up under hardware in hass.io, could this be the problem I am seeing?

@matthewharrington
Copy link

No. It's an error that appeared reasonably recently with an upgrade of HASSIO. I am running SER2NET and when I restart my Home Assistant instance the corrupted data issue appears. Restarting the ser2net service resolves the issue.

@RoosterX
Copy link

Yes I discovered the same thing(after reading here about ser2net).

@olskar
Copy link
Contributor Author

olskar commented Sep 1, 2019

Same problems here with running Hassio in docker under Ubuntu server, rflink is unusable. I'm running Ubuntu on my esxi server, with passthrough to my usb card. Evereything else usb seem to work.

@RoosterX Is it possible for you to try the same thing as I did? E.g install home assistant in docker using these instructions and see if rflink works for you then?
https://www.home-assistant.io/docs/installation/docker/

No need to remove your original hass.io docker container, just stop it while testing out this one

@olskar
Copy link
Contributor Author

olskar commented Sep 1, 2019

@matthewharrington What setup are you using? hass.io or hassos? RPI or other? Docker?

@matthewharrington
Copy link

Hassio for me here. Running on Ubuntu VM. I swapped to Ser2Net rather than the native rflink Home Assistant Component so I could restart Ser2Net as required to work around the corruption issue.

@RoosterX
Copy link

RoosterX commented Sep 2, 2019

Same problems here with running Hassio in docker under Ubuntu server, rflink is unusable. I'm running Ubuntu on my esxi server, with passthrough to my usb card. Evereything else usb seem to work.

@RoosterX Is it possible for you to try the same thing as I did? E.g install home assistant in docker using these instructions and see if rflink works for you then?
https://www.home-assistant.io/docs/installation/docker/

No need to remove your original hass.io docker container, just stop it while testing out this one

I'm using this https://www.home-assistant.io/hassio/installation/#alternative-install-on-a-generic-linux-host

I am not sure how to use the instruction in your link?

@olskar
Copy link
Contributor Author

olskar commented Sep 12, 2019

Could anyone having this problem with Ubuntu try the following and see if it helps?

Without the NetworkManager, you will be not able to control your host network setup over the UI. The modemmanager package will interfere with any Z-Wave or Zigbee stick and should be removed or disabled. Failure to do so will result in random failures of those integrations. For example you can disable with sudo systemctl disable ModemManager and remove with sudo apt-get purge modemmanager

@matthewharrington
Copy link

I have just removed ModemManager and this seems to have sorted the issue for me. A single restart and rflink came up normally. Fingers crossed. Well done @olskar !

@fleshinachair
Copy link

Wow I will try this tonight. Would this solve issues I'm having with Bluetooth components which also stopped working from my NUC hassio recently? (e.g. miflora)

@IscreaMan
Copy link

IscreaMan commented Sep 12, 2019 via email

@bendikrb
Copy link
Contributor

I can confirm that this solves the issue here as well (gone through a couple of docker container restarts, and one cold boot of the host itself). Great! 👍

@olskar
Copy link
Contributor Author

olskar commented Sep 12, 2019

Great, closing this then!

@menaibluey
Copy link

Hi,

I continue to have this issue. This is definitely a HA issue as RFLink works fine outside HA using RFLinkLoader. I've documented the issue at https://community.home-assistant.io/t/2020-12-7-broke-rflink/259571. This stopped working when I've upgraded from from 0.98 to a 2020.12.xx HA version. I'm running Hassio on a PI4 so the modemmanager workaround reported above does not work for me. Can anyone help please?

@WaaZaa666
Copy link

I actually have the same issue and cannot figure out what is causing this.

I have done a brandnew hassos via proxmox installation on an Intel NUC 2 weeks ago, but getting the same messages. Moving back to my 'old' installation using a simple docker installation on a Synology NAS works fine. I'll post in the forumtopic as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests