Mijia Light Sensor GZCGQ01LM

This documentation was generated from: xiaomi_gzcgq01lm_light_sensor.json

AttributeValue
status Gold
product Mijia Light Sensor GZCGQ01LM
modelid lumi.sen_ill.mgl01
lumi.sen_ill.mgl01
manufacturername XIAOMI
LUMI

1. ZHALightLevel

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 "XIAOMI"
"LUMI"
R
modelid String "lumi.sen_ill.mgl01"
"lumi.sen_ill.mgl01"
R
name String Name of the resource. RW
swversion String Firmware version of the device. R
type String "ZHALightLevel" R
uniqueid String Unique identifier of the resource. R
modelid String "lumi.sen_ill.mgl01"
"lumi.sen_ill.mgl01"
R
name String Name of the resource. RW
swversion String Firmware version of the device. R
type String "ZHALightLevel" R
uniqueid String Unique identifier of the resource. R

Config attributes

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

Default: true

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

Default: 0

R
reachable Bool When true the device is assumed to be operational. R
tholddark UInt16 Specifies at which lightlevel the dark attribute turns false.

Default: 12000

RW
tholdoffset UInt16 Relative offset to tholddark. Sets daylight attribute to true when when lightlevel is at or above (tholddark + tholdoffset).

Default: 7000

RW

State attributes

AttributeDatatypeDescriptionAccess
lightlevel UInt16 The current Light level in 10000 log10 (lux) + 1.

Default: 0

R
dark Bool True when lightlevel is lower than tholddark.

Default: false

R
daylight Bool True when lightlevel suits daylight according tholddark and tholdoffset configuration.

Default: false

R
lux UInt32 The current Light level in lux.

Default: 0

R
lastupdated ISO 8601 timestamp Timestamp when state was last updated. R

Example output

{
  "config": {
    "battery": 100,
    "on": true,
    "reachable": true,
    "tholddark": 12000,
    "tholdoffset": 7000
  },
  "ep": 1,
  "etag": "761fff5a33ee73a8b9e4ec2e8ee5dac2",
  "lastseen": "2021-01-13T12:07Z",
  "manufacturername": "XIAOMI",
  "modelid": "lumi.sen_ill.mgl01",
  "name": "Light Sensor",
  "state": {
    "dark": false,
    "daylight": false,
    "lastupdated": "2021-01-13T12:07:27.511",
    "lightlevel": 13425,
    "lux": 22
  },
  "swversion": "0.0.0_0027",
  "type": "ZHALightLevel",
  "uniqueid": "04:cf:8c:df:3c:7f:1f:80-01-0400"
}