Thursday, July 10, 2025

How to connect Tuya device to Node-Red

Here is the process how to get Device ID and Local Key for Tuya device.   

  1. Create a Tuya Developer Account
    • Go to https://iot.tuya.com and register for a developer account. 
  2. Create a Cloud Project
  3. Link Tuya App Account
    • In your cloud project, navigate to the "Devices" tab and select "Link Tuya App Account." You'll typically scan a QR code with your Immax NEO PRO app (or Tuya Smart/Smart Life app) to authorize the link.
  4. Get Device ID
    • Once linked, your devices from the app should appear under the "Devices" tab in your cloud project. Note down the "Device ID" for each Tuya device you want to control. 
  5. Create API Subscription
    • Go to "Cloud" > "Cloud Services"
    • Subscribe to
      •  IoT Core Services
  6. Still within the "Cloud Services" section, after subscribing, click on "My Service"
    • For each of the services you just subscribed to, click "View Details"
    • Go to the "Authorized Projects" tab 
    • Ensure your specific cloud project is listed and authorized here. If not, you may need to click "Add Authorization" and select your project.
  7. Get Local Key
    • Go to "Cloud" -> "API Explorer."
    • Under "Smart Home Device Control" (or similar), look for an option like "Query Device Details in Bulk" or "Get Device Specification Attribute."
      • Device Management > Query Device Details 
    • Input your Device ID and submit the request.
      • The "Local Key" should be in the JSON response.

 

 

No comments:

Post a Comment