RBoy Apps
INSTALLING NUKI LOCK
There are 2 parts to this installation so please see the instruction carefully (there is difference between how the SmartApp is installed and how the Device Handler is installed, don't mix it up or it won't work):

NOTE: You need to use the SmartThings Classic mobile app and NOT the new SmartThings mobile app.

A. Install the Nuki Lock Device Handler 
 
  1. Click on the Nuki Lock Device Handler link, it will open a new window with the code, select the entire page (Ctrl+A) and copy (Ctrl+C)
  2. Login to the IDE at https://account.smartthings.com (create a Samsung Account one if you don't have one)
  3. Click on "My Locations" and then click on the name of the location where you want to install the lock
  4. Click on "My Device Handlers" <-- NOTE THIS IS DEVICE HANDLERS (NOT SmartApps
  5. Click on "+New Device Handler" on the top right 
  6. Click "From Code
  7. Paste the code (Ctrl+V) into the editor and click "Create
  8. Click "Publish" and then "For me" on the top right 

B. Install the Nuki Manager SmartApp

 
  1. Click on the Nuki Manager link, it will open a new window with the code, select the entire page (Ctrl+A) and copy (Ctrl+C)
  2. Login to the IDE at https://account.smartthings.com
  3. Click on "My Locations" and then click on the name of the location where you want to install the lock
  4. Click on "My SmartApps" <-- NOTE THIS IS SMARTAPPS (NOT Device Handlers
  5. Click on "+New SmartApp" on the top right 
  6. Click "From Code
  7. Paste the code (Ctrl+V) into the editor and click "Create
  8. Click "Publish" and then "For me" on the top right 
  9. After clicking Publish, click on the "App Settings" button next to the Publish button 
  10. Scroll down and click on "OAuth" to expand the section 
  11. Click on "Enable OAuth in Smart App" (it will create an ID and Secret) (do NOT forget this step
  12. Click on "Update" at the bottom of the page 
  13. Scroll down back to OAuth, click on it and verify that the Client ID and Client Secret have been created/saved. If not repeat the process until it is saved (sometimes it takes a few tries) 
  14. To install the SmartApp, open your SmartThings Classic App on your phone, click on the Automation icon at the bottom bar right corner of the main screen. Now click on the "SmartApps" tab on the top right of the screen. Scroll down to the bottom and click on "+Add a SmartApp". Then scroll down to the bottom and click on "My Apps". (NOTE: if you don't see "My Apps" you need to use the SmartThings Classic app, if you don't see Nuki Manager in "My Apps", then you may have installed the code in the wrong location, check step 3 again)
  15. Scroll down the "My Apps" section until you see the new app you just created and click on it and then click "Save" to install it.
  16. Open the Nuki Manager by clicking on the "Automations" icon and then click on "SmartApps" on your phone
  17. It will start scanning your network for Nuki bridges and once discovered it will display them on the screen. For the discovery to work your bridge and smartthings hub need to be on the same network.
  18. Follow the instructions on the screen and press the button on the bridge when the LED glows.
  19. After a few seconds you should see any new Nuki locks discovered and ready to installation. If you don't see your locks show up go back to Step 18.
  20. Tap "Save" and you're done!! 
  21. There will be a Nuki Lock device for every lock marked for instalation and they will show up under "My Home -> Things" in the SmartThings mobile app.
  22. Open each Nuki Lock device page on the phone and on the top right click on the gear icon to open the individual settings page for the lock, then tap "Done". Enjoy!!

C. Updating to a Newer Version (do not skip any steps) 
  
    UPDATING THE NUKI LOCK DEVICE HANDLER:
    • Click on the Nuki Lock Device Handler, it will open a new window with the code, select all (Ctrl+A) and copy the code (Ctrl+C)
    • Login to the IDE at https://account.smartthings.com
    • Click on "My Locations" and then click on the name of the location where had installed the device handler previously
    • Click on "My Device Handlers"
    • Click on the "Nuki Lock" in the SmartThings IDE
    • Select all (Ctrl+A) and delete the old code, Paste (Ctrl+V) the new code
    • Click on "Save"
    • Click  on "Publish" and then click "For me"
UPDATING THE NUKI MANAGER SMARTAPP:
    • Click on the Nuki Manager SmartAppit will open a new window with the code, click on the browser refresh button (to flush the cache), select all (Ctrl+A) and copy the code (Ctrl+C)
    • Login to the IDE at https://account.smartthings.com
    • Click on "My Locations" and then click on the name of the location where you had installed the SmartApp previously
    • Click on "My SmartApps"
    • Click on the "Nuki Manager" in the SmartThings IDE
    • Select all (Ctrl+A) and delete the old code, Paste (Ctrl+V) the new code
    • Click on "Save"
    • Click  on "Publish" and then "For Me", if you don't so this the update won't work