ShellyForHASS: [BUG] Error receive CoAP in HA 0.113.0
Environment
- ShellyForHASS release with the issue: 0.1.9
- Last working ShellyForHASS release (if known): 0.1.8
- Home Assistant Core release with the issue: Home Assistant 0.113.0
- Operating environment (Home Assistant/Supervised/Docker/venv): Supervised
Describe the bug
Error in HA Logs.
Steps to Reproduce
HA 0.113.0 with Shellyforhass. Show in logs after reboot.
Expected behavior
No error should occour.
Screenshots

Traceback/Error logs
Logger: pyShelly
Source: /usr/local/lib/python3.8/site-packages/pyShelly/coap.py:191
First occurred: 4:14:32 (1 occurrences)
Last logged: 4:14:32
Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 172, in _loop
payload = s(data[pos + 1:])
File "/usr/local/lib/python3.8/site-packages/pyShelly/compat.py", line 23, in s
return str(x, 'cp1252')
File "/usr/local/lib/python3.8/encodings/cp1252.py", line 15, in decode
return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 244: character maps to <undefined>
Additional context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 49 (14 by maintainers)
@PabloTheNinja Which FW version of shelly? If 1.8 please check https://github.com/StyraHem/ShellyForHASS/issues/366.
Long story short… there is no support for FW 1.8 at the moment. The devs are working hard on it.
I can confirm that it works with the latest beta version and fw 1.8
Mine looks like yours @chemelli74. But now I‘ve to wait until next error.