Open/close sensor (MCCGQ01LM)¶
This documentation was generated from: xiaomi_mccgq01lm_openclose_sensor.json
Attribute | Value |
---|---|
status | Gold |
product | Open/close sensor (MCCGQ01LM) |
modelid | lumi.sensor_magnet |
manufacturername | LUMI |
1. ZHAOpenClose¶
Endpoint: /sensors
Top level attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
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" | 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 |
swversion | String | Firmware version of the device. | R |
type | String | "ZHAOpenClose" | R |
uniqueid | String | Unique identifier of the resource. | R |
Config attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
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 |
State attributes¶
Attribute | Datatype | Description | Access |
---|---|---|---|
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.