Skip to content

Commit

Permalink
feat(add): THPZ1 (#7250)
Browse files Browse the repository at this point in the history
* 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
taby1 and Koenkk committed Mar 25, 2024
1 parent 9e7f8ef commit e1f014f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/devices/index.ts
Expand Up @@ -252,6 +252,7 @@ import stelpro from './stelpro';
import sunricher from './sunricher';
import swann from './swann';
import sylvania from './sylvania';
import tapestry from './tapestry';
import tci from './tci';
import technicolor from './technicolor';
import terncy from './terncy';
Expand Down Expand Up @@ -548,6 +549,7 @@ export default [
...sunricher,
...swann,
...sylvania,
...tapestry,
...tci,
...technicolor,
...terncy,
Expand Down
20 changes: 20 additions & 0 deletions src/devices/tapestry.ts
@@ -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;

0 comments on commit e1f014f

Please sign in to comment.