
Mijia Control
from clawdbot-cn39
Control and monitor Xiaomi Mijia smart home devices via bundled Python scripts — list devices, toggle power, adjust brightness, and run automation scenes.
What it does
Adds direct smart-home control to an agent by wrapping a local mijiaAPI driver. The skill lets an agent list paired Mijia devices, query their real-time status, send on/off and parameter adjustments (brightness, temperature, etc.), and trigger pre-defined automation scenes. Operational guardrails are built in for risky devices (locks, curtains, HVAC) requiring verbal confirmation before execution.
When to use it
Use when a user asks the assistant to inspect or control Xiaomi Mijia devices on the same network: e.g., 'Which lights are on?', 'Turn off bedroom lamp', 'Set living room brightness to 40%', or 'Run Good Night scene'. Designed for on-premises automation flows where scripts can reach local device APIs.
What's included
- Scripts: bundled
scripts/directory with setup_env.py, list_devices.py, control_device.py, and login helpers (has_scripts=true). - References: in-repo
instructions.mdandreference/device_catalogs.mdfor device-to-command mapping. - Instructions: quickstart walkthrough, environment self-check, install/login steps, and decision logic routing queries vs. control actions.
Compatible agents
Agents that can execute local Python/CLI scripts: Claude Code, Codex-style agents, self-hosted assistants with shell access, and OpenClaw-based setups.
Tags
Information
- Repository
- clawdbot-cn
- Stars
- 39
- Installs
- 0