Siri Shortcuts for Opener

This worked like a charm, thanks for figuring that out and taking the time to document it!

It took me a sec to figure out where the API key goes — the “Get contents of [URL]” action needs to be expanded so you can edit the headers:

1 Like

Hi,
Thanks for your research, glad to hear it is doable
I followed the instructions but the shortcut gives me this error message: {“suppressedExceptions”:[],“detailMessage”:“Your access token is not authorized”,“stackTrace”:[]}
Any ideas?
Thanks

Solved it, I just needed to add a space after “Bearer”! Thanks a lot!

To make things easier, I prepared a Shortcut with 2 setup questions for easily adding your smartlock id and API Key as 2 variables:
Nuki Opener Shortcut

3 Likes

Thanks for sharing this. Makes it much easier to set up. :+1:

1 Like

Where I can find my API Token?

Is this the one from nuki web which I can acitvate under “API”?

With this shown token i get this error message:

“A server with the specified hostname could not be found”

Thanks for help

You can find it in your nuki web account but I haven’t been able to access it for the last few days. Maybe it’s down?

I can access it without problems, but which one to take? The second one doesn’t work.

I managed to log in again but with another web browser. Safair can’t load the page for some reason…

I used number 2

And this works for you? Can you please share Screenshots from den Shortcuts App?

I get this Error:

“A server with the specified hostname could not be found”

ich bekomme die Fehlermeldung

{“code”:404,“homeRef”:"/",“description”:“The server has not found anything matching the request URI”,“reasonPhrase”:“Not Found”,“uri”:“HTTP/1.1: Status Code Definitions”}

was hab ich falsch gemacht ?

Hi,
Mmm hard to say from this error message.
I would double check if the device ID and device token are correct and make sure to not insert any blank space when pasting them in the variable fields.
Regards

Currently using the shortcut via nuki web solution but would like to see direct nuki opener support. Please +1 this on the road map :slight_smile:

Hi,
thank you for the easy way to include the opener in the Siri shortcuts. How would I have to adjust the https command to enable ring to open instead of opening the door?
thank you!

Hi,
After checking the web API, I couldn’t find an action for ring to open. I faked my way using the ID of the opener and the same url used for opening the Smart lock which is common to both devices.

Hello there.
Anyone with this same problem?
Regards

Just wanted to report that this works like a charm!
I recommend triggering this shortcut with a triple backtap: Use Back Tap on your iPhone - Apple Support

1 Like

Make sure you also enter the API token in the headers (tap on the (>) right after the URL up top)

Our latest beta version has improved support for Shortcuts as well as the Opener. Please follow this thread: APP UPDATE: Nuki iOS App 2024.2.1-Beta (Improved Shortcuts) / 2024.2.2 / 2024.2.3