Hi Nuki,
I am unable to send commands lock/unlock over MQTT. Nuki is connected to my broker. But when I send from other client “nuki/mydevid/lock” topic with payload “true” nothing happens (QoS=2, retain=false).
Can you please advise me, what am I doing wrong?
Regarding documentation, I’d recommend to add there some examples of commands. And I am a bit confused, if MQTT support is released or in Beta still.
Attaching traces from my broker:
– moment when locks connect to my broker
2023-07-08 13:27:12.5682|17656|61|TRACE|Hub|Account: ******, Pwd:
2023-07-08 13:27:12.5967|17656|54|TRACE|Hub|MQTT Client Authentication 'SL3P_AABBCC99(Peter Kornalsky): OK
2023-07-08 13:27:12.5967|17656|54|TRACE|Hub|Client Connected: 192.168.100.113:52493, SL3P_AABBCC99, V311
2023-07-08 13:27:12.7505|17656|14|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/lock/nuki_AABBCC99_lock/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus”,“uniq_id”:“AABBCC99_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 %}"}
2023-07-08 13:27:12.8014|17656|62|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/binary_sensor/nuki_AABBCC99_lock/config,
2023-07-08 13:27:12.8740|17656|14|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/sensor/nuki_AABBCC99_battery_percent/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus Battery”,“uniq_id”:“AABBCC99_lock_battery_percent”,“dev_cla”:“battery”,“ent_cat”:“diagnostic”,“stat_t”:"~/batteryChargeState",“stat_cla”:“measurement”,“unit_of_meas”:"%"}
2023-07-08 13:27:12.9811|17656|14|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/binary_sensor/nuki_AABBCC99_lock_battery_critical/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus Battery critical”,“uniq_id”:“AABBCC99_lock_battery_critical”,“dev_cla”:“battery”,“ent_cat”:“diagnostic”,“stat_t”:"~/batteryCritical",“pl_off”:“false”,“pl_on”:“true”}
2023-07-08 13:27:13.0822|17656|62|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/binary_sensor/nuki_AABBCC99_battery_charging/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus Battery charging”,“uniq_id”:“AABBCC99_battery_charging”,“dev_cla”:“battery_charging”,“ent_cat”:“diagnostic”,“stat_t”:"~/batteryCharging",“pl_off”:“false”,“pl_on”:“true”}
2023-07-08 13:27:13.1833|17656|54|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/binary_sensor/nuki_AABBCC99_door_sensor/config,
2023-07-08 13:27:13.2856|17656|14|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/binary_sensor/nuki_AABBCC99_door_sensor_battery_critical/config,
2023-07-08 13:27:13.3885|17656|62|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/binary_sensor/nuki_AABBCC99_keypad_battery_critical/config,
2023-07-08 13:27:13.4918|17656|14|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/button/nuki_AABBCC99_unlatch_button/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus Unlatch”,“uniq_id”:“AABBCC99_unlatch_button”,“cmd_t”:"~/lockAction",“pl_prs”:“3”}
2023-07-08 13:27:13.6958|17656|62|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/button/nuki_AABBCC99_lockngo_button/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus Lock ‘n’ Go”,“uniq_id”:“AABBCC99_lock_n_go_button”,“cmd_t”:"~/lockAction",“pl_prs”:“4”}
2023-07-08 13:27:13.7986|17656|14|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, homeassistant/button/nuki_AABBCC99_lock_n_go_unlatch/config, {"~":“nuki/AABBCC99”,“avty_t”:"~/connected",“pl_avail”:“true”, “pl_not_avail”:“false”,“dev”:{“ids”:"[AABBCC99]",“mf”:“Nuki”,“name”:“Svarogus”,“mdl”:“Smart Lock 3.0 Pro”},“name”:“Svarogus Lock ‘n’ Go with unlatch”,“uniq_id”:“AABBCC99_lock_n_go_unlatch_button”,“cmd_t”:"~/lockAction",“pl_prs”:“5”}
2023-07-08 13:27:13.8998|17656|54|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, nuki/AABBCC99/connected, true
– here I see it subscribes to lock and unlock actions
2023-07-08 13:27:13.8998|17656|61|TRACE|Hub|Client Subscribed: SL3P_AABBCC99, nuki/AABBCC99/lockAction
2023-07-08 13:27:13.8998|17656|60|TRACE|Hub|Client Subscribed: SL3P_AABBCC99, nuki/AABBCC99/lock
2023-07-08 13:27:13.9981|17656|62|TRACE|Hub|Client Subscribed: SL3P_AABBCC99, nuki/AABBCC99/unlock
– here different client send the command.
2023-07-08 13:27:45.7581|17656|68|TRACE|Hub|MQTT Client Publish: Topic = nuki/AABBCC99/unlock, Payload = true
2023-07-08 13:27:47.4382|17656|74|TRACE|Hub|MQTT Client Command: waiting…
– lock does nothing and reports connected, false
2023-07-08 13:27:48.2135|17656|81|TRACE|Hub|Server Message Not Consumed: SL3P_AABBCC99, nuki/AABBCC99/connected, false
Kind regards,
Peter