There are two major parts to a contact sensor: the sensor and the magnet. Those need to be placed ... Even before smart home ...