Skip to content

Commit 6dc2d41

Browse files
benedicttobiasbentobiasKoenkk
authored
feat(add): ZPIR-10 (#8055)
* add device * Update tuya.ts * Update tuya.ts magicpacket makes payload send incorrectly * Update src/devices/tuya.ts --------- Co-authored-by: bentobias <[email protected]> Co-authored-by: Koen Kanters <[email protected]>
1 parent 0aa4e12 commit 6dc2d41

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/devices/tuya.ts

+16
Original file line numberDiff line numberDiff line change
@@ -12114,6 +12114,22 @@ const definitions: DefinitionWithExtend[] = [
1211412114
],
1211512115
},
1211612116
},
12117+
{
12118+
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_ppuj1vem']),
12119+
model: 'ZPIR-10',
12120+
vendor: 'Tuya',
12121+
description: 'Treatlife human presence sensor',
12122+
fromZigbee: [tuya.fz.datapoints],
12123+
toZigbee: [tuya.tz.datapoints],
12124+
exposes: [e.occupancy(), e.battery(), e.illuminance()],
12125+
meta: {
12126+
tuyaDatapoints: [
12127+
[1, 'occupancy', tuya.valueConverter.trueFalse0],
12128+
[4, 'battery', tuya.valueConverter.raw],
12129+
[101, 'illuminance', tuya.valueConverter.raw],
12130+
],
12131+
},
12132+
},
1211712133
];
1211812134

1211912135
export default definitions;

0 commit comments

Comments
 (0)