This comes up from time to time, and the issue is that only certain types of devices can be used as triggers for Alexa routines.
This thread discussed the same issue and includes a code snippet for a combined virtual contact sensor+switch.
It’s also possible to find similar virtual device drivers in Hubitat Package Manager.