Install
openclaw skills install tuyaControl and automate Tuya Smart devices with official cloud APIs, secure request signing, region-aware routing, and safe command execution.
openclaw skills install tuyaOn first use, read setup.md and align activation boundaries, cloud region context, and write-safety defaults before sending Tuya commands.
Use this skill when the user needs practical execution across the Tuya ecosystem: cloud API authentication, device discovery, DPS-based command control, account linking, or automation orchestration. Use this instead of generic IoT advice when outcomes depend on Tuya Smart API behavior, regional endpoints, request signing, and command validation.
Memory lives in ~/tuya/. See memory-template.md for structure and status values.
~/tuya/
|-- memory.md # Core context and activation boundaries
|-- environments.md # Region, project, app-account, and endpoint mapping
|-- devices.md # Device inventory, capabilities, and command mappings
|-- automations.md # Cross-device orchestration plans and safeguards
`-- incidents.md # Error signatures, fixes, and verification evidence
Use the smallest file needed for the current task.
| Topic | File |
|---|---|
| Setup and activation behavior | setup.md |
| Memory and workspace templates | memory-template.md |
| Cloud auth and signing reference | auth-signing.md |
| User account and home/device linking | account-linking.md |
| Device commands and state workflows | device-operations.md |
| Multi-device rollout patterns | orchestration-playbooks.md |
| Diagnostics and recovery | troubleshooting.md |
TUYA_ACCESS_ID and TUYA_ACCESS_SECRETNever ask users to paste production secrets into chat logs. Prefer local environment variables and redacted examples.
Keep local operational notes in ~/tuya/:
sign, t, nonce, body hash, or signed headers are inconsistent, treat the request as invalid and rebuild before retrying.code values and valid data types/ranges.code/value pairs and rejected writes.| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://openapi.tuyaus.com | Signed API headers, device ids, command payloads, and project-scoped metadata | Tuya OpenAPI access for US region projects |
| https://openapi-ueaz.tuyaus.com | Signed API headers, device ids, command payloads, and project-scoped metadata | Tuya OpenAPI access for US West region projects |
| https://openapi.tuyaeu.com | Signed API headers, device ids, command payloads, and project-scoped metadata | Tuya OpenAPI access for Europe region projects |
| https://openapi-weaz.tuyaeu.com | Signed API headers, device ids, command payloads, and project-scoped metadata | Tuya OpenAPI access for Europe West region projects |
| https://openapi.tuyacn.com | Signed API headers, device ids, command payloads, and project-scoped metadata | Tuya OpenAPI access for China region projects |
| https://openapi.tuyain.com | Signed API headers, device ids, command payloads, and project-scoped metadata | Tuya OpenAPI access for India region projects |
| https://developer.tuya.com | Documentation query terms | Validate API behavior, limits, and integration requirements |
No other data is sent externally.
Data that leaves your machine:
Data that stays local:
~/tuya/This skill does NOT:
TUYA_ACCESS_ID or TUYA_ACCESS_SECRET in local skill filesThis skill sends operational data to Tuya cloud services when execution is approved. Only install if you trust Tuya and your credential handling model with your IoT control data.
Install with clawhub install <slug> if user confirms:
iot - Device connectivity and system-level IoT integration guidancesmart-home - Home automation architecture and reliability practicesapi - API contract design, auth workflows, and error handling disciplinemqtt - Messaging patterns for device telemetry and event-driven orchestrationzigbee - Local network device planning and Zigbee ecosystem troubleshootingclawhub star tuyaclawhub sync