anil-matcha/awesome-muse-connectors/tuya
Claude Code and agent skill by anil-matcha/awesome-muse-connectors
- community
Checking that the SKILL.md file is still in the repository.
Read and control Tuya / Smart Life devices: plugs, lights, thermostats, curtains, smart locks. Trigger phrases: tuya, smart life, tuya device, smart life plug.
Install
npx vskill@latest install anil-matcha/awesome-muse-connectors/tuyaSKILL.md
The same SKILL.md was published earlier as anil-matcha/awesome-muse-connectors/tuya.
Tuya
Purpose
Read status and send control commands to Tuya Cloud / Smart Life devices: smart plugs and switches, lights, thermostats, curtain motors, and supported smart locks, plus executing saved scenes. Use it when the user asks about or wants to change anything paired through the Tuya or Smart Life app. Commands drive real physical hardware, so writes are confirmation-gated (see Operating Rules).
Tooling
All commands go through bin/tuya.py. --region must match the account's Tuya data-center region (us, eu, cn, in; default us):
--value is JSON-parsed: booleans (true), numbers (24), and quoted strings ('"off"'); anything else falls back to a plain string. Find a device's data-point codes with device (specification) and its current values with status.
Auth
- Provider id:
tuya(credential is collected ascustom.tuya) - Collection: ONE combined value
access_id:access_secretvia the secure
credential flow (credentials.request_api_access). Get both from a Tuya IoT Platform cloud project (Access ID + Access Secret); devices bind to the project via the Tuya / Smart Life app QR link. The CLI fetches a short-lived cloud token itself (GET /v1.0/token?grant_type=1) and signs every request with HMAC-SHA256 per Tuya's documented scheme.
- Allowed hosts:
openapi.tuyaus.com,openapi.tuyaeu.com,
openapi.tuyacn.com, openapi.tuyain.com (plus the -ueaz/-weaz variants)
- Status check:
bin/tuya.py auth --region <your region>
Operating Rules
- HIGH actuations are blocked without explicit confirmation. Smart-lock
data points (any --code containing lock) and scene executions require --confirm "<exact physical effect>" on every run. Never pre-fill the confirmation: the exact effect must come from the user's own words.
- MEDIUM actuations confirm on first use per device. Relay toggles, HVAC
mode and setpoints, curtain motors: --confirm the first time a device is actuated; the CLI records it locally (~/.config/muse-connectors/tuya/confirmed.json) and later runs proceed.
- A scene's physical effects are whatever the user saved into it. Before
confirming a scene execution, read back to the user what the scene does if it is not obvious from its name.
- Region must match the account region. Calls against the wrong regional
host return auth errors even with correct credentials; ask the user which region their Tuya project lives in (US, EU, China, India) instead of guessing repeatedly.
- Cost warning: the Trial Edition is free up to about 26,000 API calls
plus ~68,000 message subscriptions per month, extendable to 6 months; sustained or commercial use moves to paid editions. Poll status sparingly.
- Reads (
auth,device,status) never need confirmation. - Open item: the request signature is computed over the credential
surrogate as delivered by the credential store. Confirm the signature verifies against Tuya's servers on first live use; if the runtime's egress handling breaks signed headers, this connector needs a signing adjustment before writes are trusted.
- Never exfiltrate the credential: the CLI only ever handles surrogates. Do
not print, log, or transmit the Access ID, Access Secret, or token values.
Files
- SKILL.md
- bin/tuya.py
Maturity
🧪 Draft: written from Tuya's public Cloud API docs; not yet live-tested end-to-end. The HMAC-SHA256 signature construction, the token-grant flow, and the scene-trigger path (POST /v1.0/homes/{home_id}/scenes/{scene_id}/trigger) are untested against real Tuya servers.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconnectors/tuya/SKILL.md
Popularity
- Repository stars
- 1,135
- Repository forks
- 284
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anil-matcha/awesome-muse-connectors/tuya)