Skip to content

Commit 6c4b506

Browse files
3reality-supportjintjKoenkk
authored
fix(ignore): Add more Third Reality custom clusters (#7978)
* 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 temp_humid_sensor and soil * update 3r * update 3r switch_gen3 vibration and garage * update 3r temp_humid_sensor and soil * updates * update * update third reality PLUG * aa * update 3r plug * update 3r plug type * update * update 3r * update 3r Roller shade * update * update * update * update * Update third_reality.ts --------- Co-authored-by: jintj <[email protected]> Co-authored-by: Koen Kanters <[email protected]>
1 parent 622e65e commit 6c4b506

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

src/devices/third_reality.ts

+50-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,19 @@ const definitions: DefinitionWithExtend[] = [
204204
model: '3RSP019BZ',
205205
vendor: 'Third Reality',
206206
description: 'Zigbee / BLE smart plug',
207-
extend: [onOff()],
207+
extend: [
208+
onOff(),
209+
deviceAddCustomCluster('3rPlugGen1SpecialCluster', {
210+
ID: 0xff03,
211+
manufacturerCode: 0x1233,
212+
attributes: {
213+
onToOffDelay: {ID: 0x0001, type: Zcl.DataType.UINT16},
214+
offToOnDelay: {ID: 0x0002, type: Zcl.DataType.UINT16},
215+
},
216+
commands: {},
217+
commandsResponse: {},
218+
}),
219+
],
208220
ota: ota.zigbeeOTA,
209221
},
210222
{
@@ -227,6 +239,17 @@ const definitions: DefinitionWithExtend[] = [
227239
}
228240
},
229241
exposes: [e.cover_position(), e.battery()],
242+
extend: [
243+
deviceAddCustomCluster('3rRollerShadeSpecialCluster', {
244+
ID: 0xfff1,
245+
manufacturerCode: 0x1233,
246+
attributes: {
247+
infraredOff: {ID: 0x0000, type: Zcl.DataType.UINT8},
248+
},
249+
commands: {},
250+
commandsResponse: {},
251+
}),
252+
],
230253
},
231254
{
232255
zigbeeModel: ['TRZB3'],
@@ -356,6 +379,19 @@ const definitions: DefinitionWithExtend[] = [
356379
});
357380
device.save();
358381
},
382+
extend: [
383+
deviceAddCustomCluster('3rPlugGen2SpecialCluster', {
384+
ID: 0xff03,
385+
manufacturerCode: 0x1233,
386+
attributes: {
387+
resetSummationDelivered: {ID: 0x0000, type: Zcl.DataType.UINT8},
388+
onToOffDelay: {ID: 0x0001, type: Zcl.DataType.UINT16},
389+
offToOnDelay: {ID: 0x0002, type: Zcl.DataType.UINT16},
390+
},
391+
commands: {},
392+
commandsResponse: {},
393+
}),
394+
],
359395
},
360396
{
361397
zigbeeModel: ['3RVS01031Z'],
@@ -443,6 +479,19 @@ const definitions: DefinitionWithExtend[] = [
443479
});
444480
device.save();
445481
},
482+
extend: [
483+
deviceAddCustomCluster('3rPlugE2Specialcluster', {
484+
ID: 0xff03,
485+
manufacturerCode: 0x1233,
486+
attributes: {
487+
resetSummationDelivered: {ID: 0x0000, type: Zcl.DataType.UINT8},
488+
onToOffDelay: {ID: 0x0001, type: Zcl.DataType.UINT16},
489+
offToOnDelay: {ID: 0x0002, type: Zcl.DataType.UINT16},
490+
},
491+
commands: {},
492+
commandsResponse: {},
493+
}),
494+
],
446495
},
447496
];
448497

0 commit comments

Comments
 (0)