Skip to content

Commit 3ef88dd

Browse files
3reality-supportjintjKoenkk
authored
fix(ignore): Add more Third Reality custom clusters (#7969)
* update 3r waterleak ts * add 3r soil sensor * update 3r soil sensor * update motion and door sensor * update 3r switch_gen3 vibration garage * Update third_reality.ts * Update third_reality.ts * update 3r * update 3r * update 3r switch_gen3 vibration and garage * updates --------- Co-authored-by: jintj <[email protected]> Co-authored-by: Koen Kanters <[email protected]>
1 parent a699873 commit 3ef88dd

File tree

1 file changed

+41
-5
lines changed

1 file changed

+41
-5
lines changed

src/devices/third_reality.ts

+41-5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ const definitions: DefinitionWithExtend[] = [
5050
device.powerSource = 'Battery';
5151
device.save();
5252
},
53+
extend: [
54+
deviceAddCustomCluster('3rSwitchGen3SpecialCluster', {
55+
ID: 0xff02,
56+
manufacturerCode: 0x1233,
57+
attributes: {
58+
backOn: {ID: 0x0001, type: Zcl.DataType.UINT16},
59+
backOff: {ID: 0x0002, type: Zcl.DataType.UINT16},
60+
},
61+
commands: {},
62+
commandsResponse: {},
63+
}),
64+
],
5365
},
5466
{
5567
zigbeeModel: ['3RSS008Z'],
@@ -131,7 +143,7 @@ const definitions: DefinitionWithExtend[] = [
131143
ID: 0xff01,
132144
manufacturerCode: 0x1233,
133145
attributes: {
134-
CoolDownTime: {ID: 0x0001, type: Zcl.DataType.UINT16},
146+
coolDownTime: {ID: 0x0001, type: Zcl.DataType.UINT16},
135147
},
136148
commands: {},
137149
commandsResponse: {},
@@ -158,7 +170,7 @@ const definitions: DefinitionWithExtend[] = [
158170
ID: 0xff01,
159171
manufacturerCode: 0x1233,
160172
attributes: {
161-
DelayOpenAttrId: {ID: 0x0000, type: Zcl.DataType.UINT16},
173+
delayOpenAttrId: {ID: 0x0000, type: Zcl.DataType.UINT16},
162174
},
163175
commands: {},
164176
commandsResponse: {},
@@ -174,6 +186,16 @@ const definitions: DefinitionWithExtend[] = [
174186
battery(),
175187
iasZoneAlarm({zoneType: 'contact', zoneAttributes: ['alarm_1', 'battery_low']}),
176188
forcePowerSource({powerSource: 'Battery'}),
189+
deviceAddCustomCluster('3rGarageDoorSpecialCluster', {
190+
ID: 0xff01,
191+
manufacturerCode: 0x1407,
192+
attributes: {
193+
delayOpenAttrId: {ID: 0x0000, type: Zcl.DataType.UINT16},
194+
zclCabrationAttrId: {ID: 0x0003, type: Zcl.DataType.UINT16},
195+
},
196+
commands: {},
197+
commandsResponse: {},
198+
}),
177199
],
178200
ota: ota.zigbeeOTA,
179201
},
@@ -304,6 +326,20 @@ const definitions: DefinitionWithExtend[] = [
304326
device.powerSource = 'Battery';
305327
device.save();
306328
},
329+
extend: [
330+
deviceAddCustomCluster('3rVirationSpecialcluster', {
331+
ID: 0xfff1,
332+
manufacturerCode: 0x1233,
333+
attributes: {
334+
coolDownTime: {ID: 0x0004, type: Zcl.DataType.UINT16},
335+
xAxis: {ID: 0x0001, type: Zcl.DataType.UINT16},
336+
yAxis: {ID: 0x0002, type: Zcl.DataType.UINT16},
337+
zAxis: {ID: 0x0003, type: Zcl.DataType.UINT16},
338+
},
339+
commands: {},
340+
commandsResponse: {},
341+
}),
342+
],
307343
},
308344
{
309345
zigbeeModel: ['3RSNL02043Z'],
@@ -317,9 +353,9 @@ const definitions: DefinitionWithExtend[] = [
317353
ID: 0xfc00,
318354
manufacturerCode: 0x130d,
319355
attributes: {
320-
cold_down_time: {ID: 0x0003, type: Zcl.DataType.UINT16},
321-
local_routin_time: {ID: 0x0004, type: Zcl.DataType.UINT16},
322-
lux_threshold: {ID: 0x0005, type: Zcl.DataType.UINT16},
356+
coldDownTime: {ID: 0x0003, type: Zcl.DataType.UINT16},
357+
localRoutinTime: {ID: 0x0004, type: Zcl.DataType.UINT16},
358+
luxThreshold: {ID: 0x0005, type: Zcl.DataType.UINT16},
323359
},
324360
commands: {},
325361
commandsResponse: {},

0 commit comments

Comments
 (0)