Nuki lock setup
Moderator: leecollings
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
Can you switch on debug in the plugin and send me the detailed log statements on GitHub?
Sent from phone.
Sent from phone.
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 187
- Joined: Tuesday 07 March 2017 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Germany
- Contact:
Re: Nuki lock setup
I have!
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
Just replied. Apologies for the delay due to travel.
The plugin contacts the Nuki bridge on startup to get the config (find out what locks have been defined in the bridge). It needs an IP address, a port and the token in order to access it but it gets an http 403 error so something is not correct in that combination.
You can try to run the command by hand in a shell using curl and see.
Assuming you followed instructions on putting the bridge in debug mode, setting the port and getting the token.
Sent from phone.
The plugin contacts the Nuki bridge on startup to get the config (find out what locks have been defined in the bridge). It needs an IP address, a port and the token in order to access it but it gets an http 403 error so something is not correct in that combination.
You can try to run the command by hand in a shell using curl and see.
Assuming you followed instructions on putting the bridge in debug mode, setting the port and getting the token.
Sent from phone.
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 187
- Joined: Tuesday 07 March 2017 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Germany
- Contact:
Re: Nuki lock setup
Hi, if I start your plugin, bring the other plugins I have to crash (Shelly, Deconz)
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
Are you saying that my plugin crashes other plugins? That's weird... Please post the log on GitHub.
Sent from phone.
Sent from phone.
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 9
- Joined: Friday 29 September 2017 0:50
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Nuki lock setup
Hi, i'm using the plugin on a synology nas and it works perfect,
thnks for the work.
thnks for the work.
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup

Sent from phone.
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
Due to popular demand (salopette, others), there is a new test branch feature-unlatch which adds a device per lock to unlatch the lock.
I can only test it for 1 lock per bridge so if you have 1 bridge with multiple locks, please test it and let me know if it works before I merge into master.
Apologies for the delay adding this requested functionality due to my training for Alpe d'huZes fundraising for cancer.
If cancer and cancer research, treatment and care is near to your heart, Please sponsor me on
https://www.opgevenisgeenoptie.nl/fundr ... ggink11388
H
I can only test it for 1 lock per bridge so if you have 1 bridge with multiple locks, please test it and let me know if it works before I merge into master.
Apologies for the delay adding this requested functionality due to my training for Alpe d'huZes fundraising for cancer.
If cancer and cancer research, treatment and care is near to your heart, Please sponsor me on
https://www.opgevenisgeenoptie.nl/fundr ... ggink11388
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 187
- Joined: Tuesday 07 March 2017 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Germany
- Contact:
Re: Nuki lock setup
@ heggink
I just came to test it today, thank you for your effort and work, it works wonderfully so far!
I can only test it with a bridge / lock!
I just came to test it today, thank you for your effort and work, it works wonderfully so far!
I can only test it with a bridge / lock!
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki lock setup
Yes you can! I've installed the heggink (https://github.com/heggink/domoticz-nuki) plug in and I can open de door and also lock/unlock the door.
What I cannot see is the status if the door is open or closed. This is a feature within the Nuki.
@heggink: is the door status (open or closed) already a feature that is supported in your plugin? If so, how can i use it? If not, are you planning to add this to your plugin?
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
The door sensor is not supported yet for 2 reasons: 1) I don't have such s device to test and 2) last time I looked, the API had no support for it.
I'll have a look to see if the API had been updated.
Verstuurd vanaf mijn SM-G980F met Tapatalk
I'll have a look to see if the API had been updated.
Verstuurd vanaf mijn SM-G980F 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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki lock setup
Number 1 I can maybe help out to do some testing for you as I've the Nuki with the door sensor. On item 2, I can unfortunately not help on that apart from checking the API interface as well.
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki lock setup
Seems that in the Bridge beta SW (Bridge Beta FW 2.6.0 / 1.16.0) there is support for getting the door status:rgroothuis wrote: βFriday 25 September 2020 17:23Number 1 I can maybe help out to do some testing for you as I've the Nuki with the door sensor. On item 2, I can unfortunately not help on that apart from checking the API interface as well.
https://developer.nuki.io/t/bridge-beta ... state/6159
Hope this helps.
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
Correct, the API has been adapted. Better yet, stephaneM60 already made the changes to the plugin to support the sensors so I pinged him to see how much testing he has done. I am looking to merge this request asap so stay tuned.
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
For testing purposes, I have moved the pull request from Stephane to the feature-unlatch branch. It adds support for the door sensor for the V2 lock. Please note that the device numbers in domoticz have been renumbered so installing this will create new devices and you need to delete the old ones.
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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki lock setup
I can confirm, after 2 days of testing, that the new version to show the door sensor status is working fine. Thanks for the enhancement.
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki lock setup
I'm working on a DZvents script to automatically lock and unlock the door during the night, so that the door is extra locked (night lock) during the night.
For some reason I cannot find the methode to put the door on night lock.
Are the switchOn() and switchOff() methodes the correct ones? Because the Nuki doorlock is not putting the door in a night lock.
For some reason I cannot find the methode to put the door on night lock.
Are the switchOn() and switchOff() methodes the correct ones? Because the Nuki doorlock is not putting the door in a night lock.
Code: Select all
local VoorDeurSlot = domoticz.devices('Voordeur Status')
if (domoticz.time.matchesRule('at 23:00') and (VoorDeurSlot.state == "Unlocked")) then
VoorDeurSlot.switchOff()
elseif (domoticz.time.matchesRule('at 07:00') and (VoorDeurSlot.state == "Locked")) then
VoorDeurSlot.switchOn()
end
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
I can't check for the new plugin version but, yes for the old one. I use dzvents exactly for that purpose. Unless the type was changed in the last update, that should work.
Verstuurd vanaf mijn SM-G980F met Tapatalk
Verstuurd vanaf mijn SM-G980F 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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki lock setup
So SwitchOn and SwitchOff are the correct methods?
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki lock setup
Yes
Verstuurd vanaf mijn SM-G980F met Tapatalk
Verstuurd vanaf mijn SM-G980F 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 :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Who is online
Users browsing this forum: No registered users and 1 guest