Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

tuyatuya 控制

Agent Skill

tuya 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,522

周安装

409

GitHub Stars

公开资料未说明

下载量

3,337
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tuya(tuya 控制)
来源仓库:https://github.com/ivangdavila/tuya
安装命令:
openclaw skills install tuya
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tuya

简介

使用官方云 API、安全请求签名、区域感知路由和安全命令执行来控制和自动化涂鸦智能设备。

SKILL.md

name
Tuya Smart
slug
tuya
version
1.0.0
homepage
https://clawic.com/skills/tuya
description
Control and automate Tuya Smart devices with official cloud APIs, secure request signing, region-aware routing, and safe command execution.
changelog
Initial release with end-to-end Tuya Smart workflows for authentication, account linking, device control, diagnostics, and safe rollout playbooks.
metadata
{"clawdbot":{"emoji":"T","requires":{"bins":["curl","jq","openssl"],"env":["TUYA_ACCESS_ID","TUYA_ACCESS_SECRET"]},"primaryEnv":"TUYA_ACCESS_SECRET","os":["linux","darwin","win32"]}}

Setup

On first use, read setup.md and align activation boundaries, cloud region context, and write-safety defaults before sending Tuya commands.

When to Use

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.

Architecture

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

Quick Reference

Use the smallest file needed for the current task.

TopicFile
Setup and activation behaviorsetup.md
Memory and workspace templatesmemory-template.md
Cloud auth and signing referenceauth-signing.md
User account and home/device linkingaccount-linking.md
Device commands and state workflowsdevice-operations.md
Multi-device rollout patternsorchestration-playbooks.md
Diagnostics and recoverytroubleshooting.md

Requirements

  • Tuya IoT Platform project credentials: Access ID and Access Secret
  • Environment variables: TUYA_ACCESS_ID and TUYA_ACCESS_SECRET
  • Correct regional OpenAPI endpoint for the project data center
  • Device permissions enabled in the project (Cloud Authorization and required API groups)
  • For account-based device binding: configured user permission package and app account flow

Never ask users to paste production secrets into chat logs. Prefer local environment variables and redacted examples.

Data Storage

Keep local operational notes in ~/tuya/:

  • environment and endpoint mappings
  • device command dictionaries by product/device id
  • approved automation policies and rollback plans
  • incident signatures and validated remediations

Core Rules

1. Resolve Region and Project Scope Before Any API Call

  • Confirm project environment, app type, and region endpoint first.
  • Block execution if region and project are ambiguous because token and device calls will fail or target the wrong tenant.

2. Build and Verify Tuya Signature Inputs Exactly

  • Sign every request with Tuya's documented HMAC-SHA256 process.
  • If sign, t, nonce, body hash, or signed headers are inconsistent, treat the request as invalid and rebuild before retrying.

3. Discover Device Capabilities Before Sending Commands

  • Read device details and function schema before writes.
  • Generate commands only from supported code values and valid data types/ranges.

4. Use Read-Before-Write and Read-After-Write Control Loops

  • Capture baseline status before command execution.
  • After each write, verify resulting state and stop rollout on mismatch.

5. Apply Explicit Safety Gates for Real Device Writes

  • Start with read-only inspection and dry-run command plans.
  • Require explicit confirmation before high-impact actions (power, heating, locks, alarms, or bulk updates).

6. Keep Account Linking and Device Ownership Consistent

  • Match app account model, cloud project permissions, and user-device binding flow.
  • If device list and control APIs disagree, reconcile account linkage before troubleshooting commands.

7. Design Automations as Idempotent, Observable Sequences

  • Use deterministic run ids, bounded retries, and clear stop conditions.
  • Track each step with expected state checks to avoid duplicate or partial actions across device fleets.

8. Preserve Security and Privacy Boundaries

  • Use least-privilege credentials and only declared endpoints.
  • Read credentials from environment variables and never write raw secrets to local notes.
  • Treat project tokens as short-lived runtime data and avoid persisting them unless the user explicitly requests it.

Common Traps

  • Choosing the wrong regional endpoint -> valid credentials fail and device lookup appears empty.
  • Sending commands without checking function schema -> invalid code/value pairs and rejected writes.
  • Mixing app-account and cloud-account assumptions -> users appear linked but device control fails.
  • Retrying signed requests with stale timestamps/nonces -> repeated signature errors.
  • Running bulk commands without staged verification -> large-scale bad state transitions.
  • Treating online status as control success -> command accepted but target state not achieved.

External Endpoints

EndpointData SentPurpose
https://openapi.tuyaus.comSigned API headers, device ids, command payloads, and project-scoped metadataTuya OpenAPI access for US region projects
https://openapi-ueaz.tuyaus.comSigned API headers, device ids, command payloads, and project-scoped metadataTuya OpenAPI access for US West region projects
https://openapi.tuyaeu.comSigned API headers, device ids, command payloads, and project-scoped metadataTuya OpenAPI access for Europe region projects
https://openapi-weaz.tuyaeu.comSigned API headers, device ids, command payloads, and project-scoped metadataTuya OpenAPI access for Europe West region projects
https://openapi.tuyacn.comSigned API headers, device ids, command payloads, and project-scoped metadataTuya OpenAPI access for China region projects
https://openapi.tuyain.comSigned API headers, device ids, command payloads, and project-scoped metadataTuya OpenAPI access for India region projects
https://developer.tuya.comDocumentation query termsValidate API behavior, limits, and integration requirements

No other data is sent externally.

Security & Privacy

Data that leaves your machine:

  • signed Tuya API requests that contain selected device identifiers and command payloads
  • optional account-linking payloads required by Tuya user/device binding APIs

Data that stays local:

  • environment mapping, command dictionaries, and automation runbooks under ~/tuya/
  • incident notes and risk decisions

This skill does NOT:

  • use undeclared third-party endpoints
  • request bypass or evasion techniques
  • store TUYA_ACCESS_ID or TUYA_ACCESS_SECRET in local skill files
  • execute bulk writes without user confirmation and verification strategy

Trust

This 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.

Related Skills

Install with clawhub install <slug> if user confirms:

  • iot - Device connectivity and system-level IoT integration guidance
  • smart-home - Home automation architecture and reliability practices
  • api - API contract design, auth workflows, and error handling discipline
  • mqtt - Messaging patterns for device telemetry and event-driven orchestration
  • zigbee - Local network device planning and Zigbee ecosystem troubleshooting

Feedback

  • If useful: clawhub star tuya
  • Stay updated: clawhub sync

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.68%
按下载量换算2,459

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills