Hi, to be honest I don’t know when bindings are needed and how it works in detail - I have to say that the documentation is a bit sparse on this . Maybe you can clarify or point me to a document (cheat sheet and DDF docs in github I already know)
But following your suggestion I removed the report configuration and it still works fine. Additionally, I added the temperature xiaomi-special part so this works as well now.
One question, is “Silver” the right classification or should I set to “Gold” or something else?
{
"schema": "devcap1.schema.json",
"manufacturername": "$MF_LUMI",
"modelid": "lumi.sensor_magnet.aq2",
"vendor": "Xiaomi",
"product": "lumi.sensor_magnet.aq2",
"sleeper": true,
"status": "Silver",
"path": "/devices/lumi.sensor_magnet.aq2.json",
"subdevices": [
{
"type": "$TYPE_OPEN_CLOSE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0006"
],
"fingerprint": {
"profile": "0x0104",
"device": "0xFFFF",
"endpoint": "0x01",
"in": [
"0x0006"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/battery",
"awake": true,
"parse": {
"at": "0xff01",
"ep": 1,
"fn": "xiaomi:special",
"idx": "0x01",
"script": "xiaomi_battery.js"
},
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/temperature",
"parse": {
"at": "0xff01",
"ep": 1,
"eval": "Item.val = Attr.val * 100",
"fn": "xiaomi:special",
"idx": "0x03"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/open",
"parse": {
"at": "0x0000",
"cl": "0x0006",
"ep": 1,
"eval": "Item.val = Attr.val != 0",
"fn": "zcl"
},
"default": false
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0006"
}
]
}