ebaauw / homebridge-nb

Homebridge plugin for Nuki Bridge
Apache License 2.0
52 stars 3 forks source link

No accessory visible after initial installation #73

Closed bondskin closed 2 years ago

bondskin commented 2 years ago

Hi,

I have installed the plugin and it appears to be working correctly, however no accessory is showing up in my Homekit

Where is my mistake please? Also the child bridge is not visible in Homekit API is enabled in the Nuki Web app

[03/07/2022, 09:36:43] [Nuki] Initializing NB platform... [03/07/2022, 09:36:43] [Nuki] Initializing child bridge 0E:E9:0B:A1:2A:12 [03/07/2022, 09:36:45] [Nuki] Loaded homebridge-nb v1.2.8 child bridge successfully [03/07/2022, 09:36:45] Loaded 0 cached accessories from cachedAccessories.0EE90BA12A12. [03/07/2022, 09:36:45] [Nuki] homebridge-nb v1.2.8, node v16.15.1, homebridge v1.5.0, homebridge-lib v5.6.1 [03/07/2022, 09:36:45] Homebridge v1.5.0 (HAP v0.10.2) (Nuki) is running on port 35621. [03/07/2022, 09:36:45] [Nuki] hardware: Raspberry Pi 4B 1.1 (2GB) [03/07/2022, 09:36:45] [Nuki] os: Raspbian GNU/Linux 10 (buster) [03/07/2022, 09:36:45] [Nuki] warning: recommended version: homebridge v1.4.1 [03/07/2022, 09:36:45] [Nuki] Launched child bridge with PID 27997

    {
        "name": "Nuki",
        "latch": true,
        "platform": "NB",
        "_bridge": {
            "username": "0E:E9:0B:A1:2A:12",
            "port": 35621
        }
    }
ebaauw commented 2 years ago

Did you pair the child bridge with HomeKit?

bondskin commented 2 years ago

Damn... thanks @ebaauw , very valid point. No, I did not. But I cannot see a QR or setup code anywhere in the HB log

bondskin commented 2 years ago

So bridge paired, thanks! But still no devices

[03/07/2022, 12:39:08] [Nuki] Loaded homebridge-nb v1.2.8 child bridge successfully [03/07/2022, 12:39:08] Loaded 0 cached accessories from cachedAccessories.0EE90BA12A12.

IMG_1714B4751ABC-1

bondskin commented 2 years ago

pi@raspberrypi:~ $ nb discover []

bondskin commented 2 years ago

There was also no opportunity / message yet, to push the button on the bridge.

ebaauw commented 2 years ago

Make sure the bridge is discoverable and the API is enabled in the Nuki app. Power cycle the bridge. Make sure there's no firewall blocking access from the bridge to the Nuki discovery server.

funky0888888 commented 2 years ago

Hi same issue after reinstalling my homebridge. The nuki bridge is not discovered under 1.5.0

bondskin commented 2 years ago

Not sure what "API is enabled in the Nuki app" means? I have enabled the API in the Nuki web but this does not have any effect. Restarting the Bridge does also not help. Restarting HB has no effect.

ebaauw commented 2 years ago

In the Nuki app, go to Manage My Devices, select Bridge, select your bridge, hold the button on the bridge as instructed to get to the map showing the Bridge and connected devices. Press on the bridge to go to the bridge settings. Make sure API Quick Discovery and HTTP API are enbled, and press Save to save the settings. Then Done to reboot the bridge.

After that, nb discover should find the bridge. If not, there's probably an issue with your Internet connection or firewall.

funky0888888 commented 2 years ago

Hi ebaauw, other plugins find the Nuki Bridge. Unfortunately not yours, I think it's more your plugin than our network

ebaauw commented 2 years ago

So use those other plugins instead of my crappy one.

funky0888888 commented 2 years ago

Thanks for helping!

bondskin commented 2 years ago

Dear @ebaauw ,

Thank you for the instructions. Indeed the HTTP API option was disabled, following your instructions I was able to complete the setup.