Detecting if AC appliance is powered

Read this