← Back to Skills Marketplace
Tuya Cloud
by
minshi-veyt
· GitHub ↗
· v1.0.5
· MIT-0
513
Downloads
0
Stars
2
Active Installs
6
Versions
Install in OpenClaw
/install tuya-cloud
Description
Read sensor data and control Tuya IoT devices via Tuya Cloud API or local LAN. Use when the user wants to list devices, read temperature, humidity, soil mois...
Usage Guidance
This skill appears coherent and implements the documented Tuya Cloud + LAN functionality. Before installing: (1) Only supply TUYA_ACCESS_ID/TUYA_ACCESS_SECRET from a dedicated Tuya Cloud project you control (preferably scoped to only the devices you want the agent to manage). These keys allow remote control of devices—treat them like secrets. (2) Be aware local LAN scanning uses UDP broadcasts and control_local/read_local requires device IPs and local_keys; this is expected for LAN control. (3) The code depends on PyPI packages (tinytuya, python-dotenv); verify/upstream trust if supply-chain risk is a concern. (4) Review scripts/config.py for any hard-coded device IDs you don’t want exposed, and provide test_data.env or .env only with non-sensitive test values. (5) If you will allow the agent to invoke skills autonomously, understand it could send commands to your devices; disable autonomous invocation if you don’t want that capability.
Capability Analysis
Type: OpenClaw Skill
Name: tuya-cloud
Version: 1.0.5
The tuya-cloud skill bundle is a legitimate tool for managing Tuya/Smart Life IoT devices via the Tuya Cloud API and local LAN. The core logic in scripts/tuya_controller.py utilizes the reputable tinytuya library to perform standard operations such as listing devices, reading sensor data, and sending commands to switches or valves. The SKILL.md file provides clear, functional instructions for an AI agent without any evidence of prompt injection or malicious intent. While the skill requires sensitive API credentials (TUYA_ACCESS_SECRET), they are used exclusively for authenticating with official Tuya endpoints, and there are no indicators of data exfiltration, unauthorized execution, or persistence mechanisms.
Capability Assessment
Purpose & Capability
Name/description, required binaries (python3), required env vars (TUYA_ACCESS_ID, TUYA_ACCESS_SECRET) and the included Python code (scripts/tuya_controller.py) are consistent with a Tuya Cloud + local-LAN controller. The skill depends on tinytuya and uses Tuya OpenAPI endpoints and local UDP scanning as expected.
Instruction Scope
SKILL.md only instructs reading credentials from .env, calling listed cloud endpoints, and performing local LAN UDP scans and LAN device commands. It does not instruct the agent to read unrelated files or exfiltrate data to non-Tuya endpoints. It does advise consulting scripts/config.py for known device IDs (which is reasonable).
Install Mechanism
This is an instruction-only skill (no binary installer). It relies on pip-installable packages (tinytuya, python-dotenv) listed in requirements.txt — a normal choice but carries normal PyPI supply-chain risk. No downloads from arbitrary URLs or archive extraction are present.
Credentials
Only TUYA_ACCESS_ID and TUYA_ACCESS_SECRET (plus optional TUYA_API_ENDPOINT) are required; these are the correct credentials for the Tuya OpenAPI and are proportional to a controller that can list and command devices. Note: those credentials grant programmatic control of everything in the Tuya cloud project, so scope and trust of the project matter.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system settings, and has no install script that writes system-wide files. Autonomous invocation is enabled by default on the platform (disable-model-invocation=false) but that is the platform default and not a unique escalation from this skill.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install tuya-cloud - After installation, invoke the skill by name or use
/tuya-cloud - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.5
- Added support for direct local LAN control of Tuya devices (scan, read, control without cloud).
- Expanded documentation for dual-channel valve devices and channel-specific control.
- Documented new CLI tools: scan_local, read_local, control_local.
- Updated API endpoints to match current Tuya recommendations.
- Improved troubleshooting tips for local network and Zigbee sub-device scenarios.
v1.0.4
- Added Openclaw integration metadata to SKILL.md, specifying required environment variables and binaries.
- No code or functionality changes; documentation and metadata update only.
v1.0.3
Add installation guide in README.md
v1.0.2
- Added sample environment file: tests/test_data.env.example
- Changed skill name format from tuya_cloud to tuya-cloud and added an explicit MIT license in SKILL.md
- Updated and reorganized documentation to clarify usage of all tools, parameters, and environment setup
- Enhanced documentation for tool arguments, especially for countdown timer values and device control commands
- No code changes to scripts or core functionality; update is documentation and example-focused
v1.0.1
Update Skill file
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is Tuya Cloud?
Read sensor data and control Tuya IoT devices via Tuya Cloud API or local LAN. Use when the user wants to list devices, read temperature, humidity, soil mois... It is an AI Agent Skill for Claude Code / OpenClaw, with 513 downloads so far.
How do I install Tuya Cloud?
Run "/install tuya-cloud" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Tuya Cloud free?
Yes, Tuya Cloud is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Tuya Cloud support?
Tuya Cloud is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Tuya Cloud?
It is built and maintained by minshi-veyt (@minshi-veyt); the current version is v1.0.5.
More Skills