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

image

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)

Most upvoted comments

@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 upgraded to the most recent 0.2.0 beta 5 and it seems to have fixed this error. Compatibility issue with the latest shelly firmware. Hopefully, the beta is stable enough for now. FYI: The facebook group seems to be a good place to monitor these issues.

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.