I have created a device handler for the Nuki smart lock
controls the lock - and also updates the lock status if was changed from outside the Smartthings app - update interval is 1 minute.
I have created a device handler for the Nuki smart lock
controls the lock - and also updates the lock status if was changed from outside the Smartthings app - update interval is 1 minute.
Volski,
sorry to bother you but i am a newbie!!!
How do i sync your handler with my smartthings???
sorry for my total ignorance
Ambres
Basically you will copy the authorās code and paste it into your own account. The following FAQ describes the process (this is a clickable link)
@volski I have a Nuki lock and Iām trying to set this up but I have no idea how to finish it. What Iāve done so far:
Can you let me know if the steps I did were right and how I should continue?
Edit: well, that was easy. I just figured Iād try any Device Network ID, put in ānuki,ā and it worked. I can see my lockās state. I dare not unlock it now because Iām not home, but itās cool to have it finally show up in SmartThings.
Out of all the files from your Githubā¦ which should we install? All of them?
Hi,
Iāve followed Ritaās (guessed but really useful) instructions, which has got me some of the wayā¦
I started with the ID set to my email, but I get āwaitingā in grey where Rita gets ālockedā in red.
(I waited till the net day)
Reading in here:
suggests that the NukiId should be a numeric, and it implies it starts at 1 and goes up with the number of locks.
I only have one, so Iāve set that to ā1āā¦
but I still get "waiting"
Anyone got any pointers?
(when creating the API token, I only gave it read privileges - might that be an issue?)
Cheers,
James
hi
first make sure you use the web api version:
second:
log in to your account at web.nuki.io
enable the api - and copy the token
in the smartthings web console.
click on the device name you have created
and under Preferences click on edit
you have two fields first is the api token you copied from nuki website
and second is the device id the simplest way is this:
go to https://www.hurl.it select the GET method copy to the Destination url: https://api.nuki.io/smartlock
next add HEADERS - in the name field: Authorization and in the Value write: barer yourApiToken
and click on the Launch Request
if all is good you will get a json response with your locks
if you have more then one you will need to create a device handler for each one.
from the response json copy the value of smartlockId
this is the needed value for the second filed from the device handler
now click on save and you can control your lock!
only this one:
Added! Just waiting for my Nuki to arrive to test it all outā¦ Thanks!
Nowā¦ I feel like a newb with this Q butā¦ what are the Owner, name and branch of the github for the integration?
where are you trying to fill this fields?
on the device handler you just need you api token and the nuki lock id
in the github integration page in the apiā¦
Here:
you already have the repo there
in my console I dont have the repo option so when I added it i just copy paste the code
added detailed instructions:
I was refering to the automatic sync between the ST API and Githubā¦ just for reference, here are the 3 things neededā¦ I thinkā¦ correct me if Iām wrongā¦
Owner: volski
Name: Smartthing-nuki
Branch: master
as for the DH itselfā¦ I canāt wait to have the lock in my handsā¦ Thanks for your work!!! Awesome!
yes that is correct
Hey volski thanks for this incredible DH. But is there an way that the other states like lockngo i can see in the new ST app?? At the time i only see locked unlocked
Hello, thanks for explanation but I canāt find a place to input the API Token generated?
do we have to input it in the code given by Volksi?
here ?
preferences {
input("api_token","string",title:"Api Web Token",description:"Enter your web API token",required:true ,displayDuringSetup: true)
input("nukiId","string",title:"nukiId",description:"Enter your nukiId",required:true ,displayDuringSetup: true)
Or is this something that appears afterwards?
hello, athanks for this but I canāt find any āpreferencesā for the device name that I have created? Is this normal.
The Web Token API you have to input, is this a long string or the name you gave when creating the token?
where is this information to be filled in? re place the string indicated in bold in your code?
input(āapi_tokenā,āstringā,title:āApi Web Tokenā,description:āEnter your web API tokenā,required:true ,displayDuringSetup: true)
input("nukiId","string",title:"nukiId",description:"Enter your nukiId",required:true ,displayDuringSetup: true)
Hi I got the same problem
There is no where this āpreferencesā to add the API informationā¦ any solution you found?
Thanks!
okay i solved it - copy the code NOT from the Browser but download the git code first before pasting, then it works (syntax/ copy issue otherwise)!!
I think the support of this DTH is dead!!!