Surtout celui là il est pas simple :
{
"schema": "devcap1.schema.json",
"manufacturername": "OWON",
"modelid": "PIR313",
"vendor": "OWON",
"product": "PIR313",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_PRESENCE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0500"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0402",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x0500"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"refresh.interval": 84000,
"read": {"cl": "0x0000", "at": "0x0006", "ep": 1, "fn": "zcl"},
"parse": {"cl": "0x0000", "at": "0x0006", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/duration"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/enrolled",
"public": false
},
{
"name": "config/pending"
},
{
"name": "config/battery"
},
{
"name": "state/lowbattery"
},
{
"name": "state/tampered"
},
{
"name": "state/lastupdated"
},
{
"name": "state/presence"
}
]
},
{
"type": "$TYPE_TEMPERATURE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x03",
"0x0402"
],
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"refresh.interval": 84000,
"read": {"cl": "0x0000", "at": "0x0006", "ep": 1, "fn": "zcl"},
"parse": {"cl": "0x0000", "at": "0x0006", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/offset",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/battery",
"awake": true,
"refresh.interval": 3600,
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2",
"fn": "zcl"
}
},
{
"name": "state/lastupdated"
},
{
"name": "state/temperature"
}
]
},
{
"type": "$TYPE_HUMIDITY_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x03",
"0x0405"
],
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"refresh.interval": 84000,
"read": {"cl": "0x0000", "at": "0x0006", "ep": 1, "fn": "zcl"},
"parse": {"cl": "0x0000", "at": "0x0006", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/offset",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/battery",
"awake": true,
"refresh.interval": 3600,
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2",
"fn": "zcl"
}
},
{
"name": "state/humidity"
},
{
"name": "state/lastupdated"
}
]
},
{
"type": "$TYPE_LIGHT_LEVEL_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x02",
"0x0400"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0106",
"endpoint": "0x02",
"in": [
"0x0000",
"0x0400"
]
},
"items": [
{
"name": "attr/id"
},
{
"name": "attr/lastannounced"
},
{
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion",
"refresh.interval": 84000,
"read": {"cl": "0x0000", "at": "0x0006", "ep": 1, "fn": "zcl"},
"parse": {"cl": "0x0000", "at": "0x0006", "ep": 1, "eval": "Item.val = Attr.val", "fn": "zcl"}
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/battery",
"awake": true,
"refresh.interval": 3600,
"parse": {
"at": "0x0021",
"cl": "0x0001",
"ep": 1,
"eval": "Item.val = Attr.val / 2",
"fn": "zcl"
}
},
{
"name": "config/reachable"
},
{
"name": "config/tholddark",
"default": 12000
},
{
"name": "config/tholdoffset",
"default": 7000
},
{
"name": "state/dark",
"default": false
},
{
"name": "state/daylight",
"default": false
},
{
"name": "state/lastupdated"
},
{
"name": "state/lightlevel",
"awake": true,
"read": {
"at": "0x0000",
"cl": "0x0400",
"ep": 2,
"fn": "zcl"
},
"parse": {
"at": "0x0000",
"cl": "0x0400",
"ep": 2,
"eval": "Item.val = Attr.val;",
"fn": "zcl"
},
"default": 0
},
{
"name": "state/lux",
"default": 0
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 2,
"cl": "0x0400",
"report": [
{
"at": "0x0000",
"dt": "0x21",
"min": 60,
"max": 600,
"change": "0x000007d0"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0001",
"report": [
{
"at": "0x0021",
"dt": "0x20",
"min": 60,
"max": 3600
}
]
},
{
"bind": "unicast",
"src.ep": 3,
"cl": "0x0402",
"report": [
{
"at": "0x0000",
"dt": "0x29",
"min": 60,
"max": 600,
"change": "0x0000000A"
}
]
},
{
"bind": "unicast",
"src.ep": 3,
"cl": "0x0405",
"report": [
{
"at": "0x0000",
"dt": "0x21",
"min": 60,
"max": 600
}
]
}
]
}
Particularité de ce capteur il mets très longtemps a remonté les premières données de chaque item.