Skip to content

Online Tuya Devices Manager for Cheap Yellow Display (CYD) boards.

License

Notifications You must be signed in to change notification settings

ThePhiMa/CYDTuyaDeviceManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL v3 PlatformIO Registry C++ Visual Studio Code Tuya Cloud

Online Tuya Devices Manager for Cheap Yellow Display (CYD) boards.

(Tested and Running on the ESP32 2432S024Rv3)

This is a basic device manager for all kinds of devices connected to the Tuya cloud via e.g. the Smart Life app. I use it to display the status for my door, window, socket and temperature sensors.

TuyaDeviceManager running on CYD

Developed with Visual Studio Code and PlatformIO

Warning

Still very much work-in-progress! There is no error handling for now.

Credits go to Rzeldent's esp32-smartdisplay without I would never have been able to set this up so quickly.

Features

  • Fetches all devices from the Tuya cloud connected to the clientID
  • For each device ID, fetch the current device status
  • If the device type matches one of the declarations in the ui_globals.cpp, parse and display the infos
    • Don't forget to also add new devices types to the parsing function updateDevicesDisplay() in ui.cpp

Requirements for running

  • A clientID and clientSecret are needed -> they are obtainable in the Tuya cloud at cloud->project->Overview (https://platform.tuya.com/cloud/basic)
    • (The account might need to be set as a dev account, but I forgot where exactly this can be set ;))

Setup

  1. Clone this repository (all sub modules will automatically be cloned by platformIO)
  2. Copy config_template.h to config.h
  3. Edit config.h and fill in your personal information:
    • WiFi SSID and password
    • Tuya client ID and secret
  4. Set your Arduino board in the platformio.ini
  5. Compile and upload the project to your Arduino board
  6. Happy coding!

Note: config.h is ignored by git to keep your personal information private.

Note #2: The method updateTimeOffset() in main.cpp only works for CET, it needs to be adjusted for other timezones for the clock and api calls to work correctly.

Version history

v0.1: first public version, 01.08.24

Links

The Tuya docs are really extensive and well done (https://developer.tuya.com/en/docs/iot/device-intelligentize-in-5-minutes?id=K914joxbogkm6)

About

Online Tuya Devices Manager for Cheap Yellow Display (CYD) boards.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published