Yes! Wyze Bulbs can be automated through the Schedules and Automations feature in the Wyze app, allowing crossover with all other Wyze devices that have a trigger function listed. This includes the Sense products (open/closed/motion/clear), as well as the Wyze Cams (motion detected)
This means that you can set up a Schedules and Automations to have your Wyze Bulb turn on when your contact sensor is opened, then have another Shortcut set to turn it back off after a set period of no motion detected in the room.
Here is a link to our user's guide to set up Schedules and Automations: https://support.wyzecam.com/hc/en-us/articles/360030764911-Schedules-and-Automations