A prototype designed and explained here A 4 minutes video explaining some of the features of the Smart fan socket.