Custom watchOS app to instant unlock on approach

I noticed a similar question to what I have in mind but since that topic is closed I opened this one.

Auto-unlock works rather well in the scenario Nuki iOS app implements - you go out of geofence, come back in and are near the device so Bluetooth kicks in and it unlocks as expected.

I want to create something similar but for watchOS and I want it to work instantly just with Bluetooth connection. So basically, I get to something like half a meter from the lock and it unlocks automatically.
I know my way around Core Bluetooth and have written several apps where watch app is server connecting to peripherals. Which means I would have to put the (now working and set-up) lock into pairing mode and connect it with my watch app.
Questions:

  • will that mess up something with main Nuki app and/or Fob?
  • Is using Bluetooth API for Smart Lock correct stack for such an app? I’m open to recommendation of doing something else.

Reason for this: I may not aways have my iPhone but I always have the Apple Watch on my hand.

Any new pairing you create in such a way becomes a new user on the Smart Lock. So just creating a new user will not mess anything up. Obviously the lock can only execute one lock action at a time and the number of parallel BLE connections is limited.

Yes, if you want to locally unlock it’s the most universal option. If you want to unlock via your LAN/WiFi you could also use the mqtt api in combination with a local server. Finally if you have an internet connection also the cloud connected Nuki Web API could be used.

1 Like