Added toggle action for switch devices, like requested in #200