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

 找回密码
 立即注册
查看: 3109|回复: 1

[技术探讨] homebridge使用Yeelight灯出错

[复制链接]

164

主题

617

帖子

3639

积分

论坛元老

Rank: 8Rank: 8

积分
3639
金钱
3017
HASS币
0
发表于 2017-12-6 09:34:52 | 显示全部楼层 |阅读模式
本帖最后由 ptlzx 于 2017-12-6 09:38 编辑

设备群晖、小米网关、Yeelight灯泡,帮忙看看问题出在哪?

config.json
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:56",
        "port": 56688,
        "pin": "666-55-999"
    },
    "platforms": [
        {
            "platform": "AqaraPlatform",
            "sid": [
                "7831DCA57FBE"
            ],
            "password": [
                "no3zhxih0532bbcx"
        },
        {
            "platform": "yeelight",
            "name": "Yeelight"
        }
    ],
    "accessories": [
        {
            "accessory": "Synology",
            "name": "Synology_NAS",
            "ip": "192.168.1.55",
            "mac": "00:11:35:70:6F:68",
            "port": "5000",
            "secure": false,
            "account": "ptlzx",
            "password": "1234567890",
            "version": 6
        }
}

install.sh
#!/bin/bash
apt-get install libavahi-compat-libdnssd-dev
npm install -g homebridge-aqara
npm install -g homebridge-yeelight
npm install -g homebridge-synology
.
.
.
.
.
.
===========================================
错误日志:
===========================================
failed to load BLE module!
[2017-12-5 12:37:34] Loaded plugin: homebridge-yeelight
[2017-12-5 12:37:34] Registering platform 'homebridge-yeelight.yeelight'
[2017-12-5 12:37:34] ---
[2017-12-5 12:37:34] Loaded config.json with 1 accessories and 2 platforms.
[2017-12-5 12:37:34] ---
[2017-12-5 12:37:34] Loading 2 platforms...
[2017-12-5 12:37:34] Initializing AqaraPlatform platform...
[2017-12-5 12:37:34] [Yeelight] Initializing yeelight platform...
[2017-12-5 12:37:34] [Yeelight] YeePlatform Init
[2017-12-5 12:37:34] Loading 1 accessories...
[2017-12-5 12:37:34] [Synology_NAS] Initializing Synology accessory...
[2017-12-5 12:37:34] [Synology_NAS] s
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 666-55-999 │     
    └────────────┘     

[2017-12-5 12:37:34] [Yeelight] DidFinishLaunching
no ble cap, skip ble device discovery
[2017-12-5 12:37:34] Homebridge is running on port 56688.
add to multicast group
listen on 0.0.0.0
no did or loc found!
[2017-12-5 12:37:34] [Yeelight] found dev: 71df3f
already in device list!
connect ok!
[2017-12-5 12:37:34] [Yeelight] accesseory reachable
[2017-12-5 12:37:34] [Yeelight] dev connected 0x000000000371df3f true
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}


……


{"id":-1,"method":"get_prop","params":["power"]}
already in device list!
already in device list!
already in device list!
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}
send hb to: 0x000000000371df3f
{"id":-1,"method":"get_prop","params":["power"]}
send hb to: 0x000000000371df3f


……


{"id":-1,"method":"get_prop","params":["power"]}
/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:75
    var gatewaySid = this.gatewaySids[accessory.UUID];
                                               ^

TypeError: Cannot read property 'UUID' of undefined
    at AqaraAccessoryFactory.autoRemoveAccessory (/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:75:48)
    at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraPlatform.js:103:15)
    at ontimeout (timers.js:469:11)
    at tryOnTimeout (timers.js:304:5)

    at Timer.listOnTimeout (timers.js:264:5)

回复

使用道具 举报

1

主题

14

帖子

54

积分

注册会员

Rank: 2

积分
54
金钱
40
HASS币
0
发表于 2017-12-15 16:55:45 | 显示全部楼层
直接操作heelight可以吗
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-25 20:28 , Processed in 0.046299 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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