Custom app and flows

Hi all! we’re developing an app for a small boutique hotel where we’re looking into using Nuki’s locks.
We’ve been so far succesfully able to open/close doors through the App using Nuki Web Api. But we would like to understand the bluetooth flows a bit better.
Is there any documentation (besides the Bluetooth API) that explains a bit better how these flows work? (like, how does the pairing work?, authorization? etc etc)

Thanks!

No.

What might be helpful is to check out how other implementations are doing it. e.g. GitHub - sonntam/nukiRestfulBLE: This is a REST API service to control Nuki locks via Bluetooth Low-Energy BLE. It is powered by Flask, pyNukiBT, bleak and Flasgger

Since you haven’t stated which programming language you are/want to use: I started a Go-based CLI that implements the Bluetooth API (but it could also be used as a package without the CLI): GitHub - nuki-io/nuki-cli: A versatile command line tool to operate Nuki devices through bluetooth and the Web API

The Authorization flow is in this file: nuki-cli/pkg/bleflows/authorize.go at main · nuki-io/nuki-cli · GitHub

Please note that this is a side-project in a very early development stage, but it might still give you a good idea on what needs to be done for e.g. the authorization flow. This can definitely be a bit overwhelming at first, especially if you have never used BT directly before.

1 Like

Thanks Nicolas and Jürgen, will take a look at the resources you shared and come back with doubts if any.