分页: 1 / 1

小米扫地机插件方式接入

发表于 : 周三 8月 23, 2017 20:32
vonzeng
具体过程看:https://github.com/mrin/domoticz-mirobot-plugin 按这教程无坑搞定。

以下命令逐条复制、粘贴、执行。

代码: 全选

cd domoticz/plugins

git clone https://github.com/mrin/domoticz-mirobot-plugin.git xiaomi-mirobot

apt-get install libffi-dev libssl-dev

cd xiaomi-mirobot

pip3 install python-mirobo zeroconf -t .vendors

pip3 install python-mirobo -t .vendors --upgrade
安装好,重启domoticz:

代码: 全选

sudo service domoticz.sh restart
在硬件中选择Xiaomi Mi Robot Vacuum,进行配置。

若中关于扫地机Token的获取说明下:(适用于iphone手机)

1.将扫地机器人与米家 app 适配连接,而后使用 iTunes 创建无加密的 iOS 备份;
2.安装 iBackup Viewer;
3.用iBackup Viewer查看时第1步的备件文件,打开iBackup Viewer后,选择你的iPhone备件文件:
Screen Shot 2017-08-19 at 1.12.57 PM.jpg
Screen Shot 2017-08-19 at 1.12.57 PM.jpg (367.48 KiB) 查看 8083 次
选择Raw Files:
Screen Shot 2017-08-19 at 1.15.25 PM.jpg
Screen Shot 2017-08-19 at 1.15.25 PM.jpg (205.88 KiB) 查看 8083 次
输出xxxxxxxx__mihome.sqlite文件(_mihome.sqlite前的数字各人都不同):
Screen Shot 2017-08-19 at 1.18.30 PM.jpg
Screen Shot 2017-08-19 at 1.18.30 PM.jpg (669.69 KiB) 查看 8083 次
4.用DB Browser for SQLite软件来读输出的sqlite文件:
Screen Shot 2017-08-19 at 1.26.37 PM.jpg
Screen Shot 2017-08-19 at 1.26.37 PM.jpg (628.44 KiB) 查看 8083 次
将扫地机的token复制出来。

以上步骤可以将所有米家产品的token读出。
注意:在导出iphone备份文件中的_mihome.sqlite之前,请先重新备份下Iphone,确保你导出的_mihome.sqlite文件是最新的。

Re: 小米扫地机插件方式接入

发表于 : 周三 8月 23, 2017 20:35
vonzeng
感谢群主帮忙将上面的代码和图片整理好了。

QQ20170823-0.png

Re: 小米扫地机插件方式接入

发表于 : 周六 11月 18, 2017 21:00
showphi
石头的接入方法也是一样吗