tuya
Read and control Tuya / Smart Life devices: plugs, lights, thermostats, curtains, smart locks. Trigger phrases: tuya, smart life, tuya device, smart life plug.
Install / Use
npx skills add Anil-matcha/awesome-muse-connectors --skill tuyaInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Customer SupportSupported Platforms
Tags
Our assessment of tuya
tuya scores 85/100 on our quality scale, 245th of 322 Customer Support skills we index.
Its SKILL.md is 5.4 KB long, well organised into 12 sections with 1 code example: a solid amount of guidance for an agent.
With 1,321 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 20 days ago, so tuya is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
tuya compared with similar skills
All 4 of these similar skills score higher than tuya; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| tuya (this skill)by Anil-matcha | 85 | 1.3k | 20d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 33d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 33d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 137.2k | 10d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 137.2k | 10d ago | SKILL.md |
Frequently asked questions
- How do I install tuya?
- Run
npx skills add Anil-matcha/awesome-muse-connectors --skill tuya. The install tabs above show the steps for each supported agent. - Which AI agents does tuya work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is tuya safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is tuya still maintained?
- The repository was last updated 20 days ago, so tuya is actively maintained.
Skill content
View source on GitHubname: "tuya" description: "Read and control Tuya / Smart Life devices: plugs, lights, thermostats, curtains, smart locks. Trigger phrases: tuya, smart life, tuya device, smart life plug." metadata: { "includeInPrompt": true } tagline: "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)." catalog_auth: "Access ID + Access Secret pair via the secure credential flow" catalog_hosts: ["openapi.tuyaus.com", "openapi.tuyaeu.com", "openapi.tuyacn.com", "openapi.tuyain.com"]
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):
bin/tuya.py auth --region us # status check: fetch a cloud token
bin/tuya.py device --id <device_id> --region us # read device information
bin/tuya.py status --id <device_id> --region us # read data-point status
# Writes. Smart-lock data points are HIGH: they REQUIRE --confirm naming the
# exact physical effect, on every run:
bin/tuya.py command --id <device_id> --code lock_motor_state --value true \
--confirm "unlock the side door smart lock" --region us
# Other commands (relays, HVAC, curtains) are MEDIUM: --confirm on first use
# per device, then proceed:
bin/tuya.py command --id <device_id> --code switch_1 --value true \
--confirm "turn on the workshop smart plug" --region us
bin/tuya.py command --id <device_id> --code temp_set --value 24 \
--confirm "set the bedroom AC to 24 degrees" --region us
# Scenes are HIGH (their effects are whatever was saved into them):
bin/tuya.py scene --home <home_id> --scene <scene_id> \
--confirm "run the Goodnight scene (locks doors, turns off lights)" --region 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/-weazvariants) - Status check:
bin/tuya.py auth --region <your region>
Operating Rules
- HIGH actuations are blocked without explicit confirmation. Smart-lock
data points (any
--codecontaininglock) 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:
--confirmthe 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
statussparingly. - 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.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
137.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
137.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
