Hi,
first of all thank you for your support!
Yes I’m referring to the serial debug output. I was using the serial monitor of arduino IDE, sorry for the confusion.
This is what I receive initially when enabling the homeassistant discovery:
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür","unique_id":"3049ee64_lock","cmd_t":"~/lock/action","pl_lock":"lock","pl_unlk":"unlock","pl_open":"unlatch","stat_t":"~/lock/binaryState","stat_locked":"locked","stat_unlocked":"unlocked","opt":"false"}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür battery low","unique_id":"3049ee64_battery_low","dev_cla":"battery","ent_cat":"diagnostic","pl_off":"0","pl_on":"1","stat_t":"~/battery/critical"}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür battery voltage","unique_id":"3049ee64_battery_voltage","dev_cla":"voltage","ent_cat":"diagnostic","stat_t":"~/battery/voltage","state_cla":"measurement","unit_of_meas":"V"}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür trigger","unique_id":"3049ee64_trigger","ent_cat":"diagnostic","stat_t":"~/lock/trigger","enabled_by_default":true}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür battery level","unique_id":"3049ee64_battery_level","dev_cla":"battery","ent_cat":"diagnostic","stat_t":"~/battery/level","state_cla":"measurement","unit_of_meas":"%"}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür door sensor","unique_id":"3049ee64_door_sensor","dev_cla":"door","stat_t":"~/lock/doorSensorState","pl_off":"doorClosed","pl_on":"doorOpened","pl_not_avail":"unavailable"}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür WiFi signal strength","unique_id":"3049ee64_wifi_signal_strength","dev_cla":"signal_strength","ent_cat":"diagnostic","stat_t":"~/maintenance/wifiRssi","state_cla":"measurement","unit_of_meas":"db"}
{"dev":{"ids":["nuki_3049ee64"],"mf":"Nuki","mdl":"SmartLock","name":"Haustür"},"~":"nuki","name":"Haustür bluetooth signal strength","unique_id":"3049ee64_bluetooth_signal_strength","dev_cla":"signal_strength","ent_cat":"diagnostic","stat_t":"~/lock/rssi","state_cla":"measurement","unit_of_meas":"db"}
I think I also saw the lock/state when I tried this on sunday but I might be wrong. It is definitely not here now (or is it binary_state?). Apart from this I don’t receive any further messages when the state of the lock or the state of the door sensor changes (the web ui shows the correct lock state however).
The MQTT NUKI Smartlock Path is set to “nuki”, and the MQTT user is granted read and write access to the “nuki/#” topic.
I’m using moquitto 2.0.15.
EDIT: Got it working now… Of course it was a mistake on my end… I granted the correct mqtt access rights for the lock but forgot to grant the rights to my openhab user
Thanks again for your help, so far everything seems to work as expected!