-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DDF for Tapestry Presence Z1 (#7657)
- Loading branch information
Showing
1 changed file
with
217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |