question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Error receive CoAP in HA 0.113.0

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:49 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
vistalbacommented, Aug 19, 2020

@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.

2reactions
xaaviancommented, Sep 3, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FIRMWARE BUG] Shelly H&T CoAP-msg problem - Facebook
As discussed in the attached thread on ShellyForHASS group, it seems that in certain condition (like mine) Shelly H&T devices (powered in my ......
Read more >
homeassistant Changelog - PyUp.io
Fix getting updated thread IP at startup in homekit_controller (Jc2k - 83037) ... Add reauth flow to xiaomi_ble, fixes problem adding LYWSD03MMC (Jc2k ......
Read more >
download as TXT - DistroWatch.com
... aide^0.17.3-4 aiksaurus^1.2.1+dev-0.12-6.3 aiocoap^0.3-3.1 aiodns^2.0.0-1 aiodogstatsd^0.14.0-2 ... apertium-fr-es^0.9.2~r61322-4 apertium-get^1.0.0-2 ...
Read more >
Fedora rawhide compose report: 20210622.n.0 changes
... 35-10 - Obsolete perl-RDF-Trine-redland (bug #1973623) Package: ... implementation of CoAP RPMs: libcoap libcoap-devel libcoap-doc ...
Read more >
exact force field and bond inhomogene - Dyuthi
Chapter 11 deal. with the problem of deter- ... molecular spectroscopy ha. e.erged a. one of the most ... On solving the secular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found