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.
You don’t need to publish it now, users can add the repository manually, for that only the hacs.json is needed, IIRC. If you need an example, check my repository for the component I made for ABB inverters. I didn’t publish it yet to be available in HACS official repository, but users can add it manually by pointing to GH.
I can work with you on the component, can test/debug and if needed, squeeze bugs.
If you have a discord account, we can discuss here, I created a specific channel for the custom component: https://discord.gg/vq5xdB8j3Z
ahhh sorry I missed it!!
let’s see if I missed this too: is there the possibility of also having the command to physically open the door and not just to unlock it?