Nuki lock setup

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

Moderator: leecollings

User avatar
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

Post by heggink »

Can you switch on debug in the plugin and send me the detailed log statements on GitHub?

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 :-)
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Nuki lock setup

Post by salopette »

I have!
User avatar
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

Post by heggink »

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.

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 :-)
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Nuki lock setup

Post by salopette »

Hi, if I start your plugin, bring the other plugins I have to crash (Shelly, Deconz)
User avatar
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

Post by heggink »

Are you saying that my plugin crashes other plugins? That's weird... Please post the log on GitHub.

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 :-)
hbennis
Posts: 9
Joined: Friday 29 September 2017 0:50
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Nuki lock setup

Post by hbennis »

Hi, i'm using the plugin on a synology nas and it works perfect,

thnks for the work.
User avatar
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

Post by heggink »



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 :-)
User avatar
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

Post by heggink »

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
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 :-)
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Nuki lock setup

Post by salopette »

@ 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!
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki lock setup

Post by rgroothuis »

salopette wrote: ↑Wednesday 18 September 2019 15:39 Hi, I have a question:

Is it possible to open and close Nuki Castle via Domoticz?
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?
User avatar
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

Post by heggink »

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

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 :-)
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki lock setup

Post by rgroothuis »

heggink wrote: ↑Friday 25 September 2020 17:05 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
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.
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki lock setup

Post by rgroothuis »

rgroothuis wrote: ↑Friday 25 September 2020 17:23
heggink wrote: ↑Friday 25 September 2020 17:05 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
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.
Seems that in the Bridge beta SW (Bridge Beta FW 2.6.0 / 1.16.0) there is support for getting the door status:

https://developer.nuki.io/t/bridge-beta ... state/6159

Hope this helps.
User avatar
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

Post by heggink »

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 :-)
User avatar
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

Post by heggink »

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 :-)
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki lock setup

Post by rgroothuis »

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.
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki lock setup

Post by rgroothuis »

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.

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
User avatar
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

Post by heggink »

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

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 :-)
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki lock setup

Post by rgroothuis »

heggink wrote: ↑Monday 28 September 2020 13:40 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
So SwitchOn and SwitchOff are the correct methods?
User avatar
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

Post by heggink »

Yes

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 :-)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest