Giter Club home page Giter Club logo

Comments (14)

alexdelprete avatar alexdelprete commented on September 27, 2024 1

Sorry, I didn't notice the second callback.

The callback list has to have 1 entry, the one configured by the component. And it has to have the correct ip/port. That's the basic thing to check when debugging callback issues. If you notice multiple entries, there's a problem...

We should enforce callback list checks in the component, making sure the callback is correct and avoid multiple callbacks or at least making sure the component's callback is in first position.

from hass_nuki_ng.

alexdelprete avatar alexdelprete commented on September 27, 2024

All users have immediate updates, when the callback is working, this was the primary reason why the component was developed. Your problem is that the callback isn't working, but if you don't provide info we can't try to help you. Check logs for errors, and make sure HA is not hardened via SSL on local network: the bridge can't call an https url, it's a limitation of the bridge.

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

Got it, sorry, I just wasn't sure. Thanks for a quick response! I am not using HTTPS/SSL and the address in the callback looks correct. What info would you please need?

This is what the callback shows (the second one is the right one, first one is some old one).
image
)
Nothing is logged in the logs.

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

I removed the previous callback (so only the one with ID1 is there) but the result is still the same. Nothing is logged in Core logs.

If I open the door for 5 sec and then close them, it is not recognized. I have to keep them for longer time (that 30 secs is close) for HA to pick it up.

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

Ha, now looking at the callback, it doesn't have the right port in it 🤦

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

OK, that was it. Apologies. But I would propose mentioning this in the README - I used the default "discovered" default values when adding the integration and the IP was correct, but the port wasn't there. Thank you a lot for helping!

from hass_nuki_ng.

alexdelprete avatar alexdelprete commented on September 27, 2024

Ha, now looking at the callback, it doesn't have the right port in it 🤦

From your screenshot, the callback has 8123, it was autodetected but it was wrong? Strange...are you using a proxy or something?

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

The first callback was wrong, that was from old Nuki card. The second one was the one added by this integration and that one has :8123 missing at the end of the IP. When I added :8123 to the Homeassistant URL when setting up the integration, I got it working.

I am not using any proxy or anything.

from hass_nuki_ng.

alexdelprete avatar alexdelprete commented on September 27, 2024

In the post above, where you posted the screenshot, I see 8123, but in that post you say it's not working...

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

The callback#0 has it in, but that's some very old callback IP that is wrong (it has 8123 in it, but the IP is wrong). The second one has correct IP (192.168.0.202) but it's missing the port.

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

Agree, that would likely make it much safer. At least mentioning it in Readme could be probably a good idea. e.g. one could also simply try to ping the callback via curl (that's how I realized it's wrong)

from hass_nuki_ng.

alexdelprete avatar alexdelprete commented on September 27, 2024

Well...the root cause of the problem is almost always the fact that users don't check the configuration before submitting. You didn't notice that the port was missing, otherwise it would've worked since the beginning. Autodetection is a feature to assist the user while configuring the component, but you always need to double-check what is detected. BTW: the fact that it detected the url without the port is really strange...did you configure internal_url and external_url in HA config?

Having said that, config control would be a wise thing to have less issues here. :)

from hass_nuki_ng.

hnykda avatar hnykda commented on September 27, 2024

did you configure internal_url and external_url in HA config?

You are right - I did configured that there and without the port. So that was it. Thanks for your help and great work 🙇

from hass_nuki_ng.

alexdelprete avatar alexdelprete commented on September 27, 2024

Thanks for confirming this.

from hass_nuki_ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.