Skip to content

Commit

Permalink
Enable ballast configuration cluster in all-clusters-app (#24517)
Browse files Browse the repository at this point in the history
* Correct attribute name IntrinsicBallastFactor.

Added comments on the attribute sets of Ballast Configuration cluster and deprecated attributes.

Some automated whitespace corrections.

* Enable BallastConfiguration cluster in all-cluster-app

* Add cluster init function for BallastConfiguration

* Regenerate generated code.

* fix codegen clang-format

* Handle the attribute rename correctly in Darwin APIs.

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 13, 2024
1 parent 8776e58 commit 2078853
Show file tree
Hide file tree
Showing 33 changed files with 978 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3114,6 +3114,28 @@ server cluster ColorControl = 768 {
command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76;
}

server cluster BallastConfiguration = 769 {
readonly attribute int8u physicalMinLevel = 0;
readonly attribute int8u physicalMaxLevel = 1;
readonly attribute bitmap8 ballastStatus = 2;
attribute int8u minLevel = 16;
attribute int8u maxLevel = 17;
attribute nullable int8u intrinsicBallastFactor = 20;
attribute nullable int8u ballastFactorAdjustment = 21;
readonly attribute int8u lampQuantity = 32;
attribute char_string<16> lampType = 48;
attribute char_string<16> lampManufacturer = 49;
attribute nullable int24u lampRatedHours = 50;
attribute nullable int24u lampBurnHours = 51;
attribute bitmap8 lampAlarmMode = 52;
attribute nullable int24u lampBurnHoursTripPoint = 53;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
}

server cluster IlluminanceMeasurement = 1024 {
enum LightSensorType : ENUM8 {
kPhotodiode = 0;
Expand Down Expand Up @@ -4679,6 +4701,28 @@ endpoint 1 {
ram attribute clusterRevision default = 5;
}

server cluster BallastConfiguration {
ram attribute physicalMinLevel default = 0x01;
ram attribute physicalMaxLevel default = 0xFE;
ram attribute ballastStatus;
ram attribute minLevel default = 0x01;
ram attribute maxLevel default = 0xFE;
ram attribute intrinsicBallastFactor;
ram attribute ballastFactorAdjustment default = 0xFF;
ram attribute lampQuantity;
ram attribute lampType;
ram attribute lampManufacturer;
ram attribute lampRatedHours default = 0xFFFFFF;
ram attribute lampBurnHours;
ram attribute lampAlarmMode;
ram attribute lampBurnHoursTripPoint default = 0xFFFFFF;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap;
ram attribute clusterRevision default = 4;
}

server cluster IlluminanceMeasurement {
ram attribute measuredValue;
ram attribute minMeasuredValue default = 0x01;
Expand Down
Loading

0 comments on commit 2078853

Please sign in to comment.