YinHangCode / homebridge-mi-aqara

a homebridge plugin for XiaoMi Aqara plugin.
1.08k stars 154 forks source link

Devices doesn't appear in Homekit & Gateway light doesn't work #285

Open jackdownson opened 4 years ago

jackdownson commented 4 years ago

Hi! I've installed with pain this module and now I can see the hub in homekit. Now I'm trying to add devices to homekit with JSON in config.json at my hub.

{ "bridge": { "name": "Homebridge 54E4", "username": "0E:D6:52:92:54:E4", "port": 51567, "pin": "916-64-630" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" }, { "platform": "MiAqaraPlatform", "manage": { "port": 11128, "password": "admin" }, "gateways": { "04cf8cb0ad64": "E74381D95AFF4F4C" }, "defaultValue": { "158d00030A0FC0": { "SingleSwitch_Switch": { "name": "ligth", "serviceType": "SingleSwitch" } } } } ] }

And it returns 0 devices. I've checked the ID of device, I've implemented the "0 absence in MAC in the index.js of this module. JSONLint says my json is correct. Also I got this message in log when homekit taps to light or another device of Gateway:

4/22/2020, 21:42:32] [MiAqaraPlatform] [ERROR]TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined [4/22/2020, 21:42:32] [MiAqaraPlatform] [ERROR]TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined [4/22/2020, 21:42:32] [MiAqaraPlatform] [ERROR]TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined [4/22/2020, 21:42:32] [MiAqaraPlatform] [ERROR]TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined Снимок экрана 2020-04-22 в 21 42 53

Really don't undestand what I' missing

jackdownson commented 4 years ago

Also I tried several times this issue: https://github.com/YinHangCode/homebridge-mi-aqara/issues/188#issuecomment-399710222 where author offers to change a pass to Gateway several times.

jackdownson commented 4 years ago

Anybody?

jackdownson commented 4 years ago

Hey dudes

xrust83 commented 4 years ago

https://github.com/HolmesZhao/homebridge-mi-aqara#readme