โ† All skills
Tencent SkillHub ยท Developer Tools

Tuya Smart Home

Control Tuya/Smart Life smart home devices including pet feeders, lights, plugs, curtains via cloud API or local network. Use when: (1) controlling smart hom...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Control Tuya/Smart Life smart home devices including pet feeders, lights, plugs, curtains via cloud API or local network. Use when: (1) controlling smart hom...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/tuya_api.md, scripts/tuya_control.py, scripts/tuya_scan.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

Tuya Smart Home

Control any Tuya/Smart Life device via cloud API or local network.

Dependencies

pip3 install tinytuya tuya-connector-python

Configuration

Two control modes available:

Cloud Mode

Requires Tuya IoT Platform credentials from https://iot.tuya.com: ACCESS_ID โ€” from Cloud Project ACCESS_SECRET โ€” from Cloud Project REGION โ€” cn (China), us (Americas/SEA), eu (Europe), in (India)

Local Mode (Recommended)

Requires device info (obtain via cloud API first): DEVICE_ID โ€” device identifier LOCAL_KEY โ€” device encryption key IP โ€” device local IP address VERSION โ€” protocol version (usually 3.4)

Scan for devices on local network

python3 scripts/tuya_scan.py

Get device info (cloud)

python3 scripts/tuya_control.py --mode cloud --action info \ --device-id DEVICE_ID \ --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn

Query device status

# Cloud python3 scripts/tuya_control.py --mode cloud --action status \ --device-id DEVICE_ID \ --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn # Local python3 scripts/tuya_control.py --mode local --action status \ --device-id DEVICE_ID --ip IP --local-key KEY

Send command

# Cloud โ€” feed pet 1 portion python3 scripts/tuya_control.py --mode cloud --action send \ --device-id DEVICE_ID --code manual_feed --value 1 \ --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn # Local โ€” feed pet 1 portion python3 scripts/tuya_control.py --mode local --action send \ --device-id DEVICE_ID --ip IP --local-key KEY \ --dp-id 3 --value 1 # Turn on light python3 scripts/tuya_control.py --mode cloud --action send \ --device-id DEVICE_ID --code switch_led --value true \ --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn # Open curtain python3 scripts/tuya_control.py --mode cloud --action send \ --device-id DEVICE_ID --code control --value open \ --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn

Common Device Commands

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 %

China Region Note

China data center (openapi.tuyacn.com) blocks non-China IPs by default. Solutions: Add your IP to whitelist in Tuya IoT Platform โ†’ Project โ†’ IP Whitelist Use local mode (bypasses cloud entirely, recommended)

API Reference

For detailed API documentation, DP code tables, and setup guide, see references/tuya_api.md.

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs2 Scripts
  • SKILL.md Primary doc
  • references/tuya_api.md Docs
  • scripts/tuya_control.py Scripts
  • scripts/tuya_scan.py Scripts