Open/close sensor (MCCGQ11LM)

This documentation was generated from: xiaomi_mccgq11lm_openclose_sensor.json

AttributeValue
status Gold
product Open/close sensor (MCCGQ11LM)
modelid lumi.sensor_magnet.aq2
manufacturername LUMI

1. ZHAOpenClose

Endpoint: /sensors

Top level attributes

AttributeDatatypeDescriptionAccess
id String Identifier of the resource, unique within an endpoint. R
lastannounced ISO 8601 timestamp Timestamp of the last power-cyle or rejoin. R
lastseen ISO 8601 timestamp Timestamp of the last communication. R
manufacturername String "LUMI" R
modelid String "lumi.sensor_magnet.aq2" R
name String Name of the resource. RW
swversion String Firmware version of the device. R
type String "ZHAOpenClose" R
uniqueid String Unique identifier of the resource. R
modelid String "lumi.sensor_magnet.aq2" R
name String Name of the resource. RW
swversion String Firmware version of the device. R
type String "ZHAOpenClose" R
uniqueid String Unique identifier of the resource. R

Config attributes

AttributeDatatypeDescriptionAccess
battery UInt8 The current device battery level in 0–100 %.

Default: 0

R
on Bool When true the sensor is enabled in rules.

Default: true

RW
reachable Bool When true the device is assumed to be operational. R
temperature UInt8 The current device temperature in °C. R

State attributes

AttributeDatatypeDescriptionAccess
lastupdated ISO 8601 timestamp Timestamp when state was last updated. R
open Bool True when open is detected. R

Known Issues

Sticky Parents

Almost all Xiaomi end-devices stick to their parent after pairing. The parent is the device which repeats the signal, it can be a router or the coordinator.

Once a parent is cut from power or otherwise lost, the end-device won’t automatically search for a new parent and appears to be offline.

→ Best practice for pairing is therefore to pair the device at the place where it’s gonna be installed to force it to select a good parent. It’s also advisable to power off all routers which aren’t powered all the time, so that they aren’t considered as parent when pairing.

Difficult pairing

To pair the sensor it needs to be reset first, by pressing the pin-hole button for 10 seconds.

Then after starting sensor search, press the button again until the LED blinks. Finally continuously press the button every 2 seconds until joining is confirmed.