Reverse an Iris contact sensor

Try this, set the sensor to control a virtual switch, and the switch control a virtual open / close sensor that can reverse the operation.