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).

It is recommended to use a desktop browser for these steps

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 Nuki Manager, use either of these ways:
    • SmartThings web browser app -> login here and click on the + icon on the top right corner of the screen -> click on "Add SmartApps"
                OR
    • SmartThings mobile app -> open the mobile app and click on the + icon on the top right corner of the screen -> click on "Add Routine" -> click on "Discover" -> Scroll down to SmartApps
  15. Scroll down until you see "Nuki Manager" and click on it on install it. (NOTE: if you don't see it listed, then you may have installed the code in the wrong location, check step 3 again)
  16. 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 without any firewalls.
  17. Follow the instructions on the screen and press the button on the bridge when the LED glows.
  18. After a few seconds you should see any new Nuki locks discovered and ready to install. If you don't see your locks show up go back to Step 17.
  19. Tap "Done" and you're done!! 
  20. There will be a Nuki Lock device in the SmartThings mobile app for every lock marked for installation.
  21. (Optional) To adjust the lock settings, open each Nuki lock device page on the SmartThings mobile app and on the top right click on the 3 dots and select Settings to open the individual settings page for the lock

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", if you don't do this the update won't work
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 do this the update won't work