The SmartApp always gives you the option to select a sensor. Whether or not you choose one determines which device handler it uses, which means it also works to switch back and forth if you ever need to.
The virtual switch issue is still confusing to me. I can’t reproduce it, and they work fine for me. So odd.