Skip to content

Commit 357c46e

Browse files
3reality-supportjintjKoenkk
authored
feat(add): 3RWK0148Z (#8106)
* update * Update third_reality.ts * Update third_reality.ts * Update src/devices/third_reality.ts Co-authored-by: Koen Kanters <[email protected]> * Update third_reality.ts * u --------- Co-authored-by: jintj <[email protected]> Co-authored-by: Koen Kanters <[email protected]>
1 parent f9d88fa commit 357c46e

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

src/devices/third_reality.ts

+25-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const definitions: DefinitionWithExtend[] = [
283283
extend: [
284284
temperature(),
285285
humidity(),
286-
battery({voltage: true}),
286+
battery(),
287287
deviceAddCustomCluster('3rSpecialCluster', {
288288
ID: 0xff01,
289289
manufacturerCode: 0x1233,
@@ -332,7 +332,7 @@ const definitions: DefinitionWithExtend[] = [
332332
battery(),
333333
deviceAddCustomCluster('3rSpecialCluster', {
334334
ID: 0xff01,
335-
manufacturerCode: 0x1233,
335+
manufacturerCode: 0x1407,
336336
attributes: {
337337
celsiusDegreeCalibration: {ID: 0x0031, type: Zcl.DataType.INT16},
338338
humidityCalibration: {ID: 0x0032, type: Zcl.DataType.INT16},
@@ -344,6 +344,29 @@ const definitions: DefinitionWithExtend[] = [
344344
],
345345
ota: ota.zigbeeOTA,
346346
},
347+
{
348+
zigbeeModel: ['3RWK0148Z'],
349+
model: '3RWK0148Z',
350+
vendor: 'Third Reality',
351+
description: 'Smart watering kit',
352+
extend: [
353+
battery(),
354+
onOff(),
355+
deviceAddCustomCluster('3rWateringSpecialCluster', {
356+
ID: 0xfff2,
357+
manufacturerCode: 0x1407,
358+
attributes: {
359+
watering_times: {ID: 0x0000, type: Zcl.DataType.UINT8},
360+
interval_day: {ID: 0x0001, type: Zcl.DataType.UINT8},
361+
more_watering_times: {ID: 0x0002, type: Zcl.DataType.UINT16},
362+
water_speed_control: {ID: 0x0003, type: Zcl.DataType.UINT8},
363+
},
364+
commands: {},
365+
commandsResponse: {},
366+
}),
367+
],
368+
ota: ota.zigbeeOTA,
369+
},
347370
{
348371
zigbeeModel: ['3RSP02028BZ'],
349372
model: '3RSP02028BZ',

0 commit comments

Comments
 (0)