Re: [REQUEST] Plugin for Tuya
Posted: Sunday 28 July 2019 19:30
I'm trying to configure a teckin sp22 plug but I get this message:
pi@domoticz:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ ./get_dps.py 192.168.0.171 60417563840d8e68fe98
Unexpected status() payload=b'3.3\x00\x00\x00\x00\x00\x00\x9d\xa4\x00\x00\x00\x01N\xcc\x8f\xb0>@,B=\xbe\xe9 \xcf\xd2\x8f\\M\xce\xd4)U\xbe\xdb#x\x8dIF_\xd989\xc6\xd7x\x90\x00\xa8\xfa\xaf\x7f\xfb\xb0\x9a(\xf3\xa0\xb5\xad\x82\xd6\x06-\xa6)M\xcb\xffL\xf1u\x0cm\xf5\n\xeb\x8d\x94F\xd0\x8a\x9a\x1b\\^\xd2\x02\xe1\r\xea\xb1r\x08\x12}\xa0\xe5y3\xe9P\x07\x8f\xa5\xc0\xc3'
Plug State Information:
b'3.3\x00\x00\x00\x00\x00\x00\x9d\xa4\x00\x00\x00\x01N\xcc\x8f\xb0>@,B=\xbe\xe9 \xcf\xd2\x8f\\M\xce\xd4)U\xbe\xdb#x\x8dIF_\xd989\xc6\xd7x\x90\x00\xa8\xfa\xaf\x7f\xfb\xb0\x9a(\xf3\xa0\xb5\xad\x82\xd6\x06-\xa6)M\xcb\xffL\xf1u\x0cm\xf5\n\xeb\x8d\x94F\xd0\x8a\x9a\x1b\\^\xd2\x02\xe1\r\xea\xb1r\x08\x12}\xa0\xe5y3\xe9P\x07\x8f\xa5\xc0\xc3'
Plug DPS List:
Traceback (most recent call last):
File "./get_dps.py", line 58, in <module>
for key in data['dps'].keys():
TypeError: byte indices must be integers or slices, not str
I've got some more configured(not this model) and not had had any problems
Any suggest ?
pi@domoticz:~/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin $ ./get_dps.py 192.168.0.171 60417563840d8e68fe98
Unexpected status() payload=b'3.3\x00\x00\x00\x00\x00\x00\x9d\xa4\x00\x00\x00\x01N\xcc\x8f\xb0>@,B=\xbe\xe9 \xcf\xd2\x8f\\M\xce\xd4)U\xbe\xdb#x\x8dIF_\xd989\xc6\xd7x\x90\x00\xa8\xfa\xaf\x7f\xfb\xb0\x9a(\xf3\xa0\xb5\xad\x82\xd6\x06-\xa6)M\xcb\xffL\xf1u\x0cm\xf5\n\xeb\x8d\x94F\xd0\x8a\x9a\x1b\\^\xd2\x02\xe1\r\xea\xb1r\x08\x12}\xa0\xe5y3\xe9P\x07\x8f\xa5\xc0\xc3'
Plug State Information:
b'3.3\x00\x00\x00\x00\x00\x00\x9d\xa4\x00\x00\x00\x01N\xcc\x8f\xb0>@,B=\xbe\xe9 \xcf\xd2\x8f\\M\xce\xd4)U\xbe\xdb#x\x8dIF_\xd989\xc6\xd7x\x90\x00\xa8\xfa\xaf\x7f\xfb\xb0\x9a(\xf3\xa0\xb5\xad\x82\xd6\x06-\xa6)M\xcb\xffL\xf1u\x0cm\xf5\n\xeb\x8d\x94F\xd0\x8a\x9a\x1b\\^\xd2\x02\xe1\r\xea\xb1r\x08\x12}\xa0\xe5y3\xe9P\x07\x8f\xa5\xc0\xc3'
Plug DPS List:
Traceback (most recent call last):
File "./get_dps.py", line 58, in <module>
for key in data['dps'].keys():
TypeError: byte indices must be integers or slices, not str
I've got some more configured(not this model) and not had had any problems
Any suggest ?