yano@haswell:~$ sudo apt install python3 python3-pip
yano@haswell:~$ python3 -m pip install tinytuya
yano@haswell:~$ python3 -m tinytuya scan
TinyTuya (Tuya device scanner) [1.7.2]
Scanning on UDP ports 6666 and 6667 for devices (15 retries)...
Unknown v3.3 Device Product ID = keyneruwsdethu7u [Valid payload]:
Address = 172.16.NN.MM, Device ID = 1826182870039fXXXXXX, Local Key = , Version = 3.3, MAC =
No Stats for 172.16.NN.MM: DEVICE KEY required to poll for status
Unknown v3.3 Device Product ID = keyneruwsdethu7u [Valid payload]:
Address = 172.16.NN.MM, Device ID = 18261828c4dd57XXXXXX, Local Key = , Version = 3.3, MAC =
No Stats for 172.16.NN.MM: DEVICE KEY required to poll for status
Scan Complete! Found 2 devices.
>> Saving device snapshot data to snapshot.json
yano@haswell:~$
yano@Focal:/iot/tuya$ tuya-cli wizard
? The API key from tuya.com: acvwuxxknsXXXXXXXXX
? The API secret from tuya.com 3b81eb715f334YYYYYYY
? Provide a ‘virtual ID’ of a device currently registered in the app: 18261828c4dd5713b47b
[ { name: ‘Gosund_Plug1’,
id: ‘18261828c4ddXXXXXXXX’,
key: ‘7e5f08baYYYYYYYY’ },
{ name: ‘Gosund_Plug2’,
id: ‘182618287003XXXXXXXX’,
key: ‘294924a4YYYYYYYY’ } ]
yano@Focal:/iot/tuya$