Fix subdevice control for protocol versions 3.4 (and above) as well as 3.3 (and below?). 3.3 Fix needs a better solution - more research needed to understand why (and if it works) without this hack in tinytuya or other localtuya forks.
This should fix #81 #80 #77 #70
Technical changes:
remove gwId, devId, uid from payload for subdevices (devId causes the device to ignore the command, but removing all)
add cid to data field in payload and ensure it's not lost when adding the actual dps data
Fix subdevice control for protocol versions 3.4 (and above) as well as 3.3 (and below?). 3.3 Fix needs a better solution - more research needed to understand why (and if it works) without this hack in tinytuya or other localtuya forks.
This should fix #81 #80 #77 #70
Technical changes:
gwId
,devId
,uid
from payload for subdevices (devId
causes the device to ignore the command, but removing all)cid
todata
field in payload and ensure it's not lost when adding the actual dps data