Nuki doorlock support

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Nuki doorlock support

Post by heggink »

Has anyone looked at this device?

The are a kickstarter backed project developing a lock, bridge (internet access for their android/ios app) and fob.

The bridge allows web based access to the lock(s) and has a documented API based on http/json (https://nuki.io/en/api/) so should be easy to integrate into Domoticz...

H
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki doorlock support

Post by RayAmsterdam »

Looks good!
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

Just received my Nuki lock with bridge. VERY easy to install (literally 2 minutes). Easy to configure. You can tell it what type of lock you have (with/without latch/doorknob on the outside). If you just have a knob, you can configure it to unlatch the door (pull the handle) as well. It has it's own geofence (smart phone gps) to automatically unlock the door if you want.

It has its own API to access and control the lock. What is really nice is that you can tell the lock to call a URL on state change. That makes domoticz integration really simple.

Took me 2 hrs to 1) create a dummy door lock device, 2) create a couple of linux bash small script (using nc to listen on a port and jq to decode the json msgs) to act on lock state changes and update the dummy device. Works like a charm but ultimately, proper domoticz integration is the way to go but no time for now :-(. I'll post the scripts later. If anyone wants them, pls ping.

One thing I missed was that the door lock device has no timers. I would love to close the lock automatically at night. @gizmocuz: can this be added?

This lock is a real recommender (nuki.io)! I immediately ordered one for my front door as well. Just be aware that you really, really, really need to secure domoticz once you control entry to your house via domoticz. I ONLY access my system via VPN so NO ports are accessible from outside my house.

H
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Nuki doorlock support

Post by Derik »

battery device??
what if the battery are empty, and the was open??

Looks promising, and the price is not so bad...:=)
When my wife is happy, perhaps i can order 1...[ think i have to wait until the holidays :-( ]

Do i need the bridge?
Or can i acces directly the lock?

Is there a message return option like zwave?
For when there is a manual opening of the door, Domoticz think it is lock.....Only .


Perhaps someone make a secure button in Domoticz.
You can acces all things in Domoticz normal.
Only for the secure devices you need some otherpasswor.d
I can not do this, only i think this secure button is a option..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

4 penlights. The lock is bluetooth and has an API. The bridge provides a wifi interface.
The lock's motor is pretty light so using it with a regular key is very workable. If the door is open with empty batteries then just turn the key.
you can pool, switch and the lock can send state changes. My temp scripts catch all state changes in the lock and update Domo.
You can tell the bridge to call a specific html link on lock change (so no need to poll really unless domo goes down). Works really, really well so far.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Philos31
Posts: 33
Joined: Friday 15 August 2014 22:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki doorlock support

Post by Philos31 »

RasPi2/KaKu/HUE/Xiaomi/Z-Wave/Nuki/Daikin 3,5kw Ururu Sarara/IR Heating Panels all working together with domoticz
thaui
Posts: 58
Joined: Sunday 15 March 2015 19:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Hamburg
Contact:

Re: Nuki doorlock support

Post by thaui »

I took the advantage to buy one device form the discounted price. Was thinking as little longer to purchase one but was not sure. I will try to operate the device via an Android Tablet near my entrance door and the Android bridge App. For sure only via VPN access to my system. At the moment for me it's totally unclear how to get the device included in my Domoticz environment. The user "heggink" has written some nice words how easy it is but I guess the scripts are the key for the success. Has somebody else some information how to include the device to Domoticz and how to control it from the WEB?
Any feedback is welcome.
DeNB3rt
Posts: 3
Joined: Monday 16 January 2017 13:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: België
Contact:

Re: Nuki doorlock support

Post by DeNB3rt »

heggink wrote:Took me 2 hrs to 1) create a dummy door lock device, 2) create a couple of linux bash small script (using nc to listen on a port and jq to decode the json msgs) to act on lock state changes and update the dummy device. Works like a charm but ultimately, proper domoticz integration is the way to go but no time for now :-(. I'll post the scripts later. If anyone wants them, pls ping.
Ping @heggink, I'm also looking for a Nuki, but want to integrate with my existing Domoticz setup :)
Do you have some more information about how you did it?
Did you make any progressions since ur last post? :)
thx for the information!
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

Hi DeNB3rt,

As mentioned, I have a couple of scrips that I use to get status updates as well as lock control. Nothing pretty but functional. No time yet to create a wiki for them unfortunately. Happy to share the scrips with a bit of a 'manual' though.

Basically, I have a programme listing on a port for lock messages (you can tell the lock to send json status updates to a specific IP/port) which updates domoticz devices (through udevice) based on a status change. These same devices call another script to open/close the lock on demand.

Once you install the lock and a bridge, you need to put the bridge in developer mode. That allows you to install the callback hook (just a curl command with the ip/port of my programme to be called on the status change).

As said, happy to share the bash scripts (they run on an pi3 ). In order to use the scrips, you need to have curl, jq and so on installed. The status update scrip get's called from cron ar startup.

H
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DeNB3rt
Posts: 3
Joined: Monday 16 January 2017 13:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: België
Contact:

Re: Nuki doorlock support

Post by DeNB3rt »

Hi @heggink

Thanks for the feedback.
Sounds good, also RBP3 overhere with some curl scripts (for dimmer).
So that could be an option.

But don't have the Nuki yet, still comparing around the globe :)
What's your experience with the Nuki? Do you use it for the front door?
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki doorlock support

Post by RayAmsterdam »

I have good experience with the Nuki lock on the front door, with the Heggink scripts. I use it with the software bridge on an old Samsung smartphone. The delay of updating and commanding is a couple of seconds.
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

Still pretty happy with them myself. I lock the doors (front, side) automatically at night, everyone at home can use their phones to unlock. One of the more secure locks out there afaik.

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
chiche102
Posts: 3
Joined: Tuesday 11 July 2017 14:56
Target OS: -
Domoticz version:
Contact:

Re: Nuki doorlock support

Post by chiche102 »

Hi heggink , i'm interested by you're script, can you share with me or explain me because i' am no a good programmer :-)


Thanks
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

Hi chiche102, I am currently travelling in the US (DC) so will be next week. I'll think about creating a wiki. Should make things easier.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
chiche102
Posts: 3
Joined: Tuesday 11 July 2017 14:56
Target OS: -
Domoticz version:
Contact:

Re: Nuki doorlock support

Post by chiche102 »

ok heggink , thanks for you're answer...
I wait you're return no problem, for the moment i use http request with a dummy switch on domoticz, not verry clean bu it's working (4 times on 6 )

Only 2 problem ith this solution :

1: sometimes, i think when you try too much http request is not working on webpage ( error 503 , thast means bridge disconnected but he is connected, 1 minutes after is good )

2 : There is no return state , so if someone else unlock the smart lock, on domoticz he stay lock ....

So i wait for you're explication ;)

PS: Sorry my english is very poor .....
chiche102
Posts: 3
Joined: Tuesday 11 July 2017 14:56
Target OS: -
Domoticz version:
Contact:

Re: Nuki doorlock support

Post by chiche102 »

i see another thing who ca be intersiting, unlock the nuki smarlock directly from the py and not from the bridge ....
But athentification between the 2 device no seems to be easy ...
eddypoot
Posts: 3
Joined: Friday 01 April 2016 16:28
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Location: Holland
Contact:

Re: Nuki doorlock support

Post by eddypoot »

I have one Nuki smart lock with bridge. It is working great. I only want to be able to automatically check the battery status because I don't like standing out in the rain without keys and drained batteries in my smartlock. :roll:

By sending this line via any browser: http://xxx.xxx.xxx.xxx:8080/list?token=XXXXXX to the bridge you get this result:
nukiId xxxxxxxxxxx
name "Voordeur"
lastKnownState
state 3
stateName "unlocked"
batteryCritical false
timestamp "2017-09-08T13:12:38+00:00

As I have no knowledge of JSON and almost know knowledge of programming LUA, I would like to ask if anyone knows how to set this up. Any help would be appreciated.
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

First attempt to put everything on 1 page: viewtopic.php?f=56&t=19348
Let me know if it works.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
eddypoot
Posts: 3
Joined: Friday 01 April 2016 16:28
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Location: Holland
Contact:

Re: Nuki doorlock support

Post by eddypoot »

Heggink,

The one thing I wanted most, checking the battery state was not in there. I saw that you have made a power supply to overcome the battery issue. That is great, I will keep it in mind. But for the time being, I will keep on searching for a way to check the battery on a daily basis.
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Nuki doorlock support

Post by heggink »

Hi eddypoot,

The lock will not give you the battery %% but it will return the battery status. It would be fairly easy to not only update the status of the lock but also update the lock battery status. Sample message from the lock:

curl -s "http://IP:8080/lockState?nukiId=NUKI_ID ... IDGE_TOKEN" returns
{"state": 3, "stateName": "unlocked", "batteryCritical": false, "success": true}

You would need a separate device and a second check on the batteryCritical field.

H
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests