Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
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...
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...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
Control any Tuya/Smart Life device via cloud API or local network.
pip3 install tinytuya tuya-connector-python
Two control modes available:
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)
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)
python3 scripts/tuya_scan.py
python3 scripts/tuya_control.py --mode cloud --action info \ --device-id DEVICE_ID \ --access-id ACCESS_ID --access-secret ACCESS_SECRET --region cn
# 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
# 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
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 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)
For detailed API documentation, DP code tables, and setup guide, see references/tuya_api.md.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.