TuyaAPI / cli

🔧 A CLI for Tuya devices
MIT License
266 stars 43 forks source link

Set command doesn't do anything #15

Closed jruth85 closed 5 years ago

jruth85 commented 5 years ago

Hello, Thank you for your work on this. I have set this up and I'm able to get the devices status but when I try to set anything nothing happens. I'll execute the command and then... nothing. No error, no acknowledgment, nothing. I don't know what's going on. Here's the command I'm running and also a wireshark capture of the traffic to and from the device.

[jruth@localhost tuyapi]$ tuya-cli get --ip 10.0.0.225 --id 0320026868c63ac1b6fc --key KhmRHEepuxV8ALfR -a
{ devId: '0320026868c63ac1b6fc',
  dps:
   { '1': true,
     '2': 'white',
     '3': 140,
     '4': 113,
     '5': '008c000078ff8c',
     '6': '00ff0000000000',
     '7': 'ffff320100ff00',
     '8': 'ffff8003ff000000ff000000ff000000000000000000',
     '9': 'ffff5001ff0000',
     '10': 'ffff0505ff000000ff00ffff00ff00ff0000ff000000' } }
[jruth@localhost tuyapi]$ tuya-cli set --ip 10.0.0.225 --id 0320026868c63ac1b6fc --key KhmRHEepuxV8ALfR --dps 1 --set false

Any help is appreciated.

tuya-cli_dump.zip

codetheweb commented 5 years ago

Took a quick look and it appears TuyAPI sends the packet for the set command, but the device never responds.

This may be related to the changes in firmware version v2 that Tuya has been rolling out, expect to see TuyAPI working with the new version hopefully within the next month or so.

What does the app report the firmware version to be?

jruth85 commented 5 years ago

Aha. It looks like I have version 1.2.1 on the bulb I tried. I have a different one that's reporting version 1.0.4. I'll see if that one responds.

codetheweb commented 5 years ago

Closing this because of inactivity, feel free to reopen if you still have issues.