{ "schema": "devcap1.schema.json", "manufacturername": "$MF_LUMI", "modelid": "lumi.weather", "vendor": "Xiaomi", "product": "Aqara temp./hum./press. sensor WSDCGQ11LM", "sleeper": true, "status": "Gold", "subdevices": [ { "type": "$TYPE_HUMIDITY_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0x0405" ], "fingerprint": { "profile": "0x0104", "device": "0x5F01", "endpoint": "0x01", "in": [ "0x0000", "0x0405" ] }, "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername", "awake": true }, { "name": "attr/modelid", "awake": true }, { "name": "attr/name" }, { "name": "attr/swversion", "refresh.interval": 84000, "read": { "at": "0x0006", "cl": "0x0000", "ep": 1, "fn": "zcl" }, "parse": { "at": "0x0006", "cl": "0x0000", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl" } }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "config/battery", "awake": true, "parse": {"fn": "xiaomi:special", "at": "0xff01", "idx": "0x01", "script": "xiaomi_battery.js"} }, { "name": "config/offset" }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "config/temperature", "public": false }, { "name": "state/humidity" }, { "name": "state/lastupdated" } ] }, { "type": "$TYPE_TEMPERATURE_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0x0402" ], "fingerprint": { "profile": "0x0104", "device": "0x5F01", "endpoint": "0x01", "in": [ "0x0000", "0x0402" ] }, "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion", "read": {"fn": "none"}, "parse": { "at": "0x0006", "cl": "0x0000", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl" } }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "config/battery", "parse": {"fn": "xiaomi:special", "at": "0xff01", "idx": "0x01", "script": "xiaomi_battery.js"} }, { "name": "config/offset" }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "config/temperature", "public": false }, { "name": "state/lastupdated" }, { "name": "state/temperature", "parse": { "at": "0x0000", "cl": "0x0402", "ep": 0, "eval": "if (Attr.val + R.item('config/offset').val != -10000) {Item.val = Attr.val + R.item('config/offset').val}", "fn": "zcl" } } ] }, { "type": "$TYPE_PRESSURE_SENSOR", "restapi": "/sensors", "uuid": [ "$address.ext", "0x01", "0x0403" ], "fingerprint": { "profile": "0x0104", "device": "0x5F01", "endpoint": "0x01", "in": [ "0x0000", "0x0403" ] }, "items": [ { "name": "attr/id" }, { "name": "attr/lastannounced" }, { "name": "attr/lastseen" }, { "name": "attr/manufacturername" }, { "name": "attr/modelid" }, { "name": "attr/name" }, { "name": "attr/swversion", "read": {"fn": "none"}, "parse": { "at": "0x0006", "cl": "0x0000", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl" } }, { "name": "attr/type" }, { "name": "attr/uniqueid" }, { "name": "config/battery", "parse": {"fn": "xiaomi:special", "at": "0xff01", "idx": "0x01", "script": "xiaomi_battery.js"} }, { "name": "config/offset" }, { "name": "config/on" }, { "name": "config/reachable" }, { "name": "config/temperature", "public": false }, { "name": "state/lastupdated" }, { "name": "state/pressure" } ] } ] }