Physical vs ui switch trigger

Is there a way to understand if a change in state of a switch or light is originated by physical interaction with the switch or by ui?

We figured it out here:

1 Like