Skip to content

Commit 3930328

Browse files
markus-becker-tridonic-combzbarsky-apple
authored andcommitted
Enable ballast configuration cluster in all-clusters-app (#24517)
* 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]>
1 parent d576799 commit 3930328

File tree

33 files changed

+978
-157
lines changed

33 files changed

+978
-157
lines changed

examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

+44
Original file line numberDiff line numberDiff line change
@@ -3114,6 +3114,28 @@ server cluster ColorControl = 768 {
31143114
command StepColorTemperature(StepColorTemperatureRequest): DefaultSuccess = 76;
31153115
}
31163116

3117+
server cluster BallastConfiguration = 769 {
3118+
readonly attribute int8u physicalMinLevel = 0;
3119+
readonly attribute int8u physicalMaxLevel = 1;
3120+
readonly attribute bitmap8 ballastStatus = 2;
3121+
attribute int8u minLevel = 16;
3122+
attribute int8u maxLevel = 17;
3123+
attribute nullable int8u intrinsicBallastFactor = 20;
3124+
attribute nullable int8u ballastFactorAdjustment = 21;
3125+
readonly attribute int8u lampQuantity = 32;
3126+
attribute char_string<16> lampType = 48;
3127+
attribute char_string<16> lampManufacturer = 49;
3128+
attribute nullable int24u lampRatedHours = 50;
3129+
attribute nullable int24u lampBurnHours = 51;
3130+
attribute bitmap8 lampAlarmMode = 52;
3131+
attribute nullable int24u lampBurnHoursTripPoint = 53;
3132+
readonly attribute command_id generatedCommandList[] = 65528;
3133+
readonly attribute command_id acceptedCommandList[] = 65529;
3134+
readonly attribute attrib_id attributeList[] = 65531;
3135+
readonly attribute bitmap32 featureMap = 65532;
3136+
readonly attribute int16u clusterRevision = 65533;
3137+
}
3138+
31173139
server cluster IlluminanceMeasurement = 1024 {
31183140
enum LightSensorType : ENUM8 {
31193141
kPhotodiode = 0;
@@ -4679,6 +4701,28 @@ endpoint 1 {
46794701
ram attribute clusterRevision default = 5;
46804702
}
46814703

4704+
server cluster BallastConfiguration {
4705+
ram attribute physicalMinLevel default = 0x01;
4706+
ram attribute physicalMaxLevel default = 0xFE;
4707+
ram attribute ballastStatus;
4708+
ram attribute minLevel default = 0x01;
4709+
ram attribute maxLevel default = 0xFE;
4710+
ram attribute intrinsicBallastFactor;
4711+
ram attribute ballastFactorAdjustment default = 0xFF;
4712+
ram attribute lampQuantity;
4713+
ram attribute lampType;
4714+
ram attribute lampManufacturer;
4715+
ram attribute lampRatedHours default = 0xFFFFFF;
4716+
ram attribute lampBurnHours;
4717+
ram attribute lampAlarmMode;
4718+
ram attribute lampBurnHoursTripPoint default = 0xFFFFFF;
4719+
callback attribute generatedCommandList;
4720+
callback attribute acceptedCommandList;
4721+
callback attribute attributeList;
4722+
ram attribute featureMap;
4723+
ram attribute clusterRevision default = 4;
4724+
}
4725+
46824726
server cluster IlluminanceMeasurement {
46834727
ram attribute measuredValue;
46844728
ram attribute minMeasuredValue default = 0x01;

0 commit comments

Comments
 (0)