Homebridge plugin


#166

树莓派和灯是一个网络吗? 贴一下树莓派上homebrige的log吧


#168

我输入下面这两个命令
tail -f /var/log/homebridge.log
tail -f /var/log/homebridge.err
都提示没有相关的文件,还有其他的办法提供homebridge的log吗?


#169

ps -ef |grep homebrige 能看到吗?


#170

也看不到。
我使用命令 DEBUG=* homebridge -D
这个是否有用?
*** WARNING *** The program ‘nodejs’ 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=nodejs
*** WARNING *** The program ‘nodejs’ 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?s=libdns_sd&e=nodejs&f=DNSServiceRegister
[7/28/2017, 12:50:33 PM] Loaded plugin: homebridge–log
7/28/2017, 12:50:33 PM > [7/28/2017, 12:50:33 PM] —
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Loaded plugin: homebridge-homeassistant
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Registering platform ‘homebridge-homeassistant.HomeAssistant’
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] —
7/28/2017, 12:50:34 PM > failed to load BLE module!
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Loaded plugin: homebridge-yeelight
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Registering platform ‘homebridge-yeelight.yeelight’
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] —
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Loaded config.json with 0 accessories and 1 platforms.
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] —
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Loading 1 platforms…
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] [yeelight] Initializing yeelight platform…
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] [yeelight] YeePlatform Init
7/28/2017, 12:50:34 PM > Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
7/28/2017, 12:50:34 PM >
7/28/2017, 12:50:34 PM > ┌────────────┐
7/28/2017, 12:50:34 PM > │ 031-45-154 │
7/28/2017, 12:50:34 PM > └────────────┘
7/28/2017, 12:50:34 PM >
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] [yeelight] DidFinishLaunching
7/28/2017, 12:50:34 PM > no ble cap, skip ble device discovery
EventedHTTPServer Server listening on port 51825 +0ms
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] Homebridge is running on port 51825.
7/28/2017, 12:50:34 PM > add to multicast group
7/28/2017, 12:50:34 PM > listen on 0.0.0.0
7/28/2017, 12:50:34 PM > no did or loc found!
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] [yeelight] cached accessory: 0x0000000002b462ad
7/28/2017, 12:50:34 PM > already in device list!
7/28/2017, 12:50:34 PM > connect ok!
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] [yeelight] accesseory reachable
7/28/2017, 12:50:34 PM > [7/28/2017, 12:50:34 PM] [yeelight] dev connected 0x0000000002b462ad true
Accessory Reachability update is no longer being supported. +161ms
EventedHTTPServer [::ffff:10.0.0.10] New connection from client +886ms
EventedHTTPServer [::ffff:10.0.0.10] HTTP server listening on port 44081 +6ms
EventedHTTPServer [::ffff:10.0.0.10] HTTP request: /pair-verify +43ms
HAPServer [18:00:27:40:BC:1B] HAP Request: POST /pair-verify +2ms
EventedHTTPServer [::ffff:10.0.0.10] HTTP Response is finished +33ms
EventedHTTPServer [::ffff:10.0.0.10] Client connection closed +30ms
EventedHTTPServer [::ffff:10.0.0.10] HTTP connection was closed +4ms
EventedHTTPServer [::ffff:10.0.0.10] HTTP server was closed +2ms
7/28/2017, 12:50:44 PM > send hb to: 0x0000000002b462ad
7/28/2017, 12:50:44 PM > {“id”:-1,“method”:“get_prop”,“params”:[“power”]}
7/28/2017, 12:50:54 PM > send hb to: 0x0000000002b462ad
7/28/2017, 12:50:54 PM > {“id”:-1,“method”:“get_prop”,“params”:[“power”]}


#171

这个log显示已经发现灯了,并且开始心跳了


#172

I got the same thing:

[2017-07-30 10:36:56] [yeelight] found dev: 32f677 already in device list! connect ok! [2017-07-30 10:36:56] [yeelight] accesseory reachable [2017-07-30 10:36:56] [yeelight] dev connected 0x000000000332f677 true send hb to: 0x000000000332f677 {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332f677 {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332f677 {"id":-1,"method":"get_prop","params":["power"]}

The “send hb to” lines keep popping up but after a while, Yeebridge shows “No Response” in Home app.


#173

@weiwei 执行homebridge时出现如下错误,麻烦帮忙解决一下,谢谢。插件包括yeelight aqara。
*** 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=libd ns_sd&e=node>
*** WARNING *** The program ‘node’ called ‘DNSServiceRegister()’ which is not su pported (or only supported partially) in the Apple Bonjour compatibility layer o f Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=node&f=DNSServiceRegister>
[8/3/2017, 4:10:01 PM] Loaded plugin: homebridge-mi-aqara
/usr/local/lib/node_modules/homebridge-mi-aqara/MiAqaraPlatform.js:27
const iv = Buffer.from([0x17, 0x99, 0x6d, 0x09, 0x3d, 0x28, 0xdd, 0xb3, 0xba, 0x 69, 0x5a, 0x2e, 0x6f, 0x58, 0x56, 0x2e]);
^

TypeError: this is not a typed array.
at Function.from (native)
at Object. (/usr/local/lib/node_modules/homebridge-mi-aqara/MiAqa raPlatform.js:27:19)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Plugin.module.exports [as initializer] (/usr/local/lib/node_modules/homeb ridge-mi-aqara/index.js:2:3)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js: 150:14)


#174

这是aqara的错误。。。 和yeelight插件没有关系

/usr/local/lib/node_modules/homebridge-mi-aqara/MiAqaraPlatform.js:27


#175

可以帮忙看看是什么问题吗?
sudo npm install -g homebridge-mi-aqara;
将config.json按照你的要求,写了两个platform,但是报错了~;
能帮忙看看吗?


#176

@weiwei谢谢~


#177

Hi, is there a link to plugin to be installed for mac?


#178

Hi, this is going to be a stupid question but i have set up Mint in a VM to run this and installed with this command:
npm install -g homebrige-yeelight

But I can’t find the config.json file to update the name of my lights/room. So it working, but its working with ‘Default Room’ and some random text for the light (or what siri says is turned off)

Please forgive me I have never used linux prior to 5 hours ago when I started this process…


#179

OMG SO STUPID.
I couldn’t work that out for over an hour, and just found the settings in the home app…

my bad…


#180

Perfect, thank you for all your work! I am able to control my Yeelight via a Raspberry Pi.


#181

Can I somehow have yeelight effects in homekit?
For e.g. blinking or color transitions


#182

怎样关闭这个提示呢,几秒一次跳出太频繁,影响查看其他信息了:laughing:


#183

知道源代码,注释掉


#184

已经安装好了在那里改呢?


#185

find / -name yee.js

进到yee.js里面,找这个心跳的字符串,然后注释


#186

Is there a way to name the devices from the configuration?