tuya-smart-control

Manage Tuya smart devices via 2C endpoints with a Python SDK.

559|46|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/tuya/tuya-openclaw-skills --skill tuya-smart-control
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tuya-smart-control
Source: https://github.com/tuya/tuya-openclaw-skills/tree/main/tuya-smart-control
Command: npx skills add https://github.com/tuya/tuya-openclaw-skills --skill tuya-smart-control

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

OpenClaw users need reliable access to Tuya 2C end-user APIs to manage a broad range of smart devices without jumping between apps or manual API calls.

Core Features & Use Cases

  • Home Management: list homes and rooms, discover devices
  • Device Control: query device Thing Model, issue property commands, and rename devices
  • Weather & Notifications: fetch weather data and send notifications
  • Data Statistics: query hourly statistics for energy usage
  • Quick scenario: turn on the living room light or query device details across homes.

Quick Start

Turn on the living room light.

Frequently Asked Questions about tuya-smart-control

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Tuya smart home devices from an AI agent?

To control Tuya smart home devices from an AI agent, you can use OpenClaw to access Tuya 2C endpoints. This enables querying homes, rooms, and devices, issuing property commands, and renaming devices across multiple homes.

Can I manage multiple Tuya homes and rooms with a single API integration?

Yes, you can manage multiple Tuya homes and rooms with a single API integration. The system supports querying homes, discovering rooms, and controlling devices across all homes associated with your TUYA_API_KEY.

How do I fetch weather data and send notifications using the Tuya API?

To fetch weather data and send notifications using the Tuya API, the integration provides dedicated endpoints. It uses a Python SDK to serialize property payloads as JSON strings for reliable data transmission.

What API key do I need to automate Tuya device control via OpenClaw?

You need a TUYA_API_KEY to automate Tuya device control via OpenClaw. The system auto-detects the base URL from the key prefix and requires the requests dependency to function properly.

Does this integration support querying energy usage statistics for Tuya devices?

Yes, the integration supports querying energy usage statistics for Tuya devices. You can query hourly statistics for data statistics directly through the Tuya 2C endpoints.

What is the best way to issue property commands to Tuya devices without manual API calls?

The best way to issue property commands to Tuya devices without manual API calls is using OpenClaw. It queries the device Thing Model and serializes property payloads as JSON strings for automated execution.