Page 1 of 1

Nuki SmartLock 3.0 Pro MQTT

Posted: Friday 14 April 2023 9:47
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

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 10:13
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.

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 10:49
by arma_esiea
My version is :

Code: Select all

Version: 2023.1
Build Hash: f9b9ac774
Compile Date: 2023-02-14 15:06:40

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 13:24
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?

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 13:37
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

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 13:47
by waltervl
what is the mqtt message sent by domoticz when you unlock the door by Domoticz? And what should it be?

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 13:50
by arma_esiea
i think it's the problem, domoticz send only
MQTT_Explorer_rO2R0Vh4ZV.png
MQTT_Explorer_rO2R0Vh4ZV.png (2.35 KiB) Viewed 941 times
never lockaction = 1

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 14:25
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?

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 14:30
by waltervl
And what happens if you fill someting in in the delay field?

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 14:45
by arma_esiea
Nothing... the same

Re: Nuki Smart Lock MQTT

Posted: Friday 14 April 2023 14:46
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