add plug switch state