snOOrz / homebridge-aqara

HomeBridge plugin for Aqara gateway and devices
536 stars 74 forks source link

odd: No password for gateway 286c07fa3***, please edit ~/.homebridge/config.json while password was well configured already. #56

Open wey-gu opened 7 years ago

wey-gu commented 7 years ago

Dear all,

Could you kindly help look into this issue? it's killing me these days. Many thanks!

The Lumi 86 double switch for "火零" cannot be controlled via homekit and No password was raised.

Mar 31 22:55:02 raspberrypi homebridge[504]: Fri, 31 Mar 2017 14:55:02 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":9,"iid":9,"value":1}]
Mar 31 22:55:02 raspberrypi homebridge[504]: Fri, 31 Mar 2017 14:55:02 GMT Accessory [Homebridge] Setting Characteristic "On" to value 1
Mar 31 22:55:02 raspberrypi homebridge[504]: [2017-3-31 22:55:02] **No password for gateway 286c07fa3***, please edit ~/.homebridge/config.json**
Mar 31 22:55:02 raspberrypi homebridge[504]: Fri, 31 Mar 2017 14:55:02 GMT EventedHTTPServer [::ffff:192.168.1.23] Muting event '9.9' notification for this connection since it originated here.
Mar 31 22:55:03 raspberrypi homebridge[504]: Fri, 31 Mar 2017 14:55:03 GMT EventedHTTPServer [::ffff:192.168.1.32] Sending HTTP event '9.9' with data: {"characteristics":[{"aid":9,"iid":9,"value":1}]}
Mar 31 22:55:03 raspberrypi homebridge[504]: Fri, 31 Mar 2017 14:55:03 GMT EventedHTTPServer [::ffff:192.168.1.23] HTTP Response is finished

Below is my config.json file

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 58463,
        "pin": "012-34-***"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "platforms": [{
        "platform": "AqaraPlatform",
        "fakeLightBulbForLightSwitch": true,
        "sid": ["286C07FA337C"],
        "password": ["***"]
    }, {
        "platform": "yeelight",
        "name": "yeelight"
    }],
    "accessories": [
        {
            "accessory": "Synology",
            "name": "MicroServer",
            "ip": "192.168.1.71",
            "mac": "00:11:32:***",
            "port": "5000",
            "secure": false,
            "account": "admin",
            "password": "***",
            "version": 6
        }
    ]
}
root@raspberrypi:~# npm -g la homebridge

│ /usr/local/lib
│
└── homebridge@0.4.16
    HomeKit support for the impatient
    git://github.com/nfarina/homebridge.git
    https://github.com/nfarina/homebridge#readme

root@raspberrypi:~# npm -g la homebridge-aqara

│ /usr/local/lib
│
└── homebridge-aqara@0.1.9
    Aqara plugin for homebridge: https://github.com/nfarina/homebridge
    git+https://github.com/snOOrz/homebridge-aqara.git
    https://github.com/snOOrz/homebridge-aqara#readme

root@raspberrypi:~# npm -g la homebridge-yeelight

│ /usr/local/lib
│
└── homebridge-yeelight@0.0.14
    Yeelight plugin for homebridge: https://github.com/nfarina/homebridge
    git://github.com/vvpossible/homebridge_yeelight.git
    https://github.com/vvpossible/homebridge_yeelight#readme
wey-gu commented 7 years ago

Solved: the reason is the mac address i gave in config.json was Uppercase, while homebridge-aqara load password from config(gatewayMacAddress_in_Lowercase)... solution: change sid from AABBCCDDEE into aabbccddee :-)