Install
openclaw skills install xiaomi-home-skill[English] Control Xiaomi Home devices via local LAN using miiocli. Supports status checks, toggling power, and MIOT property manipulation for devices like smart plugs, humidifiers, and rice cookers. | [中文] 通过局域网利用 miiocli 控制米家智能设备。支持查看状态、开关控制以及对智能插座、加湿器、电饭煲等 MIOT 设备的属性调优。
openclaw skills install xiaomi-home-skill[English] | 中文
Enable code-level control of Xiaomi (Mi Home) devices over the local network.
click version issue) automatically.python3 scripts/token_extractor.py
references/devices.md or references/my_private_devices.md.When the user gives a command, map it to the corresponding miiocli operation:
| User Intent | Device Type | Action | Technical Command (Example) |
|---|---|---|---|
| "Turn on water heater" | Smart Plug | Power ON | miiocli miotdevice --ip <IP> --token <TOKEN> raw_command set_properties '[{"siid": 2, "piid": 1, "value": true}]' |
| "Turn off water heater" | Smart Plug | Power OFF | miiocli miotdevice --ip <IP> --token <TOKEN> raw_command set_properties '[{"siid": 2, "piid": 1, "value": false}]' |
| "Humidifier to max" | Humidifier | Set Mode | miiocli miotdevice --ip <IP> --token <TOKEN> set_property_by 2 5 3 |
| "Is rice cooked?" | Rice Cooker | Check Status | miiocli cooker --ip <IP> --token <TOKEN> status |
实现在局域网内对小米(米家)智能家居设备的代码级直接控制。
click 版本问题),确保开箱即用。python3 scripts/token_extractor.py
references/devices.md。