Kai Wang

Mijia

AI 智能体v0.1.0
作者:Kai Wang更新于 2026-05-11mijia@clawhub_hqman/mijia
任务自动化工具调用#Smart Home

据 AlphaMoat 统计,截至 2026-10,Mijia 累计下载 5,066 次、获 4 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 5,753 位,在「AI 智能体」分类(1,632 个)中排名第 810 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
5,066
星标
4
全站下载量排名
#5,753
全站前 53% · 「AI 智能体」前 50%
平台累计下载星标评论
ClawHub ↗3,7363-
SkillHub ↗5,0664—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

支持查看灯具状态、开关灯、调节亮度与色温以及切换照明模式。运行需配置设备 ID,并通过小米账号登录。命令会实际改变设备状态;执行开关、亮度或模式操作前,应逐项确认用户授权和目标设备。 文档配置需要 uv、Python >=3.13 与 mijiaapi;核实实际技能路径及依赖锁文件,配置 MIJIA_LAMP_DID,并完成首次小米扫码登录。

资料发布于 2026-10-27

可以用来做什么

  • 查看已配置灯具状态
  • 在获得确认后调整灯光亮度、色温或模式

什么时候用

  • 设备 ID 与小米账号已配置,且用户明确确认具体设备及变更时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

先说明控制灯具前需要配置哪些信息,不执行任何操作。
请列出改变米家灯状态前需要我确认的设备和设置。

月度数据趋势

累计下载5,066
2,3103,7905,2702026-03 · 累计下载 2,5142026-05 · 累计下载 2,9212026-06 · 累计下载 3,0622026-07 · 累计下载 3,3312026-08 · 累计下载 3,4782026-09 · 累计下载 3,7292026-10 · 累计下载 5,06626-0326-0926-10
星标4
3442026-03 · 星标 32026-05 · 星标 42026-06 · 星标 32026-07 · 星标 42026-08 · 星标 42026-09 · 星标 42026-10 · 星标 426-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-105,066—4
2026-093,729—4
2026-083,478+4.4%4
2026-073,331+8.8%4
2026-063,062+4.8%3
2026-052,921—4
2026-032,514—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.0 KB · ClawHub v0.1.0
---
name: mijia
description: Control Xiaomi Mijia smart home devices. Use this skill when the user wants to control desk lamps, smart plugs, or other Mijia devices. Supports turning lights on/off, adjusting brightness, setting color temperature, switching modes, and more.
invocable: true
---

# Mijia Smart Home Control

Control Xiaomi Mijia smart devices via the mijiaAPI.
展开全部(共 101 行)
## Setup

Before using this skill, you need to:

1. Install dependencies:
```bash
cd /path/to/mijia-skill
uv sync
```

2. Set your device ID as an environment variable:
```bash
export MIJIA_LAMP_DID="your_device_id"
```

3. First run will prompt for Xiaomi account login via QR code.

## Finding Device IDs

To find your device IDs, use the mijia-api library:

```python
from mijiaAPI import mijiaAPI
api = mijiaAPI()
api.login()
devices = api.get_device_list()
for d in devices:
    print(f"{d['name']}: {d['did']}")
```

## How to Use

Skill path: `~/.clawdbot/skills/mijia`

### Lamp Control Commands

```bash
# Navigate to skill directory
cd ~/.claude/skills/mijia

# Check status
uv run python scripts/lamp_cli.py status

# Turn on/off
uv run python scripts/lamp_cli.py on
uv run python scripts/lamp_cli.py off
uv run python scripts/lamp_cli.py toggle

# Adjust brightness (1-100%)
uv run python scripts/lamp_cli.py brightness 50

# Adjust color temperature (2700-6500K)
uv run python scripts/lamp_cli.py temp 4000

# Set mode
uv run python scripts/lamp_cli.py mode reading    # Reading mode
uv run python scripts/lamp_cli.py mode computer   # Computer mode
uv run python scripts/lamp_cli.py mode night      # Night reading
uv run python scripts/lamp_cli.py mode antiblue   # Anti-blue light
uv run python scripts/lamp_cli.py mode work       # Work mode
uv run python scripts/lamp_cli.py mode candle     # Candle effect
uv run python scripts/lamp_cli.py mode twinkle    # Twinkle alert
```

## Natural Language Understanding

When the user says the following, execute the corresponding command:

| User Says | Command |
|-----------|---------|
| Turn on the light / open lamp | `scripts/lamp_cli.py on` |
| Turn off the light / close lamp | `scripts/lamp_cli.py off` |
| Toggle the light | `scripts/lamp_cli.py toggle` |
| Brighter / more bright | Check status first, then increase by 20-30% |
| Dimmer / less bright | Check status first, then decrease by 20-30% |
| Full brightness / maximum | `scripts/lamp_cli.py brightness 100` |
| Minimum brightness | `scripts/lamp_cli.py brightness 1` |
| Warm light | `scripts/lamp_cli.py temp 2700` |
| Cool light / white light | `scripts/lamp_cli.py temp 6500` |
| Reading mode | `scripts/lamp_cli.py mode reading` |
| Computer mode | `scripts/lamp_cli.py mode computer` |
| Night mode | `scripts/lamp_cli.py mode night` |
| Lamp status / what's the light status | `scripts/lamp_cli.py status` |

## Before Executing

1. Navigate to skill directory: `cd ~/.clawdbot/skills/mijia`
2. Ensure `MIJIA_LAMP_DID` environment variable is set
3. Run with uv: `uv run python scripts/lamp_cli.py <command>`
4. Report the result to the user after execution

「AI 智能体」分类下的热门技能

Kai Wang 的其他技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。