← Back to Skills Marketplace
elony-7

Bardi Smart Home - Tuya Devices Compatible

by elony-7 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
156
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install bardi-smart-home-tuya
Description
Mengontrol perangkat smart home Tuya melalui Cloud API, termasuk lampu, colokan, sensor, meteran, dan lainnya. Mendukung lampu pintar Bardi dengan fitur peng...
README (SKILL.md)

Bardi-Tuya Smart Home

Control Tuya smart home devices via cloud API.

Requirements

  • tinytuya Python library installed
  • Environment variables must be set:
    • TUYA_ACCESS_ID — Cloud project Access ID
    • TUYA_ACCESS_SECRET — Cloud project Access Secret
    • TUYA_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.

Usage Guidance
This package appears to do what it says: control Tuya/Bardi devices via the Tuya Cloud API and discover local devices via UDP broadcasts. Before installing: 1) Keep credentials scoped to a dedicated Tuya cloud project with least privilege; avoid using highly privileged account keys. 2) Be aware the local scanner sends UDP broadcasts (255.255.255.255) — run on a trusted network. 3) The skill depends on the public tinytuya Python package; install in a virtual environment and review that dependency if you have supply‑chain concerns. 4) If you plan to let an agent call this skill autonomously, ensure you’re comfortable with it having access to the Tuya credentials because it can control devices tied to that account.
Capability Assessment
Purpose & Capability
Name/description match the actual behavior: cloud control of Tuya devices and local UDP discovery. Required env vars (TUYA_ACCESS_ID and TUYA_ACCESS_SECRET) are exactly what a Tuya cloud integration needs. The declared dependency (tinytuya) is appropriate.
Instruction Scope
SKILL.md and SETUP.md instruct only to use the Tuya cloud API and run the included scripts. The runtime instructions reference the same environment variables declared in metadata. Scripts perform device discovery (UDP broadcasts) and cloud API calls; they do not read unrelated files, other env vars, or exfiltrate data to third‑party endpoints.
Install Mechanism
This is instruction-only with no automated install spec. The package requires the public Python package tinytuya (pip). That is a reasonable dependency, but the skill will only work if tinytuya is installed manually or in the agent environment; installing Python packages from PyPI carries the usual trust considerations.
Credentials
Only Tuya credentials (TUYA_ACCESS_ID, TUYA_ACCESS_SECRET) and optional TUYA_API_REGION are required. The number and naming of requested env vars are proportional to the functionality. No unrelated secrets or config paths are requested.
Persistence & Privilege
The skill is not force-enabled (always:false) and does not request persistent system-level privileges. It does not modify other skills or agent-wide config. Autonomous invocation is allowed by default but is not combined with other privilege abuses.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bardi-smart-home-tuya
  3. After installation, invoke the skill by name or use /bardi-smart-home-tuya
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Added batch mode: set white/color with --on flag combines multiple commands into single API call for faster response. Added batch command for raw JSON arrays.
v1.0.4
Added metadata section with declared env vars (TUYA_ACCESS_ID, TUYA_ACCESS_SECRET, TUYA_API_REGION) in registry metadata
v1.0.3
Declared env vars in registry metadata, removed --break-system-packages, added UDP broadcast and credential scoping notes
v1.0.2
Declared required env vars (TUYA_ACCESS_ID, TUYA_ACCESS_SECRET) explicitly in SKILL.md body and description
v1.0.1
Fixed env var inconsistency: code now uses only TUYA_ACCESS_ID and TUYA_ACCESS_SECRET as documented in SETUP.md
v1.0.0
Initial release - Bardi smart bulb control with color presets, generic Tuya device control, local network device discovery
Metadata
Slug bardi-smart-home-tuya
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

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.

💬 Comments