How to get a trigger value?

I have set up a HomaAssistant MQTT integration working with the Nuki 4 Pro lock and it works fine, I guess.
Now I want to create a Node Red flow and for that I have to be able to distinguish if the lock has been operated from the outside (app) or from the inside (button). Lock state sent to Node Red listener doesn’t provide a trigger value, for now I’ve created a workaround and send a HTTP request to the web API but it’s not reliable (and it doesn’t seem elegant).
Reading the documentation I can see the “trigger” key, however I don’t see it in the messages I receive from the lock. What am I doing wrong?

OK, so now I know the answer.
Nuki entity still doesn’t provide the necessary information, but I’ve found a solution: in Node-RED I subscribe to the ‘nuki/[id]/lockActionEvent’ MQTT topic. The messages in this topic contain all the information I need (lock/unlock and the trigger).

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.