Skip to content

Commit

Permalink
fix: Added non-CSA-assigned manufacturer codes currently used (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Mar 16, 2024
1 parent e3b17c2 commit 85447fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2564,7 +2564,7 @@ const Cluster: {
tolerance: {ID: 3, type: DataType.uint16},
minPercentChange: {ID: 16, type: DataType.unknown},
minAbsoluteChange: {ID: 17, type: DataType.unknown},
sprutTemperatureOffset: {ID: 0x6600, type: DataType.int16, manufacturerCode: ManufacturerCode.SPRUT_DEVICE},
sprutTemperatureOffset: {ID: 0x6600, type: DataType.int16, manufacturerCode: ManufacturerCode.CUSTOM_SPRUT_DEVICE},
},
commands: {
},
Expand Down Expand Up @@ -2609,7 +2609,7 @@ const Cluster: {
minMeasuredValue: {ID: 1, type: DataType.uint16},
maxMeasuredValue: {ID: 2, type: DataType.uint16},
tolerance: {ID: 3, type: DataType.uint16},
sprutHeater: {ID: 0x6600, type: DataType.boolean, manufacturerCode: ManufacturerCode.SPRUT_DEVICE},
sprutHeater: {ID: 0x6600, type: DataType.boolean, manufacturerCode: ManufacturerCode.CUSTOM_SPRUT_DEVICE},
},
commands: {
},
Expand All @@ -2631,8 +2631,8 @@ const Cluster: {
elkoOccupancyOperationMode: {ID: 0xE001, type: DataType.enum8, manufacturerCode: ManufacturerCode.ADEO},
elkoForceOffTimeout: {ID: 0xE002, type: DataType.uint16, manufacturerCode: ManufacturerCode.ADEO},
elkoOccupancySensitivity: {ID: 0xE003, type: DataType.uint8, manufacturerCode: ManufacturerCode.ADEO},
sprutOccupancyLevel: {ID: 0x6600, type: DataType.uint16, manufacturerCode: ManufacturerCode.SPRUT_DEVICE},
sprutOccupancySensitivity: {ID: 0x6601, type: DataType.uint16, manufacturerCode: ManufacturerCode.SPRUT_DEVICE},
sprutOccupancyLevel: {ID: 0x6600, type: DataType.uint16, manufacturerCode: ManufacturerCode.CUSTOM_SPRUT_DEVICE},
sprutOccupancySensitivity: {ID: 0x6601, type: DataType.uint16, manufacturerCode: ManufacturerCode.CUSTOM_SPRUT_DEVICE},
},
commands: {
},
Expand Down Expand Up @@ -2669,8 +2669,8 @@ const Cluster: {
measuredValue: {ID: 0, type: DataType.singlePrec},
minMeasuredValue: {ID: 1, type: DataType.singlePrec},
maxMeasuredValue: {ID: 2, type: DataType.singlePrec},
sprutCO2Calibration: {ID: 0x6600, type: DataType.boolean, manufacturerCode: ManufacturerCode.SPRUT_DEVICE},
sprutCO2AutoCalibration: {ID: 0x6601, type: DataType.boolean, manufacturerCode: ManufacturerCode.SPRUT_DEVICE},
sprutCO2Calibration: {ID: 0x6600, type: DataType.boolean, manufacturerCode: ManufacturerCode.CUSTOM_SPRUT_DEVICE},
sprutCO2AutoCalibration: {ID: 0x6601, type: DataType.boolean, manufacturerCode: ManufacturerCode.CUSTOM_SPRUT_DEVICE},
},
commands: {},
commandsResponse: {},
Expand Down
7 changes: 5 additions & 2 deletions src/zcl/definition/manufacturerCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,11 @@ enum ManufacturerCode {
RESERVED_9 = 0xFFFE,
RESERVED_10 = 0xFFFF,

// Custom
SPRUT_DEVICE = 0x6666,
// Non-CSA-assigned codes
CUSTOM_PERENIO = 0x007B,
CUSTOM_LIVOLO = 0x1AD2,
CUSTOM_SPRUT_DEVICE = 0x6666,
CUSTOM_LYTKO = 0x7777,
};

export default ManufacturerCode;

0 comments on commit 85447fb

Please sign in to comment.