Here is the app that turns one or more contact sensors into a virtual motion sensor:
This could be done with a rule also, but you'd have to create the virtual motion sensor first, and use Custom Action to control it. Using RM is a bit of overkill considering how simple the above is.