simplify
doc
added tests for switch/dimmer