Nuki SmartLock 3.0 Pro MQTT

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
arma_esiea
Posts: 18
Joined: Thursday 23 January 2014 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Nuki SmartLock 3.0 Pro MQTT

Post by arma_esiea »

Hi,

Here the new configuration in MQTT for Nuki smart lock :

Code: Select all

{
  "~": "nuki/xxxxxxx",
  "avty_t": "~/connected",
  "pl_avail": "true",
  "pl_not_avail": "false",
  "dev": {
    "ids": "[xxxxxxxx]",
    "mf": "Nuki",
    "name": "xxx",
    "mdl": "Smart Lock 3.0 Pro"
  },
  "name": "xxxxx",
  "uniq_id": "xxxxxx_lock",
  "cmd_t": "~/lockAction",
  "pl_lock": "2",
  "pl_unlk": "1",
  "pl_open": "3",
  "stat_t": "~/state",
  "stat_locked": "1",
  "stat_locking": "4",
  "stat_unlocked": "3",
  "stat_unlocking": "2",
  "stat_jam": "254",
  "val_tpl": "{% if value in (\"5\",\"6\",\"7\") %}3{% else %}{{value}}{% endif %}"
}
The new device are autodiscover, but the door switch make not action, only update when the device change state
Attachments
chrome_NexVPCY6GL.png
chrome_NexVPCY6GL.png (17.67 KiB) Viewed 963 times
Last edited by arma_esiea on Friday 14 April 2023 14:58, edited 1 time in total.
User avatar
waltervl
Posts: 5896
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Nuki Smart Lock MQTT

Post by waltervl »

What Domoticz version are you using? If then statements in value templates are only supported in 2023.1 and perhaps only in some circumstances.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arma_esiea
Posts: 18
Joined: Thursday 23 January 2014 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki Smart Lock MQTT

Post by arma_esiea »

My version is :

Code: Select all

Version: 2023.1
Build Hash: f9b9ac774
Compile Date: 2023-02-14 15:06:40
User avatar
waltervl
Posts: 5896
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Nuki Smart Lock MQTT

Post by waltervl »

Perhaps there is another device to unlock it from Domoticz? Can you unlock it from the user interface (ZwaveJSUI or Zigbee2MQTT or) what you are using?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arma_esiea
Posts: 18
Joined: Thursday 23 January 2014 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki Smart Lock MQTT

Post by arma_esiea »

Thank's
No it's not a zwave or a zigbee device, it's a wifi device who directly send on mqtt server.
but if i post a msg in mqtt server with lockAction=2 to lock and lockAction=1 to unlock, it's work find
User avatar
waltervl
Posts: 5896
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Nuki Smart Lock MQTT

Post by waltervl »

what is the mqtt message sent by domoticz when you unlock the door by Domoticz? And what should it be?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arma_esiea
Posts: 18
Joined: Thursday 23 January 2014 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki Smart Lock MQTT

Post by arma_esiea »

i think it's the problem, domoticz send only
MQTT_Explorer_rO2R0Vh4ZV.png
MQTT_Explorer_rO2R0Vh4ZV.png (2.35 KiB) Viewed 938 times
never lockaction = 1
User avatar
waltervl
Posts: 5896
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Nuki Smart Lock MQTT

Post by waltervl »

I think that type of Domoticz device can only send an Open command, not a Close (or inverted if you invert the device). What of you change it to a normal ON/OFF switch?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5896
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Nuki Smart Lock MQTT

Post by waltervl »

And what happens if you fill someting in in the delay field?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
arma_esiea
Posts: 18
Joined: Thursday 23 January 2014 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki Smart Lock MQTT

Post by arma_esiea »

Nothing... the same
arma_esiea
Posts: 18
Joined: Thursday 23 January 2014 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nuki Smart Lock MQTT

Post by arma_esiea »

the specifications are here :
https://developer.nuki.io/t/mqtt-api-sp ... v1-4/19223
20220223 MQTT API 1.4.pdf
(164.42 KiB) Downloaded 65 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest