Closed Bmkenny closed 2 years ago
The Bluetooth Rest won't be detected automatically. You need to go into your config and at it based on MAC address
I know. I have added it there but it’s still not being added and I don’t get any json errors when saving the config. Am I supposed to add it directly to the json file or through the plug in? Any ideas would be greatly appreciated.
Thanks!
You can add it via homebridge-config-ui-x
, which has a nice UI to make sure you have everything structured properly
@Bmkenny any luck?
I am having this same issue. Running Homebridge on Windows 10, confirmed I have BTLE, followed instructions exactly. But HB doesn't seem to add it as an accessory? I can't even see it to control it in HB much less HK. What am I missing?
@Twileyskunk do you have any logs to show what's happening?
Sure. Looks like there is an error connecting to the API, and it says "address family not supported by protocol"?
Would you mind posting the full error from the logs?
HatchBabyRest] Error connecting to API
[9/19/2021, 8:17:02 PM] [HatchBabyRest] Error: EAFNOSUPPORT, Address family not supported by protocol
at new Hci (/homebridge/node_modules/homebridge-hatch-baby-rest/node_modules/@abandonware/noble/lib/hci-socket/hci.js:80:18)
at new NobleBindings (/homebridge/node_modules/homebridge-hatch-baby-rest/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:25:15)
at module.exports (/homebridge/node_modules/homebridge-hatch-baby-rest/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
at Object.
What hardware/OS are you using to run homebridge? Does it have a Bluetooth LE adapter? Could you post your config (without your Hatch username/password)?
Running HB on a Dell machine with Windows 10. Yes it does have BT LE adapter plugged in. My config as follows (with UN/PW removed):
email": " XXXXXX@gmail.com", "password": "XXXXX", "restLights": [ { "name": "Nursery", "macAddress": "CF:49:A4:64:BB:2B" } ], "platform": "HatchBabyRest" }
I don't see anything out of the ordinary. My guess is the noble
package simply doesn't like something with your computer/bluetooth hardware. Unfortunately it's not something I can debug 😞. I think most users use a raspberry pi, so consider setting one of those up as your homebridge server
Mine also doesn’t work. Shows up in HomeKit, but nothing works at all.
I'm really not doing much maintenance on the bluetooth side of this plugin any longer. For the best experience, I recommend buying one of the newer wifi lights from Hatch. The bluetooth is just too complicated given the hardware requirements, and the fact that bluetooth warries widely between different devices (rpi vs mac vs ...). PRs welcome if anyone finds improvements.
Hi,
I've followed the instructions and updated to the newest version of the plugin and my bluetooth rest won't add to homekit. My wifi rest works fine. Can someone please help?
Thanks!