codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.04k stars 332 forks source link

virtual ID #645

Open icherfas opened 4 months ago

icherfas commented 4 months ago

might be a fulish question but anyway, when I run the tuya-cli wizard I'm expected to provide a 'virtual ID of a device' what is the virtual ID? is that the device ID listed in the iot.tuya.com under my devices in the project? I hav etried to enteer both real device ID and also to createa virtual device and provide his ID. in both cases I got:

There was an issue fetching that device. Make sure your account is linked and the ID is correct.

thanks in advance!

andyli commented 2 months ago

I found "virtual ID" in my "Smart Life" Android app, in the "Device Information" page. Screenshot_20240405-170411_Smart Life

Apparently, "virtual ID" is the same as "Device ID" as listed in iot.tuya.com.

tuya-cli wizard successfully returned the device info after I provided that "virtual ID".