Are you still having problems? You didn’t reply to my last answer to you…
Anyway, if you are still using this config for the secrets, the problem is the HA internal URL:
The bridge does not know how to resolve homeassistant.local. Unfortunately, HA devs decided to use mDNS stuff that creates MANY MANY issues to users.
Replace homeassistant.local with the IP address, or, better: configure a proper hostname in DNS for HA, so other clients can resolve its ip address, and always use that in URLs. That is why you don’t receive callbacks from the bridge.
Let me know. Probably @tomkorelo issue is the same, that’s why I wanted to see his 4 secrets config too.
Yeah I checked all the things you told me and it still didn’t work so I thought it was of the internal changes Nuki Support did on my Opener/Bridge and just gave up.
But that solved it for me, everything works now! Thanks
It seems that for my Intercom STR HT2003/2, the cableplan in the Nuki app was incorrect, which lead to it generally working, but seemingly having some issues with the ring suppression.
I rewired the cables somewhat and now its working as I would expect. Suppressing a ring actually supresses it, but it still notfies HA via the webhook.
Nuki Card is very transparent on this, it basically receives callbacks from the bridge and updates the sensors, nothing more. So either it was a bridge fw bug or something else related to the hw.
Works here, both on lock and opener. If you have no error 404 in the logs, it means it worked. You can also check the bridge log to see if it received the command correctly.
curl -X GET 'http://nuki-bridge.axel.dom:8080/log?token=xxxxx'
Put the code in dev tools script, and try it there first. I’m testing it there, and it works fine.
the logs showing that was successfully unlocked opener.
When I replace for lock devicetype and id it works. Im begging to think that tha cause is wrong wiring on my intercom…but again I can send signal from your nuki card…so it shouldn’t be the wiring problem itself…
I don’t understand: when you unlock the Opener from Nuki Card it works, and when you do it via that service call it doesn’t work, but the log on the bridge says that it received the command and it opened?
It doesn’t make sense…the Nuki Card does exactly what that code does, and if the bridge in the log says it opened, it should open. Unless the wiring fails sometimes…did you try repeating 10 times with Nuki Card? It always works?
@alexdelprete inspired by your great work, I’ve made a custom integration for Nuki Locks (openers)
Unlike to the official one, it also uses callbacks
Like your automation, it exposes pretty much everything via sensors, binary sensors, etc.
Additionally I’ve implemented authorization management entities (key codes, user accounts), using Nuki Web API token. With this, you can enable/disable access via those ways. This part is optional, if you provide the token
Dear Konstantin, you can’t imagine how long I’ve been waiting for a Python dev to step up and tell me he wanted to develop Nuki Card as a custom component. I’m so so happy, even if that means closing this wonderful support thread through which I interacted with a lot of really cool and smart people.
I’ve actually developed a custom component for my solar inverter, but I started from an existing project, and didn’t know how to start from scratch, I’m no Python develeoper, just a tinkerer, but I’m starting to understand python a little bit.
I will try your version ASAP and will provide feedbacks. You want me to give you feedbacks on GH or you also opened a new thread on the forum? Looking forward to share my Nuki experience with you to make the best Nuki integration possible for HA.
We can also do it here, while you create the new thread, I don’t mind actually. So Nuki Card users can see what’s going on.
I would advice, before opening the thread, to make sure you add HACS support, so users can more easily install it. It’s pretty simple but it really helps novice users installing it.