struct ColorControlTraitThis trait provides an interface for changing the color of a light.
-
No supported events for
ColorControlTrait.Declaration
Swift
static let supportedEventTypes: [any Event.Type] -
List of the commands that are supported by
ColorControlTrait.Declaration
Swift
static let supportedCommandTypes: [any Command.Type] -
The trait identifier.
Declaration
Swift
static let identifier: String -
Metadata about this
Trait.Declaration
Swift
let metadata: TraitMetadata -
List of attributes for the
ColorControlTrait.Declaration
Swift
let attributes: Matter.ColorControlTrait.Attributes -
Creates a new Trait instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throwsParameters
decoderThe raw data representing this Trait.
interactionProxyProxy to the Interaction Client.
metadataMetadata about this Trait.
-
Writes this object to the given
TraitEncoder. ThrowsHomeError.encodingFailedif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
This API provides the ability to invalidate state retrieved through subscriptions to the target device in the cases where state is not being reported correctly, either intentionally (e.g attributes in Matter traits with the “C” quality) or unintentionally due to poor implementations.
When successful, this API will result in a forced read of the convening scope as specified by the sub-class and return the result through existing Trait subscriptions if present and active.
This API is to be used sparingly as it can impact the performance and battery life of the target device. As such, this API may be throttled by the platform. Callers SHALL be prepared to deal with
HomeErrors thrown by this call.Declaration
Swift
func forceRead() async throws -
Attributes for the
ColorControlTrait.Declaration
Swift
struct Attributes -
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Parameters
lhsA value to compare.
rhsAnother value to compare.
-
Hashes the essential components of this value by feeding them into the given hasher.
Implement this method to conform to the
Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important
In your implementation of
hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.Declaration
Swift
func hash(into hasher: inout Hasher) -
Whether the device supports the
moveToHuecommand for this trait.Declaration
Swift
var supportsMoveToHueCommand: Bool { get } -
Move a device from its current hue to the provided hue.
Declaration
Swift
func moveToHue(hue: UInt8, direction: Matter.ColorControlTrait.DirectionEnum, transitionTime: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
hueThe hue to be moved to. The valid range of values is
0to254.directionThe direction in which to move the hue. This must be one of the values in
HueDirection.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new hue.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveToHue command above.
See also
moveToHueDeclaration
Swift
func moveToHueBatchable(hue: UInt8, direction: Matter.ColorControlTrait.DirectionEnum, transitionTime: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
moveHuecommand for this trait.Declaration
Swift
var supportsMoveHueCommand: Bool { get } -
Change a device’s hue based on a rate of movement.
Declaration
Swift
func moveHue(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
moveModeThe direction in which to move the hue. This must be one of the values in
HueMoveMode.rateThe rate (in steps per seconds) used to change the device’s
currentHue.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveHue command above.
See also
moveHueDeclaration
Swift
func moveHueBatchable(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
stepHuecommand for this trait.Declaration
Swift
var supportsStepHueCommand: Bool { get } -
Move a device’s hue a specific amount over a period of time.
Declaration
Swift
func stepHue(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt8, transitionTime: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
stepModeThe direction in which to move the hue. This must be one of the values in
HueStepMode.stepSizeThe amount of units to move the device’s
currentHueto.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new hue.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of stepHue command above.
See also
stepHueDeclaration
Swift
func stepHueBatchable(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt8, transitionTime: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
moveToSaturationcommand for this trait.Declaration
Swift
var supportsMoveToSaturationCommand: Bool { get } -
Move a device from its current saturation to the provided saturation.
Declaration
Parameters
saturationThe saturation to be moved to. The valid range of values is
0to254.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new saturation.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveToSaturation command above.
See also
moveToSaturation -
Whether the device supports the
moveSaturationcommand for this trait.Declaration
Swift
var supportsMoveSaturationCommand: Bool { get } -
Change a device’s saturation based on a rate of movement.
Declaration
Swift
func moveSaturation(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
moveModeThe direction in which to move the saturation. This must be one of the values in
SaturationMoveMode.rateThe rate (in steps per seconds) used to change the device’s
currentSaturation.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveSaturation command above.
See also
moveSaturationDeclaration
Swift
func moveSaturationBatchable(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
stepSaturationcommand for this trait.Declaration
Swift
var supportsStepSaturationCommand: Bool { get } -
Move a device’s saturation a specific amount over a period of time.
Declaration
Swift
func stepSaturation(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt8, transitionTime: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
stepModeThe direction in which to move the saturation. This must be one of the values in
SaturationStepMode.stepSizeThe amount of units to move the device’s
currentSaturationto.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new saturation.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of stepSaturation command above.
See also
stepSaturationDeclaration
Swift
func stepSaturationBatchable(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt8, transitionTime: UInt8, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
moveToHueAndSaturationcommand for this trait.Declaration
Swift
var supportsMoveToHueAndSaturationCommand: Bool { get } -
Move a device from its current hue and saturation to the provided hue and saturation.
Declaration
Parameters
hueThe hue to be moved to. The valid range of values is
0to254.saturationThe saturation to be moved to. The valid range of values is
0to254.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new hue and saturation.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveToHueAndSaturation command above.
See also
moveToHueAndSaturation -
Whether the device supports the
moveToColorcommand for this trait.Declaration
Swift
var supportsMoveToColorCommand: Bool { get } -
Move a device from its current color to the color given in the
colorXandcolorYparameters.Declaration
Parameters
colorXThe normalized chromaticity value
x, as defined in the CIE xyY Color Space, to move the device’s color to.colorYThe normalized chromaticity value
y, as defined in the CIE xyY Color Space, to move the device’s color to.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new color.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveToColor command above.
See also
moveToColor -
Whether the device supports the
moveColorcommand for this trait.Declaration
Swift
var supportsMoveColorCommand: Bool { get } -
Move a device from its current color in a continuous fashion according to the rates specified. This command will continue to process until the target color for the next step cannot be implemented on the device. Setting both
rateXandrateYto0stops any previously received command of theColorControlcluster.Declaration
Parameters
rateXThe rate of movement in steps per second. A step is a change of one unit to the
currentXattribute.rateYThe rate of movement in steps per second. A step is a change of one unit to the
currentYattribute.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
Whether the device supports the
stepColorcommand for this trait.Declaration
Swift
var supportsStepColorCommand: Bool { get } -
Move a device from its current color by the specified color step. If the required step is larger than supported by the
stepXandstepYparameters, use this command multiple times.Declaration
Parameters
stepXThe change to be added to the device’s
currentXattribute.stepYThe change to be added to the device’s
currentYattribute.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new color.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of stepColor command above.
See also
stepColor -
Whether the device supports the
moveToColorTemperaturecommand for this trait.Declaration
Swift
var supportsMoveToColorTemperatureCommand: Bool { get } -
Move a device from its current color to a new color, using the scaled inverse of the color temperature, in mireds.
Declaration
Parameters
colorTemperatureMiredsThe color temperature, in mireds, to move the device to.
transitionTimeThe time (in 0.1 seconds) taken to move the device to the new color temperature.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of moveToColorTemperature command above.
See also
moveToColorTemperature -
Whether the device supports the
enhancedMoveToHuecommand for this trait.Declaration
Swift
var supportsEnhancedMoveToHueCommand: Bool { get } -
Move a device from its current hue to the provided enhanced hue.
Declaration
Swift
func enhancedMoveToHue(enhancedHue: UInt16, direction: Matter.ColorControlTrait.DirectionEnum, transitionTime: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
enhancedHueThe enhanced hue to be moved to. The valid range of values is
0to65534.directionThe direction in which to move the enhanced hue. This must be one of the values in
HueDirection.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new hue.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of enhancedMoveToHue command above.
See also
enhancedMoveToHueDeclaration
Swift
func enhancedMoveToHueBatchable(enhancedHue: UInt16, direction: Matter.ColorControlTrait.DirectionEnum, transitionTime: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
enhancedMoveHuecommand for this trait.Declaration
Swift
var supportsEnhancedMoveHueCommand: Bool { get } -
Change a device’s enhanced hue based on a rate of movement.
Declaration
Swift
func enhancedMoveHue(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
moveModeThe direction in which to move the enhanced hue. This must be one of the values in
HueMoveMode.rateThe rate (in steps per seconds) used to change the device’s
enhancedCurrentHue.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of enhancedMoveHue command above.
See also
enhancedMoveHueDeclaration
Swift
func enhancedMoveHueBatchable(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
enhancedStepHuecommand for this trait.Declaration
Swift
var supportsEnhancedStepHueCommand: Bool { get } -
Move a device’s enhanced hue a specific amount over a period of time.
Declaration
Swift
func enhancedStepHue(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt16, transitionTime: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
stepModeThe direction in which to move the enhanced hue. This must be one of the values in
HueStepMode.stepSizeThe amount of units to move the device’s
enhancedCurrentHueto.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new enhanced hue.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of enhancedStepHue command above.
See also
enhancedStepHueDeclaration
Swift
func enhancedStepHueBatchable(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt16, transitionTime: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
enhancedMoveToHueAndSaturationcommand for this trait.Declaration
Swift
var supportsEnhancedMoveToHueAndSaturationCommand: Bool { get } -
Move a device from its current enhanced hue and saturation to the provided enhanced hue and saturation.
Declaration
Parameters
enhancedHueThe enhanced hue to be moved to. The valid range of values is
0to65534.saturationThe saturation to be moved to. The valid range of values is
0to254.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new enhanced hue and saturation.
optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
enhancedMoveToHueAndSaturationBatchable(enhancedHue:saturation:transitionTime:optionsMask:optionsOverride:)
The batchable version of enhancedMoveToHueAndSaturation command above.
See also
enhancedMoveToHueAndSaturation -
Whether the device supports the
colorLoopSetcommand for this trait.Declaration
Swift
var supportsColorLoopSetCommand: Bool { get } -
Cycles the device through its range of hues.
Declaration
Swift
func colorLoopSet(updateFlags: Matter.ColorControlTrait.UpdateFlagsBitmap, action: Matter.ColorControlTrait.ColorLoopActionEnum, direction: Matter.ColorControlTrait.ColorLoopDirectionEnum, time: UInt16, startHue: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
updateFlagsThe attributes to update before the color loop starts. See
ColorLoopUpdateFlagsfor the list of flags to use.actionThe action to take if
updateActionis set inupdateFlags. Must be a value fromColorLoopActionEnum.directionThe direction of the color loop if
updateDirectionis set inupdateFlags. Must be a value fromColorLoopDirectionEnum.timeThe number of seconds over which to perform the full color loop if
updateTimeis set inupdateFlags.startHueThe starting hue to use if
updateStartHueis set inupdateFlags.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
The batchable version of colorLoopSet command above.
See also
colorLoopSetDeclaration
Swift
func colorLoopSetBatchable(updateFlags: Matter.ColorControlTrait.UpdateFlagsBitmap, action: Matter.ColorControlTrait.ColorLoopActionEnum, direction: Matter.ColorControlTrait.ColorLoopDirectionEnum, time: UInt16, startHue: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
stopMoveStepcommand for this trait.Declaration
Swift
var supportsStopMoveStepCommand: Bool { get } -
Stop a MoveTo, Move, or Step command that is currently in process. The
currentHue,enhancedCurrentHue, andcurrentSaturationattributes are left at their present value upon receipt of this command, and theremainingTimeattribute is set to0.Declaration
-
Whether the device supports the
moveColorTemperaturecommand for this trait.Declaration
Swift
var supportsMoveColorTemperatureCommand: Bool { get } -
moveColorTemperature(moveMode:rate:colorTemperatureMinimumMireds:colorTemperatureMaximumMireds:optionsMask:optionsOverride:)
Change a device’s color temperature based on a rate of movement.
Declaration
Swift
func moveColorTemperature(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt16, colorTemperatureMinimumMireds: UInt16, colorTemperatureMaximumMireds: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
moveModeThe direction in which to move the color temperature. This must be one of the values in
HueMoveMode.rateThe rate (in steps per seconds) used to change the device’s
colorTemperatureMireds.colorTemperatureMinimumMiredsThe lower bound of the
colorTemperatureMiredsattribute for the command. This value must be between thecolorTempPhysicalMinMiredsandcolorTemperatureMiredsattributes. If this value is set to0,colorTempPhysicalMinMiredsis used as the lower bound.colorTemperatureMaximumMiredsThe upper bound of the
colorTemperatureMiredsattribute for the command. This value must be between thecolorTemperatureMiredsandcolorTempPhysicalMaxMiredsattributes. If this value is set to0,colorTempPhysicalMaxMiredsis used as the upper bound.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
moveColorTemperatureBatchable(moveMode:rate:colorTemperatureMinimumMireds:colorTemperatureMaximumMireds:optionsMask:optionsOverride:)
The batchable version of moveColorTemperature command above.
See also
moveColorTemperatureDeclaration
Swift
func moveColorTemperatureBatchable(moveMode: Matter.ColorControlTrait.MoveModeEnum, rate: UInt16, colorTemperatureMinimumMireds: UInt16, colorTemperatureMaximumMireds: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
Whether the device supports the
stepColorTemperaturecommand for this trait.Declaration
Swift
var supportsStepColorTemperatureCommand: Bool { get } -
stepColorTemperature(stepMode:stepSize:transitionTime:colorTemperatureMinimumMireds:colorTemperatureMaximumMireds:optionsMask:optionsOverride:)
Change a device’s color temperature a specific amount over a period of time.
Declaration
Swift
func stepColorTemperature(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt16, transitionTime: UInt16, colorTemperatureMinimumMireds: UInt16, colorTemperatureMaximumMireds: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) async throwsParameters
stepModeThe direction in which to move the color temperature. This must be one of the values in
HueStepMode.stepSizeThe amount of units to move the device’s
colorTemperatureMiredsto.transitionTimeThe time (in 0.1 seconds) taken to move the device to the new color temperature.
colorTemperatureMinimumMiredsThe lower bound of the
colorTemperatureMiredsattribute for the command. This value must be between thecolorTempPhysicalMinMiredsandcolorTemperatureMiredsattributes. If this value is set to0,colorTempPhysicalMinMiredsis used as the lower bound.colorTemperatureMaximumMiredsThe upper bound of the
colorTemperatureMiredsattribute for the command. This value must be between thecolorTemperatureMiredsandcolorTempPhysicalMaxMiredsattributes. If this value is set to0,colorTempPhysicalMaxMiredsis used as the upper bound.optionsMaskDetermines which bits in the
optionsattribute should be overridden byoptionsOverride.optionsOverrideIf the corresponding bit in
optionsMaskis set to1, the bit set here overrides the corresponding bit inoptionsattribute. -
stepColorTemperatureBatchable(stepMode:stepSize:transitionTime:colorTemperatureMinimumMireds:colorTemperatureMaximumMireds:optionsMask:optionsOverride:)
The batchable version of stepColorTemperature command above.
See also
stepColorTemperatureDeclaration
Swift
func stepColorTemperatureBatchable(stepMode: Matter.ColorControlTrait.StepModeEnum, stepSize: UInt16, transitionTime: UInt16, colorTemperatureMinimumMireds: UInt16, colorTemperatureMaximumMireds: UInt16, optionsMask: Matter.ColorControlTrait.OptionsBitmap, optionsOverride: Matter.ColorControlTrait.OptionsBitmap) throws -> BatchableCommand<Void> -
The action to take for a color loop.
Declaration
Swift
enum ColorLoopActionEnum -
The direction for an attribute on a circular scale.
Declaration
Swift
enum ColorLoopDirectionEnum -
The direction in which to change an attribute whose values are arranged in a circle.
Declaration
Swift
enum DirectionEnum -
How drift compensation is implemented.
Declaration
Swift
enum DriftCompensationEnum -
How enhanced color mode is specified.
Declaration
Swift
enum EnhancedColorModeEnum -
Move mode values.
Declaration
Swift
enum MoveModeEnum -
The mode by which stepwise changes to the attribute are applied.
Declaration
Swift
enum StepModeEnum -
The color capabilities that the device supports.
Declaration
Swift
struct ColorCapabilitiesBitmap -
ColorControl cluster FeatureMap.
Declaration
Swift
struct Feature -
Values for ColorLoopSet.
Declaration
Swift
struct UpdateFlagsBitmap