tixi / Domoticz-Tuya-SmartPlug-Plugin

Domoticz Python Plugin for Tuya Smart Plug
MIT License
23 stars 24 forks source link

DPS 101 not recognized. #8

Closed dorenberg closed 5 years ago

dorenberg commented 5 years ago

Strange issue. Got the device ID and local ID. See the device in domoticz. But when trying to switch, only the colour of the LED goes off.

Plug State Information: {'devId': '12716401807d3a7b5c6b', 'dps': {'6': '00ff0000000000', '4': 255, '106' : 2272, '101': True, '1': True, '2': 'colour', '10': 'ffff0505ff000000ff00ffff00 ff00ff0000ff000000', '7': 'ffff500100ff00', '104': 0, '9': 'ffff5001ff0000', '8' : 'ffff8003ff000000ff000000ff000000000000000000', '3': 180, '5': '171918009c1919 ', '105': 0}}

This is what I see in domoticz. DPS 1 only shuts the LED off, but not the plug. DPS 101 is also in the list, but does nothing. Confused here. The device is lonsonho power plug from ali with power measurement.

with the turnoff.py and turnon.py I can seem to switch it with the DPS 101, but not in domoticz

dorenberg commented 5 years ago

my own fault. Needed to re-add device with dps 101.