rospogrigio / localtuya

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

Using Tuya's new API, tuya-device-sharing #1670

Open MusiCode1 opened 4 months ago

MusiCode1 commented 4 months ago

Will this project move to use Tuya's newly published API, the TuyaDeviceSharing project that does not require a developer account to connect?

The official Tuya integration already uses it: https://www.home-assistant.io/integrations/tuya

This is the SDK: https://github.com/tuya/tuya-device-sharing-sdk

The official Tuya integration repo with an explanation of the difference between the connection options: https://github.com/tuya/tuya-smart-life

Doughboy68 commented 4 months ago

I believe those SDK still rely on cloud. localtuya controls directly using a localkey. Would be nice if they provided easy access to local key.

pdsccode commented 4 months ago

Not necessarily needed I think. Thanks to this German post who found a very easy way of gathering the local keys:

Read the local key (and the mappings) on the right.

SoniaMalki commented 3 months ago

I just tried the mentioned method to retrieve the local key. Unfortunately it require a valid subscription to launch...