Skip to content

Commit

Permalink
feat: Add manuSpecificBosch11 cluster (#1008)
Browse files Browse the repository at this point in the history
* fix: Set correct manufacturerCode for Bosch

* feat: Add manuSpecificBosch11 cluster

* fix: Format Bosch cluster definitions

* fix: Revert renaming attributes
  • Loading branch information
burmistrzak authored Apr 6, 2024
1 parent 1da4337 commit 328d0fd
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5377,7 +5377,7 @@ const Cluster: {
ID: 0xe000,
manufacturerCode: ManufacturerCode.ROBERT_BOSCH_GMBH,
attributes: {
sensitivity: {ID: 0x4003, type: 0x21},
sensitivity: {ID: 0x4003, type: DataType.uint16},
},
commands: {
initiateTestMode: {
Expand All @@ -5391,19 +5391,19 @@ const Cluster: {
ID: 0xe002,
manufacturerCode: ManufacturerCode.ROBERT_BOSCH_GMBH,
attributes: {
humidity : {ID: 0x4000, type: 0x21},
unknown1 : {ID: 0x4001, type: 0x21},
unknown2 : {ID: 0x4002, type: 0x21},
airpurity : {ID: 0x4003, type: 0x21},
temperature : {ID: 0x4004, type: 0x29},
illuminance_lux: {ID: 0x4005, type: 0x21},
battery : {ID: 0x4006, type: 0x21},
unknown3 : {ID: 0x4007, type: 0x21},
unknown4 : {ID: 0x4008, type: 0x21},
unknown5 : {ID: 0x4009, type: 0x21},
unknown6 : {ID: 0x400a, type: 0x21},
unknown7 : {ID: 0x400b, type: 0x21},
unknown8 : {ID: 0x400c, type: 0x21},
humidity : {ID: 0x4000, type: DataType.uint16},
unknown1 : {ID: 0x4001, type: DataType.uint16},
unknown2 : {ID: 0x4002, type: DataType.uint16},
airpurity : {ID: 0x4003, type: DataType.uint16},
temperature : {ID: 0x4004, type: DataType.int16},
illuminance_lux: {ID: 0x4005, type: DataType.uint16},
battery : {ID: 0x4006, type: DataType.uint16},
unknown3 : {ID: 0x4007, type: DataType.uint16},
unknown4 : {ID: 0x4008, type: DataType.uint16},
pressure : {ID: 0x4009, type: DataType.uint16}, // Not yet confirmed
unknown6 : {ID: 0x400a, type: DataType.uint16},
unknown7 : {ID: 0x400b, type: DataType.uint16},
unknown8 : {ID: 0x400c, type: DataType.uint16},
},
commands: {},
commandsResponse: {},
Expand All @@ -5422,8 +5422,8 @@ const Cluster: {
ID: 0xe006,
manufacturerCode: ManufacturerCode.ROBERT_BOSCH_GMBH,
attributes: {
unknown1: {ID: 0x5003, type: 0x28}, // perhaps signal strength? -7?
unknown2: {ID: 0x5004, type: 0x20}, // ????
unknown1: {ID: 0x5003, type: DataType.int8}, // perhaps signal strength? -7?
unknown2: {ID: 0x5004, type: DataType.uint8}, // ????
heartbeat: {ID: 0x5005, type: DataType.bitmap8}, // 0,1 on/off
},
commands: {
Expand Down Expand Up @@ -5484,6 +5484,15 @@ const Cluster: {
commands: {},
commandsResponse: {},
},
manuSpecificBosch11: {
ID: 0xfcac,
manufacturerCode: ManufacturerCode.ROBERT_BOSCH_GMBH,
attributes: {
alarmOnMotion: {ID: 0x0003, type: DataType.boolean},
},
commands: {},
commandsResponse: {},
},
manuSpecificAssaDoorLock: {
ID: 0xFC00,
attributes: {
Expand Down

0 comments on commit 328d0fd

Please sign in to comment.