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

 找回密码
 立即注册
查看: 3755|回复: 0

[经验分享] homebridge与mqtt遇到问题求救命。。。

[复制链接]

8

主题

182

帖子

784

积分

高级会员

Rank: 4

积分
784
金钱
602
HASS币
0
发表于 2017-10-29 11:27:56 | 显示全部楼层 |阅读模式
树莓派安装的HOMEBREDGE,HA,HB都装了。homebridge启动LOG如下:

pi@hassbian:/etc/mosquitto/ca_certificates $ homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat? ... ServiceRegister>
[2017-10-29 11:08:29] Warning: skipping plugin found at '/usr/lib/node_modules/homebridge-homeassistant' since we already loaded the same plugin from '/usr/local/lib/node_modules/homebridge-homeassistant'.
[2017-10-29 11:08:29] Loaded plugin: homebridge-aqara
[2017-10-29 11:08:29] Registering platform 'homebridge-aqara.AqaraPlatform'
[2017-10-29 11:08:29] ---
[2017-10-29 11:08:30] Loaded plugin: homebridge-homeassistant
[2017-10-29 11:08:30] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2017-10-29 11:08:30] ---
[2017-10-29 11:08:30] Loaded plugin: homebridge-mi-aqara
[2017-10-29 11:08:30] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform'
[2017-10-29 11:08:30] ---
[2017-10-29 11:08:31] Loaded plugin: homebridge-mqtt
homebridge API version: 2.2
[2017-10-29 11:08:31] Registering platform 'homebridge-mqtt.mqtt'
[2017-10-29 11:08:31] ---
[2017-10-29 11:08:31] Loaded config.json with 0 accessories and 2 platforms.
[2017-10-29 11:08:31] ---
[2017-10-29 11:08:31] Loading 2 platforms...
[2017-10-29 11:08:31] [AqaraPlatform] Initializing AqaraPlatform platform...
[2017-10-29 11:08:31] [mqtt] Initializing mqtt platform...
[2017-10-29 11:08:31] [mqtt] homebridge-mqtt v0.4.5
Load homebridge-mi-aqara.MiAqaraPlatform
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ XXX09-XXX          │     
    └────────────┘     

[2017-10-29 11:08:31] [mqtt] Number of cached Accessories: 0
fs.js:682
  return binding.read(fd, buffer, offset, length, position);
                 ^


Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:682:18)
    at tryReadSync (fs.js:543:20)
    at Object.fs.readFileSync (fs.js:586:19)
    at Model.start (/usr/local/lib/node_modules/homebridge-mqtt/lib/model.js:51:23)
    at Controller.start (/usr/local/lib/node_modules/homebridge-mqtt/lib/controller.js:345:14)
    at PluginPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-mqtt/index.js:69:23)
    at emitNone (events.js:110:20)
    at API.emit (events.js:207:7)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:97:13)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)

pi@hassbian:/etc/mosquitto/ca_certificates $



homebridge的配置文件如下:
pi@hassbian:/etc/mosquitto/ca_certificates $ cat ~/.homebridge/config.json
     {
        "bridge": {
                "name": "RASPBERRY",
                "username": "B8:27:EB:60:32:74",
                "port": 51926,
                "pin": "347-09-800"
                },

        "platforms": [
                {
                "platform": "AqaraPlatform",
                "sid": ["34ce00fb4fd4"],
                "password": ["yk4ja29mn66nvt6d"]
                },
                {
                "platform": "mqtt",
                "name": "mqtt",
                "url": "mqtt://127.0.0.1",
                "port": 61613,
                "topic_type": "multiple",
                "topic_prefix": "homebridge",
                "username": "admin",
                "password": "password",
                "cert": "/etc/mosquitto/certs",
                "key": "/etc/mosquitto/certs",
                "ca": "/etc/mosquitto/ca_certificate.pem"
                }]
        }



1.紫色这里怎么解决?应该是无所谓,但是强迫症看着不爽。
2.红色区域错误怎么解决,请教各位大神。

需要什么其他信息,我随时补上。谢谢~~~

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-10 03:14 , Processed in 0.044811 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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