Hi everypody,
some weeks ago I brougt a Neo temperature, humidity and illumination sensor (manufacture name: _TZ3000_qaaysllp https://zigbee.blakadder.com/Neo_NAS-TH02B.html).
For this sensor I tried to create a DDF, but to be honest with no success. I can see the current values for temperature (ep 02, cl 0x0402 at 0x000), humidity (ep 02, cl 0x0405, at ox0000) and lux (ep 01, cl 0x0400, at 0x0000) by reading the clusters in deconz, but the api shows always “null” for temperature and humidity (illumitation works fine).
Can you please give me a hint, what is wrong with this DDF? Thanks in advance.
{
"schema": "devcap1.schema.json",
"manufacturername": "_TZ3000_qaaysllp",
"modelid": "TS0201",
"vendor": "neo",
"product": "TS0201",
"sleeper": true,
"status": "Silver",
"path": "/devices/ts0201_lum.json",
"subdevices": [
{
"type": "$TYPE_LIGHT_LEVEL_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0400"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0106",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x0400"
]
},
"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",
"description": "The current device battery level in 0–100 %.",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"cppsrc": "power_configuration.cpp:199",
"ep": 1,
"eval": "Item.val = Attr.val / 2"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "config/tholddark",
"description": "Specifies at which <code class=\"api-attribute\">lightlevel</code> the <code class=\"api-attribute\">dark</code> attribute turns false.",
"default": 12000
},
{
"name": "config/tholdoffset",
"description": "Relative offset to <code class=\"api-attribute\">tholddark</code>. Sets <code class=\"api-attribute\">daylight</code> attribute to true when when lightlevel is at or above (tholddark + tholdoffset).",
"default": 7000
},
{
"name": "state/dark",
"description": "True when <code class=\"api-attribute\">lightlevel</code> is lower than <code class=\"api-attribute\">tholddark</code>."
},
{
"name": "state/daylight",
"description": "True when <code class=\"api-attribute\">lightlevel</code> suits daylight according <code class=\"api-attribute\">tholddark</code> and <code class=\"api-attribute\">tholdoffset</code> configuration."
},
{
"name": "state/lastupdated"
},
{
"name": "state/lightlevel",
"description": "The current Light level in 10000 log10 (lux) + 1."
},
{
"name": "state/lux",
"description": "The current Light level in lux.",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"cppsrc": "power_configuration.cpp:199",
"ep": 1,
"eval": "Item.val = Attr.val / 2"
}
}
]
},
{
"type": "$TYPE_TEMPERATURE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x02",
"0x0402"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0302",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x0402"
]
},
"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",
"description": "The current device battery level in 0–100 %.",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"cppsrc": "power_configuration.cpp:199",
"ep": 1,
"eval": "Item.val = Attr.val / 2"
}
},
{
"name": "config/offset",
"description": "Relative offset to the main measured value.",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/lastupdated"
},
{
"name": "state/temperature",
"description": "The current temperature in °C × 100.",
"default": 0
}
]
},
{
"type": "$TYPE_HUMIDITY_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x02",
"0x0405"
],
"fingerprint": {
"profile": "0x0104",
"device": "0x0302",
"endpoint": "0x01",
"in": [
"0x0000",
"0x0001",
"0x0405"
]
},
"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",
"description": "The current device battery level in 0–100 %.",
"parse": {
"at": "0x0021",
"cl": "0x0001",
"cppsrc": "power_configuration.cpp:199",
"ep": 1,
"eval": "Item.val = Attr.val / 2"
}
},
{
"name": "config/offset",
"description": "Relative offset to the main measured value.",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/humidity",
"description": "The current relative humidity in percent.",
"default": 0
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0400",
"report": [
{
"at": "0x0000",
"dt": "0x21",
"min": 1,
"max": 300,
"change": "0x00000001"
}
]
},
{
"bind": "unicast",
"src.ep": 2,
"cl": "0x0402",
"report": [
{
"at": "0x0000",
"dt": "0x29",
"min": 1,
"max": 300,
"change": "0x00000001"
}
]
},
{
"bind": "unicast",
"src.ep": 2,
"cl": "0x0405",
"report": [
{
"at": "0x0000",
"dt": "0x21",
"min": 1,
"max": 300,
"change": "0x00000001"
}
]
}
]
}