{
  "schemaVersion": "1.0",
  "item": {
    "slug": "tuya-smart-home",
    "name": "Tuya Smart Home",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/rachelchoo1212/tuya-smart-home",
    "canonicalUrl": "https://clawhub.ai/rachelchoo1212/tuya-smart-home",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/tuya-smart-home",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tuya-smart-home",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/tuya_api.md",
      "scripts/tuya_control.py",
      "scripts/tuya_scan.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/tuya-smart-home"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/tuya-smart-home",
    "agentPageUrl": "https://openagent3.xyz/skills/tuya-smart-home/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tuya-smart-home/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tuya-smart-home/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Tuya Smart Home",
        "body": "Control any Tuya/Smart Life device via cloud API or local network."
      },
      {
        "title": "Dependencies",
        "body": "pip3 install tinytuya tuya-connector-python"
      },
      {
        "title": "Configuration",
        "body": "Two control modes available:"
      },
      {
        "title": "Cloud Mode",
        "body": "Requires Tuya IoT Platform credentials from https://iot.tuya.com:\n\nACCESS_ID — from Cloud Project\nACCESS_SECRET — from Cloud Project\nREGION — cn (China), us (Americas/SEA), eu (Europe), in (India)"
      },
      {
        "title": "Local Mode (Recommended)",
        "body": "Requires device info (obtain via cloud API first):\n\nDEVICE_ID — device identifier\nLOCAL_KEY — device encryption key\nIP — device local IP address\nVERSION — protocol version (usually 3.4)"
      },
      {
        "title": "Scan for devices on local network",
        "body": "python3 scripts/tuya_scan.py"
      },
      {
        "title": "Get device info (cloud)",
        "body": "python3 scripts/tuya_control.py --mode cloud --action info \\\n  --device-id DEVICE_ID \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn"
      },
      {
        "title": "Query device status",
        "body": "# Cloud\npython3 scripts/tuya_control.py --mode cloud --action status \\\n  --device-id DEVICE_ID \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\n# Local\npython3 scripts/tuya_control.py --mode local --action status \\\n  --device-id DEVICE_ID --ip IP --local-key KEY"
      },
      {
        "title": "Send command",
        "body": "# Cloud — feed pet 1 portion\npython3 scripts/tuya_control.py --mode cloud --action send \\\n  --device-id DEVICE_ID --code manual_feed --value 1 \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\n# Local — feed pet 1 portion\npython3 scripts/tuya_control.py --mode local --action send \\\n  --device-id DEVICE_ID --ip IP --local-key KEY \\\n  --dp-id 3 --value 1\n\n# Turn on light\npython3 scripts/tuya_control.py --mode cloud --action send \\\n  --device-id DEVICE_ID --code switch_led --value true \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\n# Open curtain\npython3 scripts/tuya_control.py --mode cloud --action send \\\n  --device-id DEVICE_ID --code control --value open \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn"
      },
      {
        "title": "Common Device Commands",
        "body": "DeviceCodeValuesDescriptionPet Feedermanual_feed1-12Feed N portionsPet Feederquick_feedtrueQuick feedPet Feederlighttrue/falseNight lightLightswitch_ledtrue/falseOn/offLightbright_value10-1000BrightnessLighttemp_value0-1000Color temperaturePlugswitch_1true/falseOn/offCurtaincontrolopen/stop/closeMovementCurtainpercent_control0-100Position %"
      },
      {
        "title": "China Region Note",
        "body": "China data center (openapi.tuyacn.com) blocks non-China IPs by default.\nSolutions:\n\nAdd your IP to whitelist in Tuya IoT Platform → Project → IP Whitelist\nUse local mode (bypasses cloud entirely, recommended)"
      },
      {
        "title": "API Reference",
        "body": "For detailed API documentation, DP code tables, and setup guide, see references/tuya_api.md."
      }
    ],
    "body": "Tuya Smart Home\n\nControl any Tuya/Smart Life device via cloud API or local network.\n\nDependencies\npip3 install tinytuya tuya-connector-python\n\nConfiguration\n\nTwo control modes available:\n\nCloud Mode\n\nRequires Tuya IoT Platform credentials from https://iot.tuya.com:\n\nACCESS_ID — from Cloud Project\nACCESS_SECRET — from Cloud Project\nREGION — cn (China), us (Americas/SEA), eu (Europe), in (India)\nLocal Mode (Recommended)\n\nRequires device info (obtain via cloud API first):\n\nDEVICE_ID — device identifier\nLOCAL_KEY — device encryption key\nIP — device local IP address\nVERSION — protocol version (usually 3.4)\nQuick Start\nScan for devices on local network\npython3 scripts/tuya_scan.py\n\nGet device info (cloud)\npython3 scripts/tuya_control.py --mode cloud --action info \\\n  --device-id DEVICE_ID \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\nQuery device status\n# Cloud\npython3 scripts/tuya_control.py --mode cloud --action status \\\n  --device-id DEVICE_ID \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\n# Local\npython3 scripts/tuya_control.py --mode local --action status \\\n  --device-id DEVICE_ID --ip IP --local-key KEY\n\nSend command\n# Cloud — feed pet 1 portion\npython3 scripts/tuya_control.py --mode cloud --action send \\\n  --device-id DEVICE_ID --code manual_feed --value 1 \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\n# Local — feed pet 1 portion\npython3 scripts/tuya_control.py --mode local --action send \\\n  --device-id DEVICE_ID --ip IP --local-key KEY \\\n  --dp-id 3 --value 1\n\n# Turn on light\npython3 scripts/tuya_control.py --mode cloud --action send \\\n  --device-id DEVICE_ID --code switch_led --value true \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\n# Open curtain\npython3 scripts/tuya_control.py --mode cloud --action send \\\n  --device-id DEVICE_ID --code control --value open \\\n  --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn\n\nCommon Device Commands\nDevice\tCode\tValues\tDescription\nPet Feeder\tmanual_feed\t1-12\tFeed N portions\nPet Feeder\tquick_feed\ttrue\tQuick feed\nPet Feeder\tlight\ttrue/false\tNight light\nLight\tswitch_led\ttrue/false\tOn/off\nLight\tbright_value\t10-1000\tBrightness\nLight\ttemp_value\t0-1000\tColor temperature\nPlug\tswitch_1\ttrue/false\tOn/off\nCurtain\tcontrol\topen/stop/close\tMovement\nCurtain\tpercent_control\t0-100\tPosition %\nChina Region Note\n\nChina data center (openapi.tuyacn.com) blocks non-China IPs by default. Solutions:\n\nAdd your IP to whitelist in Tuya IoT Platform → Project → IP Whitelist\nUse local mode (bypasses cloud entirely, recommended)\nAPI Reference\n\nFor detailed API documentation, DP code tables, and setup guide, see references/tuya_api.md."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/rachelchoo1212/tuya-smart-home",
    "publisherUrl": "https://clawhub.ai/rachelchoo1212/tuya-smart-home",
    "owner": "rachelchoo1212",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/tuya-smart-home",
    "downloadUrl": "https://openagent3.xyz/downloads/tuya-smart-home",
    "agentUrl": "https://openagent3.xyz/skills/tuya-smart-home/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tuya-smart-home/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tuya-smart-home/agent.md"
  }
}