Unfortunately, as mentioned in the contact and motion sensor documentation, these cannot be used to trigger Alexa routines for the time being. Currently, the only support for these is requesting their state via voice commands.