Xiaomi MCCGQ13LM
| Model | MCCGQ13LM |
| Vendor | Xiaomi |
| Description | Aqara P1 door & window contact sensor |
| Exposes | contact, battery, voltage, battery_cover, detection_distance, linkquality |
| Picture | ![]() |
Exposes
Contact (binary)
Indicates if the contact is closed (= true) or open (= false).
Value can be found in the published state on the contact property.
It’s not possible to read (/get) or write (/set) this value.
If value equals false contact is ON, if true OFF.
Battery (numeric)
Remaining battery in %, can take up to 24 hours before reported..
Value can be found in the published state on the battery property.
It’s not possible to read (/get) or write (/set) this value.
The minimal value is 0 and the maximum value is 100.
The unit of this value is %.
Voltage (numeric)
Voltage of the battery in millivolts.
Value can be found in the published state on the voltage property.
It’s not possible to read (/get) or write (/set) this value.
The unit of this value is mV.
Battery_cover (binary)
Value can be found in the published state on the battery_cover property.
It’s not possible to read (/get) or write (/set) this value.
If value equals OPEN battery_cover is ON, if CLOSE OFF.
Detection_distance (enum)
The sensor will be considered “off” within the set distance. Please press the device button before setting.
Value can be found in the published state on the detection_distance property.
To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"detection_distance": ""}.
To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"detection_distance": NEW_VALUE}.
The possible values are: 10mm, 20mm, 30mm.
Linkquality (numeric)
Link quality (signal strength).
Value can be found in the published state on the linkquality property.
It’s not possible to read (/get) or write (/set) this value.
The minimal value is 0 and the maximum value is 255.
The unit of this value is lqi.
