Skip to content

Commit

Permalink
DDF for Tapestry Presence Z1 (#7657)
Browse files Browse the repository at this point in the history
  • Loading branch information
taby1 authored May 13, 2024
1 parent 97ef4aa commit 2a75260
Showing 1 changed file with 217 additions and 0 deletions.
217 changes: 217 additions & 0 deletions devices/tapestry/tapestry_presence_z1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "Tapestry",
"modelid": "THPZ1",
"vendor": "Tapestry",
"product": "Presence Z1 (THPZ1)",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_PRESENCE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0406"
],
"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/on"
},
{
"name": "config/reachable"
},
{
"name": "state/lastupdated"
},
{
"name": "state/presence",
"parse": {
"at": "0x0000",
"cl": "0x0406",
"ep": 1,
"eval": "Item.val = Attr.val"
},
"default": false
}
]
},
{
"type": "$TYPE_HUMIDITY_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"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/offset",
"description": "Relative offset to the main measured value.",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/humidity",
"parse": {
"at": "0x0000",
"cl": "0x0405",
"ep": 1,
"eval": "Item.val = Attr.val"
},
"default": 0
},
{
"name": "state/lastupdated"
}
]
},
{
"type": "$TYPE_TEMPERATURE_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"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/offset",
"description": "Relative offset to the main measured value.",
"default": 0
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/lastupdated"
},
{
"name": "state/temperature",
"parse": {
"at": "0x0000",
"cl": "0x0402",
"ep": 1,
"eval": "Item.val = Attr.val"
},
"default": 0
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0406",
"report": [
{
"at": "0x0000",
"dt": "0x18",
"min": 1,
"max": 600
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0402"
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0405"
}
]
}

0 comments on commit 2a75260

Please sign in to comment.