Learn how to easily get your Tuya device's Local Key for Home Assistant.
If you use Home Assistant and want to connect your Tuya-managed IoT devices, you’ll need the Local Key for each device. While retrieving it involves a few steps, it’s straightforward once you know the process. Here’s a step-by-step guide.
Before anything else, make sure your device is paired with the Tuya Smart App:
Next, you’ll need a Tuya Developer account:
To access your devices in the developer portal, you need to connect your regular Tuya account:
Once linked, your devices will show up in the developer portal.
Now you can find the Local Key for your device:
That’s it! With the Local Key, you can now integrate your Tuya devices into Home Assistant and control them locally.