-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting: nb: fatal: TypeError: #4
Comments
That’s not good. As a workaround, could you try |
I tried that too, but unfortunately the message remains the same. If it helps, every 10 minutes I get this entry in the status log of Homebridge: [12/1/2020, 5:27:22 AM] [Nuki] warning: TypeError: host: undefined: not an integer |
Huh? What version did you install?
Can you please try:
I don't think that's related to the |
Version installed is: homebridge-nb v0.0.5 I tried a downgrade before contacting you to look if it solves the problem, but it didnt so i updated back to 0.0.5. Here is the output from nb -DD -H x Discover: homebridge@ubuntu:/var/lib/homebridge$ nb -DD -H x discover |
That is weird, the response from the Nuki portal doesn't include your bridge's local IP address. I didn't know it could report a bridge without one (I would have expected an empty list instead). You need to enable something on the Nuki bridge for it to be discoverable. |
Bug fix: TypeError when Nuki portal returns bridge without local IP and port.
v0.0.6 should fix the TypeErrors. |
Could it be a problem that i am using the nuki software bridge via android instead of a hardware one? On that software bridge i dont have any button i could push to make it discoverable. |
I have no idea. I read about the software bridge in the API documentation, but I haven’t been able to find it for download. Does it run only on Android? The button on the hardware bridge is to obtain the API token, not to make it discoverable. |
Software bridge seems to be Android only: https://play.google.com/store/apps/details?id=io.nuki.bridge&hl=de&gl=US There is an option to generate a token on the nuki web interface. Can that be used to insert that generated token into the plugin somehow? It shows an oauth2 API Key there too, is that useful? |
You can feed the token (and the bridge’s IP address) to Could you check that |
I found out that the Token can be received on the software bridge app under settings, so i have that token now, but i dont know now where to put it. If i use this request: http://192.168.178.60:8080/list?token=****** i get this: [{"nukiId":**********,"name":"Zuhause","lastKnownState":{"state":1,"stateName":"locked","batteryCritical":false,"timestamp":"2020-12-02T03:17:49+01:00"}}] |
The |
Hello,
im getting this Error all the time for a fresh homebrindge-nb installation.
homebridge@ubuntu:/var/lib/homebridge$ nb discover
nb: fatal: TypeError: Cannot read property 'split' of undefined
at Main.parseArguments (/usr/lib/node_modules/homebridge-nb/cli/nb.js:328:29)
at Main.main (/usr/lib/node_modules/homebridge-nb/cli/nb.js:336:27)
at Object. (/usr/lib/node_modules/homebridge-nb/cli/nb.js:586:12)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
It seems that no matter which command I use, the same error always occurs.
The text was updated successfully, but these errors were encountered: