Comments (14)
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.
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.
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).
)
Nothing is logged in the logs.
from hass_nuki_ng.
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.
Ha, now looking at the callback, it doesn't have the right port in it 🤦
from hass_nuki_ng.
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.
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.
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.
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.
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.
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.
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.
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.
Thanks for confirming this.
from hass_nuki_ng.
Related Issues (20)
- Nuki_ng fires wrong events occasionally
- Error in log: "None is not a valid LockStates" HOT 1
- Nuki lock pro v4 HOT 1
- Constant errors in logs, Nuki seems to work without issues ... HOT 2
- 2024.1 log WARNING HOT 2
- Not directly an isseu but missing an entity? HOT 7
- No login since yesterday HOT 5
- HA Core 2025.1 Deprecated Constant Changes Required HOT 1
- Status not updating after disabling door sensor
- Error while setting up nuki_ng platform for sensor HOT 9
- Include "Invalid entry code" log message somehow
- "configuration failed"
- Nuki bug : incorrect display HOT 1
- 'nuki_ng' accesses hass.components.cloud & hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9
- Nuki Opener: battery status
- Problem Button on Smart Lock 4 break HOT 1
- Sudden battery drain (Nuki 4.0 Pro)
- Nuki Smart Lock Pro (4th generation) HOT 2
- async_forward_entry_setup stop working in HA 2025.1 HOT 5
- nuki_ng log entry - AttributeError: 'NoneType' object has no attribute 'get'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass_nuki_ng.