在raspberry pi 上安装 homebridge

1. 参考 https://bbs.feng.com/read-htm-tid-11483485.html

2. 参考 https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi

3. 参考 https://sspai.com/post/36617?winzoom=1

4. 参考 https://alanoy.com/post/connect-homekit-and-mijia-devices-with-homebridge/

5. 参考 https://sspai.com/post/40075

ps: 网上的基于raspberry pi 打造的homekit智能家居都大同小异,并且都很表面。特别是少数派的一些人,写的很华丽,但实际上不同人写的文章都是相同的,明显是相互借鉴。

 

注意事项:

1. 注意安装node.js 以及相应的库

2. 注意安装你手中设备的对应插件,比如以上教程中提到小米网关设备对应的插件是MiAqaraPlatform,实际上去总是报错

我重新安装了插件 AqaraPlatform 后,即可正常运行

pi@raspberrypi:~ $ cat .homebridge/config.json 
{
    "bridge": {
        "name": "Homebridge",
        "username": "EE:33:11:EE:06:11",
        "port": 51826,
        "pin": "000-00-222"
    },
    "platforms": [
        {
            "platform": "AqaraPlatform",
            "sid": ["34ce0088e8d7"],
            "password": ["pjhe0btqwz6hb916"]
        }
    ]
}

3. 安装以后,并没有想象中的有意思,毕竟小米网关的功能有限

posted @ 2018-08-14 17:49  Dream_2017  阅读(402)  评论(0编辑  收藏  举报