User changed switch detection

Hi,

I’m writing new post, because I tried to find this info on web/forum but I had no luck with it…

To the point. I’m wondering if there is any possibility to detect (or hack it somehow) if given switch/light/input has been changed by user in UI or by automation rule.
It would be very helpful for my motion triggered lights, because sometimes I want to e.g. manually change lights to on and force them not to turn off automatically. I know I can always have switch to turn off certain automation but it’s not what I want to achieve.

Check this;

Thanks, I will check it out and hope it solves my problem :slightly_smiling_face: