How do smart plugs of domotic IoT work?