kvj / hass_nuki_ng

Better support for Nuki devices in the Home Assistant
MIT License
185 stars 36 forks source link

Web api vs bridge (local) api #36

Open weemaba999 opened 2 years ago

weemaba999 commented 2 years ago

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 commented 2 years ago

Hi,

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

Thanks in advance !

Kr,

Bart

alexdelprete commented 2 years ago

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 commented 2 years ago

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

nuki_ng logs could also be very helpful

weemaba999 commented 2 years ago

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)

Developer :

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

I do have the exact same behaviour as weemaba.