Skip to content

RGB strip color depends on PC monitor color with Tuya Smart Home

Notifications You must be signed in to change notification settings

outspace/ledtuya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project descritption:

This project is find the most domain color on the screen and set it into smart RGB dimmer using Tuya IOT cloud. It's not so fast because of network delays (about 300 ms), but it can be helpful and it looks cool.

Build and Setup

  1. Install golang
  2. Clone this repo
  3. Enter dir with project
  4. Setup varibles Host, ClientID, Secret, DeviceID. More about auth creadials described below. If you have several dimmers put all of them into array.
  5. run "go build" and then run compiled binary
  6. Enjoy!

Configuration of the Tuya IoT Platform

Create a project

  1. Log in to the Tuya IoT Platform.
  2. In the left navigation bar, click Cloud > Development.
  3. On the page that appears, click Create Cloud Project.
  4. In the Create Cloud Project dialog box, configure Project Name, Description, Industry, and Data Center. For the Development Method field, select Smart Home from the dropdown list. For the Data Center field, select the zone you are located in. Refer to the country/data center mapping list here to choose the right data center for the country you are in.
  5. Click Create to continue with the project configuration.
  6. In Configuration Wizard, make sure you add Device Status Notification API. The list of API should look like this:
  7. Click Authorize.

Link devices by app account

  1. Navigate to the Devices tab.
  2. Click Link Tuya App Account > Add App Account.
  3. Scan the QR code that appears using the Tuya Smart app or Smart Life app.
  4. Click Confirm in the app.
  5. To confirm that everything worked, navigate to the All Devices tab. Here you should be able to find the devices from the app.
  6. If zero devices are imported, try changing the DataCenter and check the account used is the “Home Owner”. You can change DataCenter by clicking the Cloud icon on the left menu, then clicking the Edit link in the Operation column for your newly created project. You can change DataCenter in the popup window.

Get authorization key

Click the created project to enter the Project Overview page and get the Authorization Key. You will need these for setting up the integration. in the next step.

About

RGB strip color depends on PC monitor color with Tuya Smart Home

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages