It would be useful if there was an option to record a video when a contact sensor closes, as well as when it opens.
Good news! You can already do this with the Shortcuts feature of the app.
Automation trigger: Contact sensor opens
Action: Record a short video to the cloud
For details on how to set up Shortcuts, see the Support link, top right.
Great, thanks for the fast reply. I had played around with actions but had not looked into the automation list before.
Do you know if a vdeo is sent to the cloud using this automation trigger, is it also recorded on the local SD card?
It is not recorded to the SD card. There will be video of that time on the SD card only if you are recording to the SD continuously, or if recording in event-only mode, there is motion at that time.