Physical vs software switch press

Is there a way in node red to differentiate from someone pressing a zwave switch vs an automation changing the switch state? I think I found a way to do it in HA, but I’m curious how to do it in NR.

The event could have info about what triggered it.
Can’t remember what it’s called but user id or something.

A similar post is here:

Maybe you can get some useful information there.