StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
621 stars 112 forks source link

MQTT error message 0.2.1 #437

Open zsbobbob opened 4 years ago

zsbobbob commented 4 years ago

Environment

Describe the bug

I have some shelly 2.5 used for cover, which are not communicate with HA on COAP just with mqtt, I have no ide why, so I am connect them to shelly for hass via mqtt. After upgraded to 0.2.0 and after 0.2.1 beta I have mqtt error messages Make a brief description of the problem you are experiencing

Steps to Reproduce

Expected behavior

Screenshots

Traceback/Error logs

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 9:52:42 AM (4338 occurrences) Last logged: 4:37:39 PM

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 59, in _loop shelly_type, device_id = shelly_id.rsplit('-',1) ValueError: not enough values to unpack (expected 2, got 1)

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 9:54:07 AM (354 occurrences) Last logged: 4:37:36 PM

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 45, in _loop topic = data[2:2+topic_len].decode('ASCII') UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 18: ordinal not in range(128)

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 10:42:20 AM (199 occurrences) Last logged: 4:37:19 PM

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 58, in _loop shelly_id = topics[1] IndexError: list index out of range

Additional context

miljume commented 4 years ago

+1 I also experience this problem

hakana commented 4 years ago

Did you update the firmware also when got these errors?

zsbobbob commented 4 years ago

Yes, Shelly devices on 1.8.3 firmware

miljume commented 3 years ago

I have the same issue with 0.2.2 beta 1 Running 1.9.3 on my D/W sensors and 2021.1.4

Henry-Sir commented 3 years ago

I have the same issues:

Environment

Describe the bug

All my Shelly connect with CoAP-msg, poll, MQTT-data, MQTT-discovery.

Error logs

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 13. Februar 2021, 16:18:27 (3250 occurrences) Last logged: 11:37:09

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 59, in _loop shelly_type, device_id = shelly_id.rsplit('-',1) ValueError: not enough values to unpack (expected 2, got 1)

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 13. Februar 2021, 16:22:38 (94 occurrences) Last logged: 11:34:03

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 58, in _loop shelly_id = topics[1] IndexError: list index out of range

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 13. Februar 2021, 16:54:18 (28 occurrences) Last logged: 11:15:12

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 45, in _loop topic = data[2:2+topic_len].decode('ASCII') UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 19: ordinal not in range(128)

Logger: pyShelly Source: /usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py:69 First occurred: 13. Februar 2021, 21:37:54 (12 occurrences) Last logged: 06:35:26

Error receiving MQTT message Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyShelly/mqtt.py", line 25, in _loop head = self._connection.recv(1) ConnectionResetError: [Errno 104] Connection reset by peer