Detect manual switch change

Hi,

Is it possible to detect manual switch (I have TP-Link in wall switch) been turned on/off and trigger some action (turn on other lights in house)? So if it is turned on by automation (UI or script) it won’t trigger my additional action.

Dima