Thanks to a step-by-step guide on another website, I have created an Apple shortcut which opens the Smartlock 3.0 Pro. This shortcut uses the Nuki API (https://api.nuki.io/smartlock/xxxIDxxx/action/unlock) with my personal token and my personal Lock ID.
This shortcut really works well, even when I use it via Siri from my Apple Watch. The issue with this is that it works too good even if I am 10km away from home.
Now my question: Is it possible to add a condition to my shortcut, that the door only opens when my Apple Watch is near my home (e.g. connected to my home WiFi or within the bluetooth range of my Nuki)?
Or - alternatively - is there any setting in the Nuki environment which prevents the door from opening if I am too far away? We are 4 people in our household and all of them have an Apple Watch to use the shortcut to open the door.
I use this shortcut (see below) on my apple watch ultra directly from the action button. So wanted to add in a double confirmation for when i am not close to my home just like you.
So from the shortcut below (that checks the distance to my home) I run the “open door” shortcut. In that way I keep things simple (so in my image below the third step is run “Nuki Opener” which is the short cut you already have…) Let me know if this worked for you.
Thought I’d give this a try to see how it performs, but I’m getting a response suggesting it doesn’t like my DeviceID.
“The supplied value '{my device ID from Nuki} for parameter ‘smartlockId’ is not valid”
Is this the same device ID as can be copied directly from the Nuki app and/or Nuki web? Main reason I’m asking is that your screen shot above shows a numeric value here, but my Device ID is alphanumeric.
Edit: Found it, had to copy from the URL in Nuki web (no idea if that’s the correct/proper/only way!)
Yes you get the ID from Nuki Web. When you click on your lock, you will see the ID in your URL (the last part). Nuki Web is also the place where you generate your token.
If you use a “door closer” than the Auto Unlock feature becomes useless at times.
F.e. You come home and park the car in front of your house. Auto Unlock opens door and after a few seconds the bolt locks again. You are still getting the groceries out of the car. You walk up to the door that is now locked and closed…. After it was briefly unlocked but held closed. Quite annoying:-)
with the distance check and double confirmation the problem of an accidental opening is more a theoretical issue.
You can delay the auto unlock so that it only unlocks when you are nearer to the door
If you have a door sensor, the latch will be released when the door opens (or the configured unlatch duration is over). I.e. you can set a longer unlatch duration which will make the lock hold the latch much longer, even if you have a longer way to the door.