How to Configure Contact Sensors for Doors and Windows

Difficulty
Beginner
Tested on
iOS 18.4 - Apple HomeKit / Matter-enabled sensor
You will need
Smart contact sensor kit, adhesive strips or mounting screws, smartphone with smart home app, home hub

Step by step

  1. 2 min

    Position the sensor components

    Clean the door or window frame surface with isopropyl alcohol to ensure proper adhesive bonding. Align the primary sensor unit on the stationary frame and the smaller magnet on the moving door or window sash. Maintain a gap of no more than 15mm between the two components when the entry point is fully closed.

    Note: Use a pencil to lightly mark alignment points before removing the adhesive backing.
  2. 2 min

    Pair the sensor to your hub

    Open your primary smart home application and navigate to the Add Device menu. Follow the manufacturer instructions to place the sensor into pairing mode, typically by holding a physical reset button for five seconds until the LED flashes. Scan the QR code or select the device from the detected list to complete the connection.

    Note: Ensure your phone is on a 2.4GHz Wi-Fi network if the sensor does not support 5GHz.
  3. 1 min

    Assign the sensor to a room

    Select the newly added sensor in your home app and assign it to the specific room where it is installed. Rename the device to a descriptive label, such as Kitchen Window or Garage Side Door. Proper naming ensures voice assistant commands remain accurate.

  4. 3 min

    Create an opening notification

    Navigate to the Automations or Routines tab and select Create New. Set the trigger to When Sensor Opens. Select the notification action to receive an immediate push alert on your phone whenever the door or window is accessed.

    Note: Enable notifications only for sensitive areas to avoid alert fatigue.
  5. 3 min

    Set up lighting triggers

    Create an automation where the triggering event is When Sensor Opens. Set the action to Turn On Light for the room where the sensor resides. Add a secondary condition to only execute this automation if the current time is between sunset and sunrise.

    Note: Set an auto-off timer for five minutes to conserve energy.
  6. 1 min

    Test the signal range

    Open and close the door or window repeatedly while monitoring the status icon in your app. Verify that the app reflects the closed or open status within two seconds. If the status lag persists, move the smart hub closer to the sensor to improve signal strength.

    Note: Check battery levels in the device settings if responsiveness decreases.