Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Tapestry vendor file * Adjusted formatting * Added new references to index.ts * Update src/devices/tapestry.ts Updated description text Co-authored-by: Koen Kanters <koenkanters94@gmail.com> * Update src/devices/tapestry.ts Removed redundant meta property Co-authored-by: Koen Kanters <koenkanters94@gmail.com> --------- Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
- Loading branch information
Showing
2 changed files
with
22 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
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,20 @@ | ||
import {Definition} from '../lib/types'; | ||
import * as exposes from '../lib/exposes'; | ||
import fz from '../converters/fromZigbee'; | ||
const e = exposes.presets; | ||
|
||
const definitions: Definition[] = [ | ||
{ | ||
zigbeeModel: ['Presence Z1'], | ||
model: 'THPZ1', | ||
vendor: 'Tapestry', | ||
description: 'Presence sensor Z1 occupancy and temperature/humidity sensor', | ||
extend: [], | ||
fromZigbee: [fz.temperature, fz.humidity, fz.occupancy], | ||
toZigbee: [], | ||
exposes: [e.occupancy(), e.temperature(), e.humidity()], | ||
}, | ||
]; | ||
|
||
export default definitions; | ||
module.exports = definitions; |