Skip to content

Commit

Permalink
feat(add): RB-SRAIN01 Koenkk/zigbee2mqtt#23532
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Aug 12, 2024
1 parent 0afa501 commit 805f5a4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,32 @@ const definitions: Definition[] = [
return exps;
},
},
{
fingerprint: [{modelID: 'TS0207', manufacturerName: '_TZ3210_tgvtvdoc'}],
model: 'RB-SRAIN01',
vendor: 'Tuya',
description: 'Solar rain sensor',
fromZigbee: [tuya.fz.datapoints, fz.battery, fz.ias_water_leak_alarm_1],
toZigbee: [],
exposes: [
e.illuminance().withUnit('lx'),
e.numeric('illuminance_average_20min', ea.STATE).withUnit('lx').withDescription('Illuminance average for the last 20 minutes'),
e.numeric('illuminance_maximum_today', ea.STATE).withUnit('lx').withDescription('Illuminance maximum for the last 24 hours'),
e.binary('cleaning_reminder', ea.STATE, 'ON', 'OFF').withDescription('Cleaning reminder'),
e.numeric('rain_intensity', ea.STATE).withDescription('Rainfall intensity'),
e.battery(),
],
meta: {
tuyaDatapoints: [
[4, 'battery', tuya.valueConverter.raw],
[101, 'illuminance', tuya.valueConverter.raw],
[102, 'illuminance_average_20min', tuya.valueConverter.raw],
[103, 'illuminance_maximum_today', tuya.valueConverter.raw],
[104, 'cleaning_reminder', tuya.valueConverter.trueFalse0],
[105, 'rain_intensity', tuya.valueConverter.raw],
],
},
},
{
fingerprint: tuya.fingerprint('TS0101', ['_TYZB01_ijihzffk', '_TZ3210_tfxwxklq', '_TZ3210_2dfy6tol']),
model: 'TS0101',
Expand Down

0 comments on commit 805f5a4

Please sign in to comment.