You can accomplish something pretty close by creating a virtual contact sensor using this driver and setting up an automation with your physical contact sensor. [ST Edge] Virtual Hub Kit [BETA]
The virtual sensor has the ability to close it via an automation. Not via the UI