This extension helps automate the environment activation, build, flash, clean, and serial monitor functionalities for the TuyaOpen SDK.
- Automatically activate TuyaOpen SDK environment.
- Build the firmware.
- Flash the firmware to the device.
- Clean the build environment.
- Monitor the serial output.
| Operating System | Supported | Notes |
|---|---|---|
| Windows | ✅ | Full support |
| Linux | ✅ | Full support |
| macOS | ⬜ | Pending testing |
- ✅: Supported and tested.
- ⬜: Pending testing.
- Open VSCode.
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) to open the Command Palette. - Type
Extensions: Install from VSIX...and select it. - Browse and select
TuyaOpen-helper-0.0.1.vsix. - Reload VSCode if prompted.
- After installation, open the workspace you want to use with TuyaOpen Helper.
- On the first run, the extension will prompt you to enter the SDK root directory (TuyaOpen SDK path).
- You can also manually configure the settings in
.vscode/settings.json:
{
"TuyaOpenHelper.projectPath": "D:\\WorkSpace\\TuyaOpen\\TuyaOpen",
"TuyaOpenHelper.exportScript": "", // leave blank to auto detect
"TuyaOpenHelper.terminalName": "TuyaOpen Helper"
}projectPath: Root directory of TuyaOpen SDK.exportScript: Relative path to your environment activation script. If empty, the extension usesexport.shon Linux/macOS andexport.baton Windows.terminalName: Name of the terminal used by the extension.
After installation, a set of buttons will appear on the VSCode status bar:
| Button | Action |
|---|---|
| $(plug) Env | Activate TuyaOpen environment |
| $(check) Build | Build the project (tos.py build) |
| $(gear) BoardConfig | Runtos.py config choice |
| $(settings-gear) MenuCfg | Runtos.py config menu |
| $(rocket) Flash | Flash the project (tos.py flash) |
| $(terminal) Monitor | Open monitor (tos.py monitor) |
| $(trash) Clean | Clean the project (tos.py clean) |
You can also access all commands via Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
TuyaOpen Helper: Activate EnvironmentTuyaOpen Helper: BuildTuyaOpen Helper: Config ChoiceTuyaOpen Helper: MenuConfigTuyaOpen Helper: FlashTuyaOpen Helper: MonitorTuyaOpen Helper: Clean
- The extension automatically detects your OS and uses the appropriate activation script.
- Once the environment is activated, it remains active in the terminal for subsequent commands.
- On first use, if the SDK path is not set, the extension will prompt for it.
- All commands are executed in the VSCode integrated terminal named
TuyaOpen Helper.
- Make sure your SDK environment scripts (
export.shorexport.bat) are correct. - For Windows, the extension uses
cmd /cto run batch scripts. - For Linux/macOS, the extension uses
bash -lcto ensure environment variables are loaded. - You can always change the SDK path or terminal name in
.vscode/settings.json.