One way to switch devices is using Alexa routines. These can be called from the binding with the startRoutine. Search this topic for examples.
Also when posting items you should use code fences. Click the paper icon next to the smile Imogen or second icon from the right.