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
Help for webhook #22
Comments
You need to add parameter: „webhook_server_ip_or_name“ with ip of the server you running homebridge on. After that startimg homebridge should print a message about registering a callback. Thats it ;-) |
tried it, but homebridge crashes all the time. config looks like this this said homebridge: Mär 07 21:03:13 raspberrypideconz homebridge[26544]: [2018-3-7 21:03:13] [NukiBridge] Initializing NukiBridge platform... |
First of all, „127.0.0.1“ will not work, you need to enter the ip of the raspberry in your local network. Should be something like „192.168.10.xxx“ according to your nuki bridge ip. |
if I add the webhook home bridge crashes every time. Mär 07 21:27:37 raspberrypideconz systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE |
Sorry but this is the log for the service. The first log you send was the correct one, it was only missing the lines with the error. Please send the complete homebridge log. |
Mär 08 07:25:40 raspberrypideconz systemd[1]: Started Node.js HomeKit Server. |
I see no error. |
Could you post what you see when you open http://192.168.10.54:8080/callback/list?token=s5xxx with your browser? |
{"callbacks": [{"id": 0, "url": "http://192.168.10.54:51831/"},{"id": 1, "url": "http://192.168.10.68:51827/"},{"id": 2, "url": "http://127.0.0.1:51827/"}]} |
Could you execute http://192.168.10.54:8080/callback/remove?token=s5xxx&id=0 |
same problem. for you IP 54 is Nuki Bridge |
What does the output of http://192.168.10.54:8080/callback/list?token=s5xxx looks like, now? |
{"callbacks": [{"id": 1, "url": "http://192.168.10.68:8080:51827/"}]} |
Ok this looks good, now. Could you post the log now again? |
Mär 08 21:41:59 raspberrypideconz homebridge[10806]: [2018-3-8 21:41:59] [Hue] Initializing Hue platform... |
seems callback has two port in IP 8080 and 51827. [NukiBridge] Request to Nuki bridge 'http://192.168.10.54:8080' finished with status code '200' and body '{"callbacks": [{"id": 0, "url": "http://192.168.10.68:51827/"},{"id": 1, "url": "http://192.168.10.68:8080:51827/"}]}'. null |
ok fixed this with the two ports, but same problem. |
How did the port 8080 came in there? How did you fix it? |
Could you post the log again, but as txt file. Seems to be cut of here every time. |
I tried different things, but nothing worked. So I removed the port like your 3 times ;) I killed the other plugin now for test, so more easy. Mär 08 22:04:45 raspberrypideconz homebridge[18133]: [2018-3-8 22:04:45] Loaded plugin: homebridge-hue |
the port for web hook must be the same port like for HomeBridge? |
The log is cut off again. Please post as txt file. |
No it must be a free port on the raspberry. |
ok, seems the port was the problem. log is fine nuki pls see attached |
Ok, have fun. |
thanks a lot. maybe add to your example config that the webhook must be the IP of the HomeBridge Server and that the port must be different. :) |
Added comments in read me. |
Hi,
I have a problem to configure webhook correct in the config.json.
Can you help and give me examples?
Homebridge has this config
{
"bridge" : {
"username" : "CD:22:3D:E3:XX:XX",
"name" : "Homebridge",
"pin" : "031-45-XXX",
"port" : 51827
},
Nuki Plugin config:
{
"api_token" : "xxxx",
"bridge_url" : "192.168.10.12:8080",
"cache_directory" : "./.node-persist/storage",
"lock_state_mode" : 0,
"add_maintainance_buttons" : false,
"platform" : "NukiBridge",
"request_timeout_lockstate" : 5000,
"locks" : [
{
"id" : "261XXX5",
"usesDoorLatch" : true,
"name" : "Tuer",
"priority" : 1
}
],
"request_timeout_lockaction" : 30000
}
thanks for your help.
The text was updated successfully, but these errors were encountered: