Add support for switching light state.