/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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bardi-smart-home-tuya - After installation, invoke the skill by name or use
/bardi-smart-home-tuya - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 156 downloads so far.
How do I install Bardi Smart Home - Tuya Devices Compatible?
Run "/install bardi-smart-home-tuya" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Bardi Smart Home - Tuya Devices Compatible free?
Yes, Bardi Smart Home - Tuya Devices Compatible is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Bardi Smart Home - Tuya Devices Compatible support?
Bardi Smart Home - Tuya Devices Compatible is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Bardi Smart Home - Tuya Devices Compatible?
It is built and maintained by elony-7 (@elony-7); the current version is v1.1.0.