core: RFLink, UnicodeDecodeError: 'utf-8'
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:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 52 (23 by maintainers)
Commits related to this issue
- Upgrade to newer version of rflink with improve error handling on incoming data. Related: https://github.com/home-assistant/home-assistant/issues/23942 — committed to aequitas/home-assistant by deleted user 5 years ago
- Upgrade to newer version of rflink with improve error handling on incoming data. Related: https://github.com/home-assistant/home-assistant/issues/23942 — committed to aequitas/home-assistant by deleted user 5 years ago
- Upgrade to newer version of rflink with improve error handling on incoming data. (#24263) Related: https://github.com/home-assistant/home-assistant/issues/23942 — committed to home-assistant/core by deleted user 5 years ago
- Added information on workaround Added information on workaround if affected by bug https://github.com/home-assistant/home-assistant/issues/23942 — committed to olskar/home-assistant.github.io by olskar 5 years ago
Could anyone having this problem with Ubuntu try the following and see if it helps?
Hi Guy’s,
I have a workaround for you thats fixed the RFLink issues for me. This workaround has been rock solid for me. Maybe it can help someone else too.
rflink: host: [IP-Address of the host where ser2net is running] port: 1234 wait_for_ack: false
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.