『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 5668|回复: 4

[经验分享] 树莓派安装Homebridge之老高大神教程补充

[复制链接]

4

主题

75

帖子

306

积分

论坛分享达人

积分
306
金钱
231
HASS币
0
发表于 2017-10-21 02:28:28 | 显示全部楼层 |阅读模式
本帖最后由 876310253 于 2017-10-21 03:41 编辑

搞定源的问题之后到最后一步生成config.json安装老高大大的教程写的config.json结果报错,截图如下:
8好.png
然后去群里提问,遇到深夜大神指导附上截图:
7.png
72.png
7总问题.png
贴上我的config.json文件:

{
    "bridge": {
        "name": "Homebridge",
        "username": "树莓mac",
        "port": 51826,
        "pin": "000-00-025"
    },
    
    "platforms": [
  {
    "platform": "HomeAssistant",
    "name": "HomeAssistant",
    "host": "http://树莓派IP:8123",
    "password": "raspberry",
    
    "supported_types": ["fan", "garage_door", "input_boolean", "light", "lock", "media_player", "rollershutter", "scene", "switch"],  (这个后面加一个英文的,号)
    "default_visibility": "visible"    (加上这一句就不报错了)
  }
    ]
}

具体解释参照老高大大的教程
最后附上安装完毕图:
搞定.png


搞完config.json之后是打开打开MQTT的服务跟建立Samba服务
安装老高大神给的命令集合输入开启MQTT服务代码发现居然没有这个服务,在网上各种找,最后找到方法了附上截图:
qq.png

解决方法如下:
安装MQTT服务
输入一下代码就可完成安装


sudo apt-get install libssl-dev
sudo apt-get install libc-ares-dev
sudo apt-get install uuid-dev
sudo apt-get install mosquitto


###开启服务
sudo systemctl start mosquitto
 
####查看服务状态
sudo systemctl status mosquitto

然后在按照老高大神的教程继续就可以安装完成。附上帖子原地址:baso0204分享的教程,借花献佛了
如果后续还发现问题,还会在这里更新一下解决办法,前提是我能找的到。。哈哈哈
回复

使用道具 举报

4

主题

75

帖子

306

积分

论坛分享达人

积分
306
金钱
231
HASS币
0
 楼主| 发表于 2017-10-21 03:42:03 | 显示全部楼层
沙发自己坐
回复

使用道具 举报

123

主题

4628

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16057
金钱
11344
HASS币
45
发表于 2017-10-21 11:10:24 | 显示全部楼层
感谢分享,权限奉上!
回复

使用道具 举报

0

主题

92

帖子

684

积分

高级会员

Rank: 4

积分
684
金钱
592
HASS币
0
发表于 2017-10-27 23:21:22 | 显示全部楼层
为你点个赞
回复

使用道具 举报

1

主题

42

帖子

153

积分

论坛分享达人

积分
153
金钱
111
HASS币
0
发表于 2017-10-30 13:20:59 | 显示全部楼层
pi@hassbian:~ $ sudo systemctl start mosquitto
pi@hassbian:~ $ sudo systemctl status mosquitto
● mosquitto.service - Insite MQTT Broker
   Loaded: loaded (/etc/systemd/system/mosquitto.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-10-30 00:49:20 CST; 7s ago
  Process: 1624 ExecStart=/usr/local/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)
Main PID: 1624 (code=exited, status=1/FAILURE)

Oct 30 00:49:20 hassbian systemd[1]: Started Insite MQTT Broker.
Oct 30 00:49:20 hassbian mosquitto[1624]: 1509295760: mosquitto version 1.4....g
Oct 30 00:49:20 hassbian systemd[1]: mosquitto.service: main process exited...RE
Oct 30 00:49:20 hassbian systemd[1]: Unit mosquitto.service entered failed ...e.
Oct 30 00:49:20 hassbian mosquitto[1624]: 1509295760: Config loaded from /et....
Oct 30 00:49:20 hassbian mosquitto[1624]: 1509295760: Opening ipv4 listen so....
Oct 30 00:49:20 hassbian mosquitto[1624]: 1509295760: Error: Address already...e
Hint: Some lines were ellipsized, use -l to show in full.

求助  没法设定开机启动
这个报错该怎么解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-9 20:25 , Processed in 0.078816 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表