Skip to content

Commit

Permalink
cherry-pick of colorcontrol and doorlock changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin committed Jun 4, 2024
1 parent 8fceb32 commit b498d70
Show file tree
Hide file tree
Showing 40 changed files with 1,612 additions and 1,587 deletions.
104 changes: 52 additions & 52 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -5421,85 +5421,85 @@ cluster ThermostatUserInterfaceConfiguration = 516 {
cluster ColorControl = 768 {
revision 6;

enum ColorLoopAction : enum8 {
enum ColorLoopActionEnum : enum8 {
kDeactivate = 0;
kActivateFromColorLoopStartEnhancedHue = 1;
kActivateFromEnhancedCurrentHue = 2;
}

enum ColorLoopDirection : enum8 {
kDecrementHue = 0;
kIncrementHue = 1;
enum ColorLoopDirectionEnum : enum8 {
kDecrement = 0;
kIncrement = 1;
}

enum ColorMode : enum8 {
enum ColorModeEnum : enum8 {
kCurrentHueAndCurrentSaturation = 0;
kCurrentXAndCurrentY = 1;
kColorTemperature = 2;
kColorTemperatureMireds = 2;
}

enum HueDirection : enum8 {
kShortestDistance = 0;
kLongestDistance = 1;
enum DirectionEnum : enum8 {
kShortest = 0;
kLongest = 1;
kUp = 2;
kDown = 3;
}

enum HueMoveMode : enum8 {
kStop = 0;
kUp = 1;
kDown = 3;
enum DriftCompensationEnum : enum8 {
kNone = 0;
kOtherOrUnknown = 1;
kTemperaturemonitoring = 2;
kOpticalLuminanceMonitoringAndFeedback = 3;
kOpticalColorMonitoringAndFeedback = 4;
}

enum HueStepMode : enum8 {
kUp = 1;
kDown = 3;
enum EnhancedColorModeEnum : enum8 {
kCurrentHueAndCurrentSaturation = 0;
kCurrentXAndCurrentY = 1;
kColorTemperatureMireds = 2;
kEnhancedCurrentHueAndCurrentSaturation = 3;
}

enum SaturationMoveMode : enum8 {
enum MoveModeEnum : enum8 {
kStop = 0;
kUp = 1;
kDown = 3;
}

enum SaturationStepMode : enum8 {
enum StepModeEnum : enum8 {
kUp = 1;
kDown = 3;
}

bitmap ColorCapabilities : bitmap16 {
kHueSaturationSupported = 0x1;
kEnhancedHueSupported = 0x2;
kColorLoopSupported = 0x4;
kXYAttributesSupported = 0x8;
kColorTemperatureSupported = 0x10;
bitmap ColorCapabilitiesBitmap : bitmap16 {
kHueSaturation = 0x1;
kEnhancedHue = 0x2;
kColorLoop = 0x4;
kXY = 0x8;
kColorTemperature = 0x10;
}

bitmap OptionsBitmap : bitmap8 {
kExecuteIfOff = 0x1;
}

bitmap ColorLoopUpdateFlags : bitmap8 {
bitmap UpdateFlagsBitmap : bitmap8 {
kUpdateAction = 0x1;
kUpdateDirection = 0x2;
kUpdateTime = 0x4;
kUpdateStartHue = 0x8;
}

bitmap Feature : bitmap32 {
kHueAndSaturation = 0x1;
kEnhancedHue = 0x2;
kColorLoop = 0x4;
kXY = 0x8;
kColorTemperature = 0x10;
}

readonly attribute optional int8u currentHue = 0;
readonly attribute optional int8u currentSaturation = 1;
readonly attribute optional int16u remainingTime = 2;
readonly attribute optional int16u currentX = 3;
readonly attribute optional int16u currentY = 4;
readonly attribute optional enum8 driftCompensation = 5;
readonly attribute optional DriftCompensationEnum driftCompensation = 5;
readonly attribute optional char_string<254> compensationText = 6;
readonly attribute optional int16u colorTemperatureMireds = 7;
readonly attribute enum8 colorMode = 8;
attribute bitmap8 options = 15;
readonly attribute ColorModeEnum colorMode = 8;
attribute OptionsBitmap options = 15;
readonly attribute nullable int8u numberOfPrimaries = 16;
readonly attribute optional int16u primary1X = 17;
readonly attribute optional int16u primary1Y = 18;
Expand Down Expand Up @@ -5531,13 +5531,13 @@ cluster ColorControl = 768 {
attribute access(write: manage) optional int16u colorPointBY = 59;
attribute access(write: manage) optional nullable int8u colorPointBIntensity = 60;
readonly attribute optional int16u enhancedCurrentHue = 16384;
readonly attribute enum8 enhancedColorMode = 16385;
readonly attribute EnhancedColorModeEnum enhancedColorMode = 16385;
readonly attribute optional int8u colorLoopActive = 16386;
readonly attribute optional int8u colorLoopDirection = 16387;
readonly attribute optional ColorLoopDirectionEnum colorLoopDirection = 16387;
readonly attribute optional int16u colorLoopTime = 16388;
readonly attribute optional int16u colorLoopStartEnhancedHue = 16389;
readonly attribute optional int16u colorLoopStoredEnhancedHue = 16390;
readonly attribute bitmap16 colorCapabilities = 16394;
readonly attribute ColorCapabilitiesBitmap colorCapabilities = 16394;
readonly attribute optional int16u colorTempPhysicalMinMireds = 16395;
readonly attribute optional int16u colorTempPhysicalMaxMireds = 16396;
readonly attribute optional int16u coupleColorTempToLevelMinMireds = 16397;
Expand All @@ -5551,21 +5551,21 @@ cluster ColorControl = 768 {

request struct MoveToHueRequest {
int8u hue = 0;
HueDirection direction = 1;
DirectionEnum direction = 1;
int16u transitionTime = 2;
bitmap8 optionsMask = 3;
bitmap8 optionsOverride = 4;
}

request struct MoveHueRequest {
HueMoveMode moveMode = 0;
MoveModeEnum moveMode = 0;
int8u rate = 1;
bitmap8 optionsMask = 2;
bitmap8 optionsOverride = 3;
}

request struct StepHueRequest {
HueStepMode stepMode = 0;
StepModeEnum stepMode = 0;
int8u stepSize = 1;
int8u transitionTime = 2;
bitmap8 optionsMask = 3;
Expand All @@ -5580,14 +5580,14 @@ cluster ColorControl = 768 {
}

request struct MoveSaturationRequest {
SaturationMoveMode moveMode = 0;
MoveModeEnum moveMode = 0;
int8u rate = 1;
bitmap8 optionsMask = 2;
bitmap8 optionsOverride = 3;
}

request struct StepSaturationRequest {
SaturationStepMode stepMode = 0;
StepModeEnum stepMode = 0;
int8u stepSize = 1;
int8u transitionTime = 2;
bitmap8 optionsMask = 3;
Expand Down Expand Up @@ -5634,21 +5634,21 @@ cluster ColorControl = 768 {

request struct EnhancedMoveToHueRequest {
int16u enhancedHue = 0;
HueDirection direction = 1;
DirectionEnum direction = 1;
int16u transitionTime = 2;
bitmap8 optionsMask = 3;
bitmap8 optionsOverride = 4;
}

request struct EnhancedMoveHueRequest {
HueMoveMode moveMode = 0;
MoveModeEnum moveMode = 0;
int16u rate = 1;
bitmap8 optionsMask = 2;
bitmap8 optionsOverride = 3;
}

request struct EnhancedStepHueRequest {
HueStepMode stepMode = 0;
StepModeEnum stepMode = 0;
int16u stepSize = 1;
int16u transitionTime = 2;
bitmap8 optionsMask = 3;
Expand All @@ -5664,9 +5664,9 @@ cluster ColorControl = 768 {
}

request struct ColorLoopSetRequest {
ColorLoopUpdateFlags updateFlags = 0;
ColorLoopAction action = 1;
ColorLoopDirection direction = 2;
UpdateFlagsBitmap updateFlags = 0;
ColorLoopActionEnum action = 1;
ColorLoopDirectionEnum direction = 2;
int16u time = 3;
int16u startHue = 4;
bitmap8 optionsMask = 5;
Expand All @@ -5679,7 +5679,7 @@ cluster ColorControl = 768 {
}

request struct MoveColorTemperatureRequest {
HueMoveMode moveMode = 0;
MoveModeEnum moveMode = 0;
int16u rate = 1;
int16u colorTemperatureMinimumMireds = 2;
int16u colorTemperatureMaximumMireds = 3;
Expand All @@ -5688,7 +5688,7 @@ cluster ColorControl = 768 {
}

request struct StepColorTemperatureRequest {
HueStepMode stepMode = 0;
StepModeEnum stepMode = 0;
int16u stepSize = 1;
int16u transitionTime = 2;
int16u colorTemperatureMinimumMireds = 3;
Expand Down
Loading

0 comments on commit b498d70

Please sign in to comment.