/install bardi-smart-home-tuya
Bardi-Tuya Smart Home
Control Tuya smart home devices via cloud API.
Requirements
tinytuyaPython library installed- Environment variables must be set:
TUYA_ACCESS_ID— Cloud project Access IDTUYA_ACCESS_SECRET— Cloud project Access SecretTUYA_API_REGION— Data center region (default:sg)
The skill will not function if TUYA_ACCESS_ID and TUYA_ACCESS_SECRET are missing.
Setup
See SETUP.md for detailed installation and configuration instructions.
API Reference
See references/api-reference.md for DP codes, color presets, HSV encoding, and device details.
Scripts
Two scripts in scripts/:
| Script | Purpose |
|---|---|
devices_control.py |
Device controller — lights, plugs, sensors, any Tuya device |
devices_scan.py |
Local network device discovery |
Workflows
Control Any Device
python3 scripts/devices_control.py \x3Cdevice_id> \x3Ccommand> [args]
Light Commands
python3 scripts/devices_control.py \x3Cdevice_id> on
python3 scripts/devices_control.py \x3Cdevice_id> off
python3 scripts/devices_control.py \x3Cdevice_id> color blue
python3 scripts/devices_control.py \x3Cdevice_id> white 750 80
python3 scripts/devices_control.py \x3Cdevice_id> brightness 50
python3 scripts/devices_control.py \x3Cdevice_id> preset warm 50
Generic Device Commands
python3 scripts/devices_control.py \x3Cdevice_id> status
python3 scripts/devices_control.py \x3Cdevice_id> detail
python3 scripts/devices_control.py \x3Cdevice_id> model
python3 scripts/devices_control.py \x3Cdevice_id> send bright_value 500
python3 scripts/devices_control.py discover
Scan Local Network
python3 scripts/devices_scan.py [--timeout 10] [--verbose]
Brightness Convention
User input is always 1–100 (percentage). Scripts convert to Tuya range (10–1000) internally:
- 100% → 1000
- 50% → 500
- 10% → 100
Color Presets
Available presets: red, orange, yellow, green, cyan, blue, purple, mauve, pink, warm, cool
warm and cool use white mode with temperature control. All others use HSV color mode.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bardi-smart-home-tuya - 安装完成后,直接呼叫该 Skill 的名称或使用
/bardi-smart-home-tuya触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Bardi Smart Home - Tuya Devices Compatible 是什么?
Mengontrol perangkat smart home Tuya melalui Cloud API, termasuk lampu, colokan, sensor, meteran, dan lainnya. Mendukung lampu pintar Bardi dengan fitur peng... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。
如何安装 Bardi Smart Home - Tuya Devices Compatible?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bardi-smart-home-tuya」即可一键安装,无需额外配置。
Bardi Smart Home - Tuya Devices Compatible 是免费的吗?
是的,Bardi Smart Home - Tuya Devices Compatible 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bardi Smart Home - Tuya Devices Compatible 支持哪些平台?
Bardi Smart Home - Tuya Devices Compatible 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bardi Smart Home - Tuya Devices Compatible?
由 elony-7(@elony-7)开发并维护,当前版本 v1.1.0。