项目地址:https://github.com/yihong0618/xiaogpt
mkdir xiaoai
cd xiaoai
git clone https://github.com/yihong0618/xiaogpt.git
cd xiaogpt
安装一下环境依赖:
pip3 install -r requirements.txt
项目地址:https://github.com/yihong0618/MiService
git clone https://github.com/yihong0618/MiService.git
cd MiService
pip3 install .
先设置小米账号
export MI_USER=用户名
export MI_PASS=密码
./micli.py list
[
{
"name": "PVE",
"model": "chuangmi.plug.212a01",
"did": "361168128",
"token": "f376bdc94b3abaf1bc9f70ff3df753cd"
},
{
"name": "网件MR60",
"model": "chuangmi.plug.212a01",
"did": "552387125",
"token": "753f6dccd4297858aa377a7f43165b7a"
},
{
"name": "网件MS60",
"model": "chuangmi.plug.212a01",
"did": "552389308",
"token": "0963497a9f9d5296a31a5e9a96b0d9e1"
},
{
"name": "当贝投影D3X",
"model": "chuangmi.plug.212a01",
"did": "552403699",
"token": "b4af1abb1adbd637b841dbaa7052bdd0"
},
{
"name": "网件MS60",
"model": "chuangmi.plug.212a01",
"did": "552412394",
"token": "c171f3dacd131dbf57ed025bb65d907f"
},
{
"name": "Yeelight 显示器挂灯",
"model": "yeelink.light.lamp15",
"did": "456555449",
"token": "13f0de30bd7674ec55ce0f09449d59f2"
}
]
设置 DID
export MI_DID=<Device ID|Name>