is there any hooks to detect the SmartSwitch switch on/off?