ebaauw / homebridge-nb

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

Callback remove #113

Closed Twisi closed 1 year ago

Twisi commented 1 year ago

Hi, I have a problem with deleting the callback. When I enter the command "nb -H X.X.X.X:8080 -T (token) callbackList" 3 callbacks are displayed. When I enter the command "nb callbackRemove" it shows "nb: fatal: Missing host. Set NB_HOST or specify -H.". So how do I clear the callback? Thank you

ebaauw commented 1 year ago

You need to specify the host (and token), just as for the callbackList.

Twisi commented 1 year ago

Yes, I did: nb -H X.X.X.X:8080 -T (token) callbackRemove. Then ID missing: nb callbackRemove: fatal: parameter id missing usage: nb callbackRemove [-h] id. I add -h and ID and this is there: Remove Nuki bridge subscription.

Usage: callbackRemove [-h] id

Parameters: -h, --help Print this help and exit.

id Remove callback with ID id (from nb callbackList).

See https://github.com/ebaauw/homebridge-nb for more info.

Thank you very much

ebaauw commented 1 year ago

You need to tell it which callback you want to remove.

Twisi commented 1 year ago

I have it. I used -h before the ID. That was the mistake. Thank you