12 Jan 2025 Update: use https://github.com/XiaoMi/ha_xiaomi_home directly as official support
ha_xiaomi_home
ref https://github.com/XiaoMi/ha_xiaomi_home
Useful Tool
python-miio
$ virtualenv mymiio -p python3; cd mymiio/; source bin/activate; pip3 install python-miio
# upgrade python-miio
$ pip3 install python-miio --upgrade -i https://pypi.python.org/simple
# 探测所有设备
$ mirobo discover --handshake 1
# 连接设备
$ miiocli device --ip 192.168.2.192 --token 8c201e5611a03347ef1f4d30e2dac6f8 info
$ miiocli --help
Usage: miiocli [OPTIONS] COMMAND [ARGS]...
Options:
-d, --debug
-o, --output [default|json|json_pretty]
--version Show the version and exit.
--help Show this message and exit.
Commands:
...
Reference
...