Skip to content

Commit

Permalink
feat: Add pm1Measurement and pm10Measurement clusters, update `pm…
Browse files Browse the repository at this point in the history
…25Measurement` (#1116)

* Update cluster.ts

* Update cluster.ts

Updated spacing

* Update tstype.ts

Added PM1Mesurement and PM10Measurement
  • Loading branch information
turboproc committed Jul 16, 2024
1 parent f73f65f commit 802dfc1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
30 changes: 26 additions & 4 deletions src/zspec/zcl/definition/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2490,10 +2490,32 @@ export const Clusters: Readonly<Record<ClusterName, Readonly<ClusterDefinition>>
pm25Measurement: {
ID: 0x042a,
attributes: {
measuredValue: {ID: 0x0000, type: DataType.UINT16},
measuredMinValue: {ID: 0x0001, type: DataType.UINT16},
measuredMaxValue: {ID: 0x0002, type: DataType.UINT16},
measuredTolerance: {ID: 0x0003, type: DataType.UINT16},
measuredValue: {ID: 0x0000, type: DataType.SINGLE_PREC},
measuredMinValue: {ID: 0x0001, type: DataType.SINGLE_PREC},
measuredMaxValue: {ID: 0x0002, type: DataType.SINGLE_PREC},
measuredTolerance: {ID: 0x0003, type: DataType.SINGLE_PREC},
},
commands: {},
commandsResponse: {},
},
pm1Measurement: {
ID: 0x042c,
attributes: {
measuredValue: {ID: 0x0000, type: DataType.SINGLE_PREC},
measuredMinValue: {ID: 0x0001, type: DataType.SINGLE_PREC},
measuredMaxValue: {ID: 0x0002, type: DataType.SINGLE_PREC},
measuredTolerance: {ID: 0x0003, type: DataType.SINGLE_PREC},
},
commands: {},
commandsResponse: {},
},
pm10Measurement: {
ID: 0x042d,
attributes: {
measuredValue: {ID: 0x0000, type: DataType.SINGLE_PREC},
measuredMinValue: {ID: 0x0001, type: DataType.SINGLE_PREC},
measuredMaxValue: {ID: 0x0002, type: DataType.SINGLE_PREC},
measuredTolerance: {ID: 0x0003, type: DataType.SINGLE_PREC},
},
commands: {},
commandsResponse: {},
Expand Down
2 changes: 2 additions & 0 deletions src/zspec/zcl/definition/tstype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ export type ClusterName =
| 'msSoilMoisture'
| 'pHMeasurement'
| 'msCO2'
| 'pm1Measurement'
| 'pm10Measurement'
| 'pm25Measurement'
| 'ssIasZone'
| 'ssIasAce'
Expand Down

0 comments on commit 802dfc1

Please sign in to comment.