Skip to main content
Selora Homes Selora Homes

Aqara Door and Window Sensor Setup

Pair the Aqara Door and Window Sensor, or the Door and Window Sensor T1, straight to the Selora Hub's Zigbee coordinator, mount it, and set it up as a door or a window for the recipes.

Aqara Zigbee Zigbee2MQTT ZHA Security Setup

The Aqara Door and Window Sensor (MCCGQ11LM) and its Zigbee 3.0 successor, the Door and Window Sensor T1 (MCCGQ12LM), are small contact sensors: a sensor unit and a magnet, which report whether a door or a window is open. Both pair straight to the Selora Hub’s Zigbee coordinator, with no Aqara hub or app, and report locally. This guide covers both: where they differ, it says so.

This guide uses Zigbee2MQTT, the Zigbee integration we recommend. If the home runs ZHA, the differences are at the end.

Before You Start

  1. Zigbee2MQTT is running. Its frontend shows the coordinator online.
  2. Pair it where it will be mounted. The sensor runs on a battery, so it joins through the nearest mains-powered Zigbee device, such as a plug or a switch, or the coordinator. Pair those of the room first, then pair the sensor at its final spot, so it joins through the right one. See Pairing Zigbee Devices.
  3. Not for a security system. Aqara says the T1 should not be used as security equipment. Use it to know whether a door or a window is open, not as an intrusion alarm.

Step 1: Pair It

  1. In the Zigbee2MQTT frontend, select the arrow next to Permit join (All), and pick the router nearest the sensor, such as a plug in the same room. Aqara sensors are awkward about choosing a router on their own.
  2. Hold the button on the sensor unit until its blue light blinks, then release it: about 5 seconds.
  3. If the interview stalls, press the button briefly about once a second, to keep the sensor awake until it finishes.
  4. When the interview succeeds, rename it after the door or window from its page in the frontend.
  5. In Home Assistant, open the device and assign the area.

Step 2: Mount It

  1. Clean and dry both surfaces, and keep away from metal frames.
  2. Stick the sensor unit on the fixed frame, and the magnet on the door or window that opens.
  3. Line up the marks on the two parts, less than 22 mm (7/8 in) apart when it is shut.
  4. Open and close it a few times, and check the state in Home Assistant.

On a sliding door that bounces open and closed, set the device’s debounce option in the Zigbee2MQTT frontend.

Step 3: Set Windows as Windows

Zigbee2MQTT shows the sensor as Contact, a door. The window recipes look for windows, so for a window sensor:

  1. Open the device, then the Contact sensor, and select the settings icon.
  2. Set Show as to Window, and select Update.

What Home Assistant Gets

  • Contact: open or closed, shown as a door, or as a window once Step 3 is done.
  • Battery. The original sensor also reports Device temperature, the temperature inside it.

Both run on one CR1632 battery. Aqara rates the original sensor’s at about two years.

Zigbee2MQTT’s firmware index includes the T1: when an update shows in the frontend’s OTA page, or as an update entity in Home Assistant, install it.

Use It in Recipes

ZHA

The mounting is the same. Start pairing with Add Device under Settings > Devices & Services > Zigbee Home Automation instead of Permit join, and name the sensor and assign the area there. Aqara rates the original sensor’s pairing hold at 3 seconds, and the T1’s at 5.

ZHA shows the sensor as Opening, a generic open and closed sensor, which the recipes do not pick up. Set Show as to Door or Window, as in Step 3, for every sensor. It also reports Battery, and on the original sensor Device temperature.

Troubleshooting

  1. It does not pair, or pairs without its sensors. Hold the button again until the light blinks, then keep pressing it briefly about once a second until pairing finishes.
  2. It goes unavailable. Check the battery, then the signal: add a mains-powered Zigbee device near it, such as a smart plug.
  3. It is missing from a window recipe. Check that Show as is set to Window.
  4. Factory reset the T1. Hold the button for 5 seconds: the light flashes 3 times.

Type to search across

↑↓ navigate ↵ open
⌘K search