Settings - Use as motion sensor

You can also have the contact sensor be used as a motion sensor to automate your lights for daily convenience.
In those settings, you can define how the lights will react (room based definition), as well as chose if the "motion" message is sent when the contact sensor is closed or opened, depending on your installation needs. The opposite action will send a "no motion" message to the lights, which will then apply a delay and react as defined in the "no motion" behavior.

 

Monitoring Routines

In the Library you can activate monitoring routines, and the contact sensor can be used as a motion detector as part of the routines. You can add it to the list of triggers to detect motion in the home.

Default routines are available to try and test, and you can edit those to fit your needs. Routines enable you to have a reaction at home level when SpaceSense, Motion sensors such as the contact sensor, or the Cameras detect movement. 

The action resulting of movement detected is by default the Alarm light mode, flashing all lights of the home.

If the routine is in alarm mode, you can reset it to re-apply it, and you may also want to apply a different light mode or off to the lights if you want to ensure the whole home is not flashing anymore. You can do so using quick actions for example.