From bfdf450eb7e7f1b994f2ba10505a2b1b49ca2bae Mon Sep 17 00:00:00 2001 From: support <117250319+3reality-support@users.noreply.github.com> Date: Thu, 17 Oct 2024 03:40:14 +0800 Subject: [PATCH] fix: update 3r product (#8144) * update * Update third_reality.ts * Update third_reality.ts * Update src/devices/third_reality.ts Co-authored-by: Koen Kanters * Update third_reality.ts * u * update --------- Co-authored-by: jintj Co-authored-by: Koen Kanters --- src/devices/third_reality.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/devices/third_reality.ts b/src/devices/third_reality.ts index 4f25350c68aa3..2d343d81d7a05 100644 --- a/src/devices/third_reality.ts +++ b/src/devices/third_reality.ts @@ -330,7 +330,7 @@ const definitions: DefinitionWithExtend[] = [ humidity(), battery(), deviceAddCustomCluster('3rSpecialCluster', { - ID: 0xff01, + ID: 0xfc00, manufacturerCode: 0x1407, attributes: { celsiusDegreeCalibration: {ID: 0x0031, type: Zcl.DataType.INT16}, @@ -349,16 +349,14 @@ const definitions: DefinitionWithExtend[] = [ vendor: 'Third Reality', description: 'Smart watering kit', extend: [ - battery(), + battery({percentage: true, voltage: true, lowStatus: true, percentageReporting: true}), onOff(), deviceAddCustomCluster('3rWateringSpecialCluster', { ID: 0xfff2, manufacturerCode: 0x1407, attributes: { - watering_times: {ID: 0x0000, type: Zcl.DataType.UINT8}, - interval_day: {ID: 0x0001, type: Zcl.DataType.UINT8}, - more_watering_times: {ID: 0x0002, type: Zcl.DataType.UINT16}, - water_speed_control: {ID: 0x0003, type: Zcl.DataType.UINT8}, + wateringTimes: {ID: 0x0000, type: Zcl.DataType.UINT8}, + intervalDay: {ID: 0x0001, type: Zcl.DataType.UINT8}, }, commands: {}, commandsResponse: {},