Error in HA Logs.
HA 0.113.0 with Shellyforhass. Show in logs after reboot.
No error should occour.

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
-
Got the same issue.
Logger: pyShelly
Source: /usr/local/lib/python3.8/site-packages/pyShelly/coap.py:191
First occurred: 17:03:47 (1 occurrences)
Last logged: 17:03:47
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 0x81 in position 177: character maps to <undefined>
@xaavian , are you suing supervised HA as well ?
I'm running core on docker and don't have this issue.
Simone
Yes I'm using supervised HA.
Xaavian
Asked to the discord community without any feedback. I don't know what can be different between HA core and supervised.
Simone
As I understand the error says he can't decode some of the CoAP message. So it shouldn't be a network issue.
So may it depends on which shelly device we are using?
In my network, I've following devices:
As the Dimmer 2 is a new devices... it is may this one that makes problems?
@xaavian do you also using Dimmer2? Which devices are you using?
Edit:
Added debug to configuration and now I'm waiting until it happens again.
In my network, there are:
I would vote for a race condition; I got it once as well:
2020-07-27 07:06:15 ERROR (CoAP) [pyShelly] 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 0x8f in position 779: character maps to <undefined>
Simone
@chemelli74 I also only get this some times... last time 4:14 in the morning. So nobody did something at this time. No change over HA or at switch.
Running in the error again and I got the debug log to this time... it is huge (around 190MB). So I just put out the second the error occours. If this isn't enought... let me know.
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.14 b'P\x1e\x14\xaa\xb3cit\x01s\xed\x0b\xec\x03SHSW-25#FXXX72#1\xd2C\x96\x00\x82.0\xff{"G":[[0,112,0],[0,122,0],[0,113,100],[0,111,0.000000],[0,121,0.000000],[0,118,0],[0,128,1],[0,115,61.63],[0,116,142.93],[0,117,0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,517],[0,221,0.000],[0,222,0.000],[0,223,0.000],[0,224,487]]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 30 10.20.30.14 bytearray(b'P\x1e\x14\xaa\xb3cit\x01s\xed\x0b\xec\x03SHSW-25#FXXX72#1\xd2C\x96\x00\x82.0\xff{"G":[[0,112,0],[0,122,0],[0,113,100],[0,111,0.000000],[0,121,0.000000],[0,118,0],[0,128,1],[0,115,61.63],[0,116,142.93],[0,117,0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,517],[0,221,0.000],[0,222,0.000],[0,223,0.000],[0,224,487]]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHSW-25, Id FXXX72, Payload *{"G":[[0,112,0],[0,122,0],[0,113,100],[0,111,0.000000],[0,121,0.000000],[0,118,0],[0,128,1],[0,115,61.63],[0,116,142.93],[0,117,0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,517],[0,221,0.000],[0,222,0.000],[0,223,0.000],[0,224,487]]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:FXXX72 state:True stateValue:None values:None info_values:{'current_consumption': 0.0}
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:FXXX72-1 state:0.0 stateValue:None values:None info_values:{'total_consumption': 17}
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:FXXX72-1 state:False stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:None
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:FXXX72-2 state:True stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:None
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] IGMP fix
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.16 b'P\x1ePN\xb3cit\x01s\xed\x0b\xec\x03SHSW-25#F34XXX#1\xd2C\x96\x00\x82\xf9\x12\xff{"G":[[0,112,0],[0,122,0],[0,113,100],[0,111,0.000000],[0,121,0.000000],[0,118,0],[0,128,1],[0,115,62.94],[0,116,145.30],[0,117,0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,187],[0,221,0.000],[0,222,0.000],[0,223,0.000],[0,224,89]]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 30 10.20.30.16 bytearray(b'P\x1ePN\xb3cit\x01s\xed\x0b\xec\x03SHSW-25#F34XXX#1\xd2C\x96\x00\x82\xf9\x12\xff{"G":[[0,112,0],[0,122,0],[0,113,100],[0,111,0.000000],[0,121,0.000000],[0,118,0],[0,128,1],[0,115,62.94],[0,116,145.30],[0,117,0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,187],[0,221,0.000],[0,222,0.000],[0,223,0.000],[0,224,89]]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHSW-25, Id F34XXX, Payload *{"G":[[0,112,0],[0,122,0],[0,113,100],[0,111,0.000000],[0,121,0.000000],[0,118,0],[0,128,1],[0,115,62.94],[0,116,145.30],[0,117,0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,187],[0,221,0.000],[0,222,0.000],[0,223,0.000],[0,224,89]]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:F34XXX state:True stateValue:None values:None info_values:{'current_consumption': 0.0}
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:F34XXX-1 state:0.0 stateValue:None values:None info_values:{'total_consumption': 5}
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:F34XXX-1 state:False stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:None
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] Update id:F34XXX-2 state:True stateValue:{'last_event': '', 'event_cnt': 0} values:None info_values:None
2020-07-27 14:37:54 DEBUG (Poll) [pyShelly] Sending CoAP discover UDP
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.230 b'P\x01\x00\n\xb3cit\x01d\xff'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 1 10.20.30.230 bytearray(b'P\x01\x00\n\xb3cit\x01d\xff')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.36 b'PE\x00\n\xed\x0b\xf7\x08SHSW-1#8CAAB50XXXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.36 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHSW-1#8CAAB50XXXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-1, Id 8CAAB50XXXXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.11 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F40XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.11 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F40XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id F40XXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.13 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F3XXXB#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.13 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F3XXXB#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id F3XXXB, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.14 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#FXXX72#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.14 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#FXXX72#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id FXXX72, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.18 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#XXXA9F#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.18 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#XXXA9F#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id XXXA9F, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.12 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F35XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.12 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F35XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id F35XXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.10 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#694XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.10 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#694XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id 694XXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.37 b'PE\x00\n\xed\x0b\xf7\x08SHSW-1#98F4ABFXXXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.37 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHSW-1#98F4ABFXXXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-1, Id 98F4ABFXXXXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.35 b'PE\x00\n\xed\x0b\xf7\x03SHSW-PM#C45XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":111,"T":"P","D":"Power","R":"0/3500","L":0},{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":113,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":114,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":115,"T":"S","D":"Overtemp","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.35 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-PM#C45XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":111,"T":"P","D":"Power","R":"0/3500","L":0},{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":113,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":114,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":115,"T":"S","D":"Overtemp","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-PM, Id C45XXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":111,"T":"P","D":"Power","R":"0/3500","L":0},{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":113,"T":"T","D":"TemperatureC","R":"-40/300","L":0},{"I":114,"T":"T","D":"TemperatureF","R":"-40/300","L":0},{"I":115,"T":"S","D":"Overtemp","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.34 b'PE\x00\n\xed\x0b\xf7\x03SHSW-PM#CXXX98#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":111,"T":"P","D":"Power","R":"0/3500","L":0},{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":113,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":114,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":115,"T":"S","D":"Overtemp","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.34 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-PM#CXXX98#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":111,"T":"P","D":"Power","R":"0/3500","L":0},{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":113,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":114,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":115,"T":"S","D":"Overtemp","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-PM, Id CXXX98, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":111,"T":"P","D":"Power","R":"0/3500","L":0},{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":113,"T":"T","D":"TemperatureC","R":"-40/300","L":0},{"I":114,"T":"T","D":"TemperatureF","R":"-40/300","L":0},{"I":115,"T":"S","D":"Overtemp","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.33 b'PE\x00\n\xed\x0b\xf7\x08SHDM-2#E098069XXXXX#1\xff{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":311,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":312,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.33 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHDM-2#E098069XXXXX#1\xff{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":311,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":312,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHDM-2, Id E098069XXXXX, Payload *{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":311,"T":"T","D":"TemperatureC","R":"-40/300","L":0},{"I":312,"T":"T","D":"TemperatureF","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.32 b'PE\x00\n\xed\x0b\xf7\x08SHDM-2#E098069XXXXX#1\xff{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":311,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":312,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.32 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHDM-2#E098069XXXXX#1\xff{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":311,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":312,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHDM-2, Id E098069XXXXX, Payload *{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":311,"T":"T","D":"TemperatureC","R":"-40/300","L":0},{"I":312,"T":"T","D":"TemperatureF","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.30 b'PE\x00\n\xed\x0b\xf7\x02SHSW-1#76EXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":119,"T":"T","D":"External temperature C","R":"-55/125","L":1}]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.30 bytearray(b'PE\x00\n\xed\x0b\xf7\x02SHSW-1#76EXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":119,"T":"T","D":"External temperature C","R":"-55/125","L":1}]}')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-1, Id 76EXXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":119,"T":"T","D":"ExternaltemperatureC","R":"-55/125","L":1}]}*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.31 b'PE\x00\n\xed\x0b\xf7\x02SHSW-1#B8EXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}P\x1e\x900\xb3cit\x01s\xed\x0b\xec\x02SHSW-1#B8EXXX#1\xd2C\x96\x00\x826\x00\xff{"G":[[0,112,0],[0,118,0]]}'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.31 bytearray(b'PE\x00\n\xed\x0b\xf7\x02SHSW-1#B8EXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0}]}P\x1e\x900\xb3cit\x01s\xed\x0b\xec\x02SHSW-1#B8EXXX#1\xd2C\x96\x00\x826\x00\xff{"G":[[0,112,0],[0,118,0]]}')
2020-07-27 14:37:54 ERROR (CoAP) [pyShelly] 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 0x90 in position 176: character maps to <undefined>
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.17 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#112XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.17 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#112XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id 112XXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.15 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#10AXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.15 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#10AXXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id 10AXXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 10.20.30.16 b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F34XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]'
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP msg: 69 10.20.30.16 bytearray(b'PE\x00\n\xed\x0b\xf7\x03SHSW-25#F34XXX#1\xff{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"Temperature C","R":"-40/300","L":2},{"I":116,"T":"T","D":"Temperature F","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":221,"T":"S","D":"Energy counter 0 [W-min]","L":1},{"I":222,"T":"S","D":"Energy counter 1 [W-min]","L":1},{"I":223,"T":"S","D":"Energy counter 2 [W-min]')
2020-07-27 14:37:54 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHSW-25, Id F34XXX, Payload *{"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Relay1"},{"I":2,"D":"Device"}],"sen":[{"I":112,"T":"S","D":"State","R":"0/1","L":0},{"I":122,"T":"S","D":"State","R":"0/1","L":1},{"I":113,"T":"S","D":"Position","R":"0/100","L":2},{"I":111,"T":"P","D":"Power","R":"0/2300","L":0},{"I":121,"T":"P","D":"Power","R":"0/2300","L":1},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":128,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":1},{"I":115,"T":"T","D":"TemperatureC","R":"-40/300","L":2},{"I":116,"T":"T","D":"TemperatureF","R":"-40/300","L":2},{"I":117,"T":"S","D":"Overtemp","R":"0/1","L":2},{"I":211,"T":"S","D":"Energycounter0[W-min]","L":0},{"I":212,"T":"S","D":"Energycounter1[W-min]","L":0},{"I":213,"T":"S","D":"Energycounter2[W-min]","L":0},{"I":214,"T":"S","D":"Energycountertotal[W-min]","L":0},{"I":221,"T":"S","D":"Energycounter0[W-min]","L":1},{"I":222,"T":"S","D":"Energycounter1[W-min]","L":1},{"I":223,"T":"S","D":"Energycounter2[W-min]*
Be aware that IP addresses and Shelly IDs are anonymized.
Error in HA GUI at this time:

I hope this helps. Let me know if more logs (at other timerange) is needed.
I'm getting the same error as well....
Logger: pyShelly
Source: /usr/local/lib/python3.8/site-packages/pyShelly/coap.py:191
First occurred: July 27, 2020, 7:14:49 PM (6 occurrences)
Last logged: 10:51:46 AM
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 0x81 in position 176: character maps to <undefined>
Can you please edit "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py" and change:
payload = s(data[pos + 1:])
with
LOGGER.warning("payload = <%s>", data[pos + 1:])
payload = s(data[pos + 1:])
Restart and post log when the issue shows up.
Simone
This is the output before the error occurs. (No errors yet)
This is filling up the log rather quickly....
Will post another log once the error shows up
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for shelly which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for monitor_docker which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartir which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for var which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for simpleicons which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meteo-swiss which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:34 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for dualmode_generic which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-07-28 15:21:35 INFO (MainThread) [custom_components.shelly] Starting shelly, 0.1
2020-07-28 15:21:35 INFO (MainThread) [custom_components.shelly] pyShelly, 0.1.33
2020-07-28 15:21:36 INFO (SyncWorker_0) [plexapi] Testing 2 resource connections..
2020-07-28 15:21:36 INFO (SyncWorker_0) [plexapi] Resource connection OK (0s): http://192.168.178.25:32500?X-Plex-Token=None
2020-07-28 15:21:36 INFO (SyncWorker_0) [plexapi] Resource connection OK (0s): http://192.168.178.25:32500?X-Plex-Token=None
2020-07-28 15:21:36 INFO (SyncWorker_0) [plexapi] Connecting to Resource: http://192.168.178.25:32500?X-Plex-Token=None
2020-07-28 15:21:45 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:45 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:45 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:45 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:45 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:45 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:46 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:48 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:52 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:56 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:56 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:57 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:57 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:21:59 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:22:00 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:22:03 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:22:07 WARNING (CoAP) [pyShelly] payload = <123>
I did it too... will wait for the issue now.
2020-07-28 15:22:03 WARNING (CoAP) [pyShelly] payload = <123>
2020-07-28 15:22:07 WARNING (CoAP) [pyShelly] payload = <123>
Interesting, my log looks like this:
2020-07-28 16:57:33 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,111,0.00],[0,112,0],[0,113,47.31],[0,114,117.17],[0,115,0],[0,118,1],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,3969]]}')>
Simone
Mine looks like yours @chemelli74. But now I‘ve to wait until next error.
Good Morning
So... error occoured this night again at 04:54 in the morning as everyone was sleeping :)
Got the whole log but looks like the issue is with x9d in the string... and this is the message directly followed by the error message.
If more output from log is desired, just let me know.
2020-07-29 04:54:36 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"blk":[{"I":0,"D":"Dimmer"}],"sen":[{"I":111,"T":"S","D":"Brightness","R":"0/100","L":0},{"I":121,"T":"S","D":"State","R":"0/1","L":0},{"I":131,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":141,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":211,"T":"S","D":"Energy counter 0 [W-min]","L":0},{"I":212,"T":"S","D":"Energy counter 1 [W-min]","L":0},{"I":213,"T":"S","D":"Energy counter 2 [W-min]","L":0},{"I":214,"T":"S","D":"Energy counter total [W-min]","L":0},{"I":311,"T":"T","D":"Temperature C","R":"-40/300","L":0},{"I":312,"T":"T","D":"Temperature F","R":"-40/300","L":0},{"I":313,"T":"S","D":"Overtemp","R":"0/1","L":0}]}P\x1e\x9d\xae\xb3cit\x01s\xed\x0b\xec\x08SHDM-2#E098069XXXXX#1\xd2C\x96\x00\x82\xda2\xff{"G":[[0,111, 100],[0,121, 0],[0,131, 0],[0,141, 0],[0,211,0.000],[0,212,0.000],[0,213,0.000],[0,214,228],[0,311,46.32],[0,312,115.37],[0,313,0]]}')>
2020-07-29 04:54:36 ERROR (CoAP) [pyShelly] 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 0x9d in position 662: character maps to <undefined>
Same error with me:
ERROR (CoAP) [pyShelly] 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 0x8f in position 176: character maps to <undefined>
2020-07-29 04:54:36 WARNING (CoAP) [pyShelly] payload =
AS you can see there are 2 packets in the payload, this is the raeson behind the issue.
We need to understand why now.
Simone
Could this be a firmware issue? Firmware on my Dimmer2 is 20200716-100645/v1.7.6@4c90ce30 which is the latest available.
May we should wait until we know more about the upcoming CoAP change in firmware 1.8?
https://www.facebook.com/groups/ShellyIoTCommunitySupport/permalink/3002067616559249/
May we should wait until we know more about the upcoming CoAP change in firmware 1.8?
https://www.facebook.com/groups/ShellyIoTCommunitySupport/permalink/3002067616559249/
Issue is from socket, not from firmware.
We need to understand what goes wrong and allow 2 packets to be received.
Simone
Had the same error but after removing py_script integration from configuration the error disappeared.... Maybe is related?
Had the same error but after removing py_script integration from configuration the error disappeared.... Maybe is related?
Nope, is the socket code that does a bad decoding.
Happens on a packet every now and then, this is why is hard to debug.
Simone
Same error here. I only use a Shelly 1 in my integration.
Error occurs with firmware from May 2019 and also with actual one.
HA version is 0.114.0 via docker-compose
Shelly integration is version 0.1.9
Shelly firmware 1.8.0 (200812)
Same error here. I only use a Shelly 1 in my integration.
Error occurs with firmware from May 2019 and also with actual one.
HA version is 0.114.0 via docker-compose
Shelly integration is version 0.1.9
Shelly firmware 1.8.0 (200812)
Please post an updated log of the issue with firmware 1.8 after you updated code as per https://github.com/StyraHem/ShellyForHASS/issues/354#issuecomment-665020997
Simone
Linked to Unicode Decode Error when accessing /settings
Simone
Hello, I have updated HA to 114 and all my 5 shelly 2.5 to latest firmware and now I can't use them anymore from HA. I have the error below in the log. I don't know if it's the firmware issues or HA.
Logger: pyShelly
Source: /usr/local/lib/python3.8/site-packages/pyShelly/coap.py:191
First occurred: August 15, 2020, 5:08:25 PM (54336 occurrences)
Last logged: 2:19:46 PM
Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 182, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/switch.py", line 46, in update
self._update(state > 0, {'last_event' : self.last_event,
TypeError: '>' not supported between instances of 'NoneType' and 'int'
Please post an updated log of the issue with firmware 1.8 after you updated code as per #354 (comment)
Simone
I'm sorry, but HA runs in a Docker Compose environment in my case. I'm not able to change the systems python libs.
Please post an updated log of the issue with firmware 1.8 after you updated code as per #354 (comment)
SimoneI'm sorry, but HA runs in a Docker Compose environment in my case. I'm not able to change the systems python libs.
If you want, you can ;-)
Simone
If you want, you can ;-)
- docker exec -it "container name" bash
- cd /usr/local/lib/python3.8/site-packages/pyShelly
- vi coap.py
- exit
Simone
2020-08-17 14:07:05 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"blk":[{"I":1,"D":"relay_0"},{"I":2,"D":"sensor_0"},{"I":3,"D":"sensor_1"},{"I":4,"D":"sensor_2"},{"I":5,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":5},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":2101,"T":"S","D":"input","R":"0/1","L":1},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3101,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":2},{"I":3102,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":2},{"I":3201,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":3},{"I":3202,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":3},{"I":3301,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":4},{"I":3302,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":4},{"I":3103,"T":"H","D":"humidity","R":["0/100","999"],"L":2}]}')>
homeassistant | 2020-08-17 14:07:05 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,9103,1],[0,1101,0],[0,2101,0],[0,2102,""],[0,2103,0]]}')>
homeassistant | 2020-08-17 14:07:05 ERROR (CoAP) [pyShelly] Error receive CoAP
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 183, in _loop
homeassistant | self._root.update_block(device_id, device_type,
homeassistant | File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
homeassistant | block.update(data, ipaddr)
homeassistant | File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
homeassistant | dev.update(data)
homeassistant | File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 53, in update
homeassistant | self.info_values[INFO_VALUE_SWITCH] = switch_state > 0
I got the same error, but I get this error every 15th second. It kind of is filling up the logs rapidly :roll_eyes:...
I added the WARNING log as mentioned earlier...
This is a snippet from my log:
2020-08-17 20:35:30 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,9103,1],[0,1101,0],[0,1201,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,4101,0.00],[0,4103,342],[0,6109,0.00],[0,6102,0],[0,6202,0],[0,9101,"relay"]]}')>
2020-08-17 20:35:30 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 183, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 50, in update
self.info_values[INFO_VALUE_CURRENT_CONSUMPTION] = round(consumption)
TypeError: type NoneType doesn't define __round__ method
2020-08-17 20:35:45 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,9103,1],[0,1101,0],[0,1201,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,4101,0.00],[0,4103,342],[0,6109,0.00],[0,6102,0],[0,6202,0],[0,9101,"relay"]]}')>
2020-08-17 20:35:45 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 183, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 50, in update
self.info_values[INFO_VALUE_CURRENT_CONSUMPTION] = round(consumption)
TypeError: type NoneType doesn't define __round__ method
2020-08-17 20:36:00 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,9103,1],[0,1101,0],[0,1201,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,4101,0.00],[0,4103,342],[0,6109,0.00],[0,6102,0],[0,6202,0],[0,9101,"relay"]]}')>
2020-08-17 20:36:00 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 183, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 50, in update
self.info_values[INFO_VALUE_CURRENT_CONSUMPTION] = round(consumption)
TypeError: type NoneType doesn't define __round__ method
2020-08-17 20:36:15 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,9103,1],[0,1101,0],[0,1201,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,4101,0.00],[0,4103,342],[0,6109,0.00],[0,6102,0],[0,6202,0],[0,9101,"relay"]]}')>
2020-08-17 20:36:15 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 183, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 50, in update
self.info_values[INFO_VALUE_CURRENT_CONSUMPTION] = round(consumption)
TypeError: type NoneType doesn't define __round__ method
2020-08-17 20:36:30 WARNING (CoAP) [pyShelly] payload = <bytearray(b'{"G":[[0,9103,1],[0,1101,0],[0,1201,0],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,4101,0.00],[0,4103,342],[0,6109,0.00],[0,6102,0],[0,6202,0],[0,9101,"relay"]]}')>
2020-08-17 20:36:30 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 183, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 50, in update
self.info_values[INFO_VALUE_CURRENT_CONSUMPTION] = round(consumption)
TypeError: type NonieType doesn't define __round__ method
I home-assistant.log 718/718 100%
I got the same error, but I get this error every 15th second. It kind of is filling up the logs rapidly 🙄...
Your error is due to #366 not relate to this issue.
I'm going to hide the comment to avoid misunderstanding for others.
Simone
I got the same error, but I get this error every 15th second. It kind of is filling up the logs rapidly 🙄...
Your error is due to #366 not relate to this issue.
I'm going to hide the comment to avoid misunderstanding for others.Simone
Oh, sorry...
Since I just got the Shelly yesterday and only have a simple switch I just configured a rest switch instead in HASSIO for now as a work around.
Same error here with a variance in bold lines Shellys in use are (1xdimmer, 1 xshelly 1, Shelly button1, shelly RGBW bulb x 2 & 1 x shelly duo) all cloud connected on RPI4.
2020-08-19 17:03:27 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 182, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 53, in update
TypeError: '>' not supported between instances of 'NoneType' and 'int'
2020-08-19 17:03:31 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 182, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/switch.py", line 46, in update
self._update(state > 0, {'last_event' : self.last_event,
TypeError: '>' not supported between instances of 'NoneType' and 'int'
@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 also have an issue with shelly dimmers.
The sliders keep going to zero
,
Logger: pyShelly
Source: /usr/local/lib/python3.8/site-packages/pyShelly/coap.py:191
First occurred: 18:06:13 (3974 occurrences)
Last logged: 21:54:15
Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 182, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/switch.py", line 46, in update
self._update(state > 0, {'last_event' : self.last_event,
TypeError: '>' not supported between instances of 'NoneType' and 'int' `
‘
Hi, any news?
Hi, any news?
Do you still experience the issue with latest firmware 1.8 ?
Same here with fw 1.8
Same issue,
Shelly keeps disconnerting
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 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
Hi, I have the same issue:
2020-09-04 23:37:14 ERROR (CoAP) [pyShelly] Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 182, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 50, in update
self.info_values[INFO_VALUE_CURRENT_CONSUMPTION] = round(consumption)
TypeError: type NoneType doesn't define __round__ method
version | 0.114.4
host_os | Ubuntu 20.04.1 LTS
installation_type | Home Assistant Supervised
supervisor | 235
Firmware on shelly 1pm - Current version: 20200827-070450/v1.8.3@4a8bc427
Thanks in advance.
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
+1 👍✌
Still the same problems
http://nl.linkedin.com/pub/frank-tummers/79/66/30a/
Op 3 sep. 2020 om 10:09 heeft swissjon notifications@github.com het volgende geschreven:
I upgraded to the most recent 0.2.0 beta 5 and it seems to have fixed this error.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
same problem in 1.14.4 and addon 1.9
I have 4 Shellys, one Shelly 1 and 2.5 works normaly and one Shelly 1 and 2.5 is not working.
Logger: pyShelly
Source: /usr/local/lib/python3.8/site-packages/pyShelly/coap.py:191
First occurred: 01:27:22 (5824 occurrences)
Last logged: 13:36:40
Error receive CoAP
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyShelly/coap.py", line 182, in _loop
self._root.update_block(device_id, device_type,
File "/usr/local/lib/python3.8/site-packages/pyShelly/__init__.py", line 242, in update_block
block.update(data, ipaddr)
File "/usr/local/lib/python3.8/site-packages/pyShelly/block.py", line 92, in update
dev.update(data)
File "/usr/local/lib/python3.8/site-packages/pyShelly/relay.py", line 53, in update
self.info_values[INFO_VALUE_SWITCH] = switch_state > 0
TypeError: '>' not supported between instances of 'NoneType' and 'int'
latest 0.2.0 release fixed all my issues with "Error receive COAP" messages and lovelace cards not holding status and loss of info from em etc. and non functioning automations.
I'm running HA 0.114.4 and have Dimmers, S1s and EM.
Thanks for the update
Latest 0.2.0 release works for me too.
Thanks
Ok, I close this issue. Let me know if anyone still have problems?
Most helpful comment
@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.