Or a contact sensor
I use this driver. [RELEASE] Virtual Switch Universal Device Type (uDTH) - good for Alexa, IFTTT, HSM, and other integrations
Since contacts switches are a pain to open and close (custom command) with this driver you can turn on and off like a switch while Alexa can see a contact or motion sensor. Also has auto off/close in the driver so you don’t have to flip it back.