Skip to content
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

Web api vs bridge (local) api #36

Open
weemaba999 opened this issue Jan 25, 2022 · 9 comments
Open

Web api vs bridge (local) api #36

weemaba999 opened this issue Jan 25, 2022 · 9 comments

Comments

@weemaba999
Copy link

Hi,

First of all let me say that I'm really thankfull about the hard work that you are doing !

I successfully installed the nuki_ng integration using the web api, and only the web api. For some reason, while I try to enter the bridge api (with or without the web api), the integration freezes and I've never accomplished to get the local bridge api working.

Why is this important ? Because I've got no thrustworthy states of my door sensor. I think that the web api is 'too slow' to handle open and closed states of my door.

Could you please help ? A lot of automations (with regards to front-door lightning etc) are depending on my door state of nuki.

I'm using nuki 2.0, and bridge + lock are up to date with latest firmware

Thanks in advance !

Kr,

Bart

@weemaba999
Copy link
Author

Hi,

Has anyone got the time to have a look at this ?

Thanks in advance !

Kr,

Bart

@alexdelprete
Copy link
Contributor

For some reason, while I try to enter the bridge api (with or without the web api), the integration freezes and I've never accomplished to get the local bridge api working.

Explain step-by-step how you are configuring the component for the bridge API so we can understand what is going wrong. The component works perfectly with the bridge, there are many users using it, so I'm quite sure something is not working in your setup or you're not configuring it properly.

Show us what parameters you are using and which fields you are filling with what, you can also post screenshots if you prefer.

@kvj
Copy link
Owner

kvj commented Jan 31, 2022

Has anyone got the time to have a look at this ?

nuki_ng logs could also be very helpful

@weemaba999
Copy link
Author

Hi @kvj, @alexdelprete ,

Please find below my configuration of the bridge.

(I had some pictures ready, but it seems that it's not possible to enter screenshots)

In my nuki app, I have following config:

Bridge is connected to the internet & the network (green)

  • Bridge ID
  • Firmwareversion : 2.11.0

Developer :

  • API fast development : on
  • HTTP api : on
  • IP-adress: same segment as my HA
  • Port : 8080
  • API-marking : 2jia****

In the nuki_ng config, I was able to configure the WEB aPI, but the WEB API only. When I try to configure the local bridge api, it loads, but keeps loading until I manually exit. Can't be configured.
Where can I get the nuki_ng logs ?

Kr,

Bart

@alexdelprete
Copy link
Contributor

Bart,

I was referring to the screenshot of the configuration dialog box of the HA integration, this one, please put the screenshot right after you fill in all the info and before submitting, keep in mind that the bridge doesn't support SSL, so if your HA installation is SSL only, the bridge will never be able to contact HA:

image

(I had some pictures ready, but it seems that it's not possible to enter screenshots)

In order to insert screenshots here, just copy the image (ctrl-c) and paste it (ctrl-v).

@SaSa1983
Copy link

SaSa1983 commented Feb 2, 2022

I have a similar issue.
I'm using the bridge with the same firmware version and local API enabled.
The local API is based enabled and runs on port 8080 (http) on the bridge.

image

@SaSa1983
Copy link

SaSa1983 commented Feb 2, 2022

For me the problem was solved... It was my fault.
I wrote the web api token in the form field of the bridge api token and vice versa.

@kvj
Copy link
Owner

kvj commented Feb 2, 2022

Thanks for sharing, at least there's an error message shown.
I'm quite surprised that @weemaba999 gets no error message and just a spinner

@beber-msft
Copy link

I do have the exact same behaviour as weemaba.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants