Skip to content

Commit

Permalink
feat(add): NAS-PS09B2
Browse files Browse the repository at this point in the history
  • Loading branch information
trinode committed Mar 22, 2024
1 parent 14dffaa commit 613cb2c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7432,6 +7432,41 @@ const definitions: Definition[] = [
],
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_kyhbrfyl']),
model: 'NAS-PS09B2 ',
vendor: 'Neo',
description: 'Human presence sensor',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
exposes: [
e.occupancy(),
e.enum('human_motion_state', ea.STATE, ['none', 'small', 'large'])
.withDescription('Human Motion State'),
e.numeric('departure_delay', ea.STATE_SET).withUnit('s').withValueMin(3)
.withValueMax(600).withValueStep(1).withDescription('Presence Time'),
e.numeric('radar_range', ea.STATE_SET).withUnit('cm').withValueMin(150).withValueMax(600)
.withValueStep(75).withDescription('Motion Range Detection'),
e.numeric('radar_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(7)
.withValueStep(1).withDescription('Motion Detection Sensitivity'),
e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(7)
.withValueStep(1).withDescription('Motionless Detection Sensitivity'),
e.numeric('dis_current', ea.STATE).withUnit('cm').withValueMin(0).withValueMax(1000)
.withValueStep(1).withLabel('Current distance')
.withDescription('Current Distance of Detected Motion'),
],
meta: {
tuyaDatapoints: [
[1, 'occupancy', tuya.valueConverter.trueFalse1],
[11, 'human_motion_state', tuya.valueConverterBasic.lookup({'none': 0, 'small': 1, 'large': 2})],
[12, 'departure_delay', tuya.valueConverter.raw],
[13, 'radar_range', tuya.valueConverter.raw],
[15, 'radar_sensitivity', tuya.valueConverter.raw],
[16, 'presence_sensitivity', tuya.valueConverter.raw],
[19, 'dis_current', tuya.valueConverter.raw],
],
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_v1jqz5cy']),
model: 'BLE-YL01',
Expand Down

0 comments on commit 613cb2c

Please sign in to comment.