Skip to content

Commit

Permalink
fix: Add OWON PC321 Power factor attributes (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
dduransseau committed Jan 10, 2024
1 parent 00f2eca commit 0d60b75
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions src/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3494,6 +3494,7 @@ const Cluster: {
owonL1PhaseReactivePower: {ID: 0x2100, type: DataType.int24,manufacturerCode: ManufacturerCode.OWON},
owonL2PhaseReactivePower: {ID: 0x2101, type: DataType.int24,manufacturerCode: ManufacturerCode.OWON},
owonL3PhaseReactivePower: {ID: 0x2102, type: DataType.int24,manufacturerCode: ManufacturerCode.OWON},
owonReactivePowerSum: {ID: 0x2103, type: DataType.int24,manufacturerCode: ManufacturerCode.OWON},
owonL1PhaseVoltage: {ID: 0x3000, type: DataType.uint24,manufacturerCode: ManufacturerCode.OWON},
owonL2PhaseVoltage: {ID: 0x3001, type: DataType.uint24,manufacturerCode: ManufacturerCode.OWON},
owonL3PhaseVoltage: {ID: 0x3002, type: DataType.uint24,manufacturerCode: ManufacturerCode.OWON},
Expand All @@ -3509,9 +3510,11 @@ const Cluster: {
owonL2ReactiveEnergy: {ID: 0x4101, type: DataType.uint48,manufacturerCode: ManufacturerCode.OWON},
owonL3ReactiveEnergy: {ID: 0x4102, type: DataType.uint48,manufacturerCode: ManufacturerCode.OWON},
owonReactiveEnergySum: {ID: 0x4103, type: DataType.uint48,manufacturerCode: ManufacturerCode.OWON},
owonL1PowerFactor: {ID: 0x4104, type: DataType.int8,manufacturerCode: ManufacturerCode.OWON},
owonL2PowerFactor: {ID: 0x4105, type: DataType.int8,manufacturerCode: ManufacturerCode.OWON},
owonL3PowerFactor: {ID: 0x4106, type: DataType.int8,manufacturerCode: ManufacturerCode.OWON},
owonFrequency: {ID: 0x5005, type: DataType.uint8,manufacturerCode: ManufacturerCode.OWON},
owonReportMap: {ID: 0x1000, type: DataType.bitmap8,manufacturerCode: ManufacturerCode.OWON},
owonReactivePowerSum: {ID: 0x2103, type: DataType.int24,manufacturerCode: ManufacturerCode.OWON},
owonLastHistoricalRecordTime: {ID: 0x5000, type: DataType.uint32,manufacturerCode: ManufacturerCode.OWON},
owonOldestHistoricalRecordTime: {ID: 0x5001, type: DataType.uint32,manufacturerCode: ManufacturerCode.OWON},
owonMinimumReportCycle: {ID: 0x5002, type: DataType.uint32,manufacturerCode: ManufacturerCode.OWON},
Expand Down Expand Up @@ -4258,7 +4261,7 @@ const Cluster: {
offLedIntensity: {ID: 83, type: DataType.uint8}, // percent
actionReport: {ID: 84, type: DataType.enum8}, // singleTapUp: 1,2, doubleTapUp: 1,4, singleTapDown: 17,18, doubleTapDown: 17,20
minimumBrightness: {ID: 85, type: DataType.uint16},
connectedLoadRM: {ID: 96, type: DataType.uint16}, // unit watt/hr for Calypso RM3500 & Load Controller RM3250
connectedLoadRM: {ID: 96, type: DataType.uint16}, // unit watt/hr for Calypso RM3500 & Load Controller RM3250
currentLoad: {ID: 112, type: DataType.bitmap8}, // related to ecoMode(s)
ecoMode: {ID: 113, type: DataType.int8}, // default:-128||-100-0-100%
ecoMode1: {ID: 114, type: DataType.uint8}, // default:255||0-99
Expand Down Expand Up @@ -4286,7 +4289,7 @@ const Cluster: {
currentSetpoint: {ID: 299, type: DataType.int16}, // W:to ocuppiedHeatSetpoint, R:depends of SinopeOccupancy
// attribute ID: 300's readable, returns a buffer
reportLocalTemperature: {ID: 301, type: DataType.int16},
// attribute ID: 512's readable
// attribute ID: 512's readable
coldLoadPickupStatus: {ID: 643, type: DataType.uint8},
},
commands: {
Expand Down Expand Up @@ -5012,7 +5015,7 @@ const Cluster: {
},
commands: {},
commandsResponse: {},
},
},
sprutDevice: {
ID: 26112,
manufacturerCode: 26214,
Expand Down Expand Up @@ -5129,7 +5132,7 @@ const Cluster: {
activeEnergyReports: {ID: 0x0014, type: DataType.uint16},
powerType: {ID: 0x0015, type: DataType.boolean},
switchType: {ID: 0x0016, type: DataType.uint8},
quickStartTime: {ID: 0x0017, type: DataType.uint8},
quickStartTime: {ID: 0x0017, type: DataType.uint8},
quickStartLevel: {ID: 0x0018, type: DataType.uint8},
higherOutputInNonNeutral: {ID: 0x0019, type: DataType.boolean},
nonNeutralAuxMediumGear: {ID: 0x001e, type: DataType.uint8},
Expand Down Expand Up @@ -5337,28 +5340,28 @@ const Cluster: {
},
},
commandsResponse: {},
},
},
manuSpecificBosch3: {
ID: 0xe002,
manufacturerCode: ManufacturerCode.Bosch,
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: 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},
},
commands: {},
commandsResponse: {},
},
},
manuSpecificBosch5: {
ID: 0xe004,
manufacturerCode: ManufacturerCode.Bosch,
Expand All @@ -5368,7 +5371,7 @@ const Cluster: {
},
commands: {},
commandsResponse: {},
},
},
manuSpecificBosch7: {
ID: 0xe006,
manufacturerCode: ManufacturerCode.Bosch,
Expand All @@ -5384,7 +5387,7 @@ const Cluster: {
},
},
commandsResponse: {},
},
},
manuSpecificBosch8: {
ID: 0xe007,
manufacturerCode: ManufacturerCode.Bosch,
Expand Down

0 comments on commit 0d60b75

Please sign in to comment.