'Changed by' for entities

hi all,

I am trying to create a trigger based on a Zwave switch turning off when it is turned off by hand and not when it is turned off by some other automation in HASS.

I don’t know where to start looking for this state change. Any example you can point me to?

Thank you,

I like the question: Post