Skip to content

Commit

Permalink
feat(add): TS0601_pir @Bacchus777 Koenkk/zigbee2mqtt#12883
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 19, 2023
1 parent 49c4453 commit 121edf1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4649,6 +4649,24 @@ const definitions: Definition[] = [
],
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_f1pvdgoh']),
model: 'TS0601_pir',
vendor: 'TuYa',
description: 'Haozee PIR sensor',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
onEvent: tuya.onEvent(),
configure: tuya.configureMagicPacket,
exposes: [e.occupancy(), e.illuminance(), e.battery()],
meta: {
tuyaDatapoints: [
[1, 'occupancy', tuya.valueConverter.trueFalse0],
[4, 'battery', tuya.valueConverter.raw],
[101, 'illuminance', tuya.valueConverter.raw],
],
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_8isdky6j']),
model: 'ZG-225Z',
Expand Down

0 comments on commit 121edf1

Please sign in to comment.