Are virtual switch possible and compatible with Alexa?

try this

This will add tuya devices without cloud connection

or

To connect devices via tuya cloud

You can use a virtual bulb to add a switch to alexa