rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.71k stars 530 forks source link

Readme update #1522

Open LinuxEverywhere opened 8 months ago

LinuxEverywhere commented 8 months ago

When trying to covert from a working tuya config to a localtuya config, the readme is unclear setting up the tuya cloud api.

Under the tuya app the 4 authorizations are: ​the tuya cloud Access ID/Client ID and Access Secret/Client Secret, the smartlife user id and password. This works as expected and the tuya devices are discovered by homeassistant with no issues.

Under the localtuya instructions, if I use the smartlife account info I get a 'permission denied' (1006) error. This could be that the us has both east and west data centers. my Tuya account happens to be the west us data center.

If I try to add the devices manually , where can I find the device local Key*? The readme is blank on getting these keys.

Forge36 commented 8 months ago

The API is called Query device details in bulk Available in https://us.iot.tuya.com/cloud/explorer

You need to specify the device ID available under https://us.iot.tuya.com/cloud/basic in the devices tab.