Mqtt Code not working
MrJamsn opened this issue · comments
Please post the content of the system information page (click on the firmware version)
MQTT is connected. I'm not sure what default code is about, but if you want to configure the PIN, set it in the NUKI Hub configuration portal.
but I tried to set a code via the default_code field in Mqtt device setting. Though, code is not asked before execution.
where did you read that field is for setting a code that will be asked when calling lock/unlock/open? or it was simply an assumption? :)
I assumed based on this Article :) https://developers.home-assistant.io/docs/core/entity/lock/
"Some Locks". I don't think the Nuki Lock API supports a code for lock/unlock/unlatch commands. But I might be wrong, it's been a long time since I read Nuki API docs.
Furthermore, "asking for a code" is not something a lock fw would do. It would be an application layer functionality.
For example, I have the Lock integrated via HA to Alexa: in Alexa app, you configure a code that you need to provide via voice when locking/unlocking, but the Lock (Nuki Hub in reality) doesn't know anything about it, it just receives the command to unlock/lock from HA.
That‘s why I am asking :)
And that's why I'm answering, even if it's more a question for HA forums. :)
You might want to ask there because this is just my technical opinion based on my personal experience on Nuki and HA, and albeit it's a pretty in-depth experience, I might have overlooked something regarding that "user code" functionality. :)