SwiftstructHomeDataModel
StaticColorControlCluster
struct HomeDataModel.StaticColorControlCluster
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolHomeDataModel.CommandableCluster
- protocolSwift.CustomStringConvertible
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
- protocolSwift.Identifiable
Members 32
- field
let colorPointB: HomeDataModel.StaticColorControlCluster.ColorPoint? - field
let colorPointG: HomeDataModel.StaticColorControlCluster.ColorPoint? - field
let colorPointR: HomeDataModel.StaticColorControlCluster.ColorPoint? - field
let colorTemperatureMax: UInt16? - field
let colorTemperatureMin: UInt16? - field
let compensationText: String? - field
let currentColorMode: HomeDataModel.StaticColorControlCluster.ColorMode - field
let currentColorTemperature: UInt16? - field
let currentHue: UInt8? - field
let currentSaturation: UInt8? - field
let currentX: UInt16? - field
let currentY: UInt16? - field
let driftCompensation: UInt8? - field
let enhancedCurrentHue: UInt16? - field
let id: HomeDataModel.ClusterPath - field
let primaries: [HomeDataModel.StaticColorControlCluster.ColorPoint] - field
let supportedColorModes: MTRColorControlColorCapabilitiesBitmap - field
let whitePointX: UInt16? - field
let whitePointY: UInt16? - func
copyApplying(overridingAttributes: [HomeDataModel.MatterClusterAttributeID : HomeDataModel.MatterAttributeDataBuilder]) -> HomeDataModel.StaticColorControlCluster - func
defaultCommands() -> [HomeDataModel.StaticColorControlCluster.Command] - func
enhancedMoveToHueAndSaturation(hue: UInt16, saturation: UInt8, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> () - func
moveToColor(x: UInt16, y: UInt16, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> () - func
moveToColorTemperature(colorTemperature: UInt16, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> () - func
moveToHueAndSaturation(hue: UInt8, saturation: UInt8, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> () - func
run(command: HomeDataModel.StaticColorControlCluster.Command) async throws -> () - init
init(id: HomeDataModel.ClusterPath, currentHue: UInt8?, currentSaturation: UInt8?, enhancedCurrentHue: UInt16?, currentX: UInt16?, currentY: UInt16?, primaries: [HomeDataModel.StaticColorControlCluster.ColorPoint], whitePointX: UInt16?, whitePointY: UInt16?, colorPointR: HomeDataModel.StaticColorControlCluster.ColorPoint?, colorPointG: HomeDataModel.StaticColorControlCluster.ColorPoint?, colorPointB: HomeDataModel.StaticColorControlCluster.ColorPoint?, currentColorTemperature: UInt16?, colorTemperatureMin: UInt16?, colorTemperatureMax: UInt16?, supportedColorModes: MTRColorControlColorCapabilitiesBitmap, currentColorMode: HomeDataModel.StaticColorControlCluster.ColorMode, driftCompensation: UInt8?, compensationText: String?) -> HomeDataModel.StaticColorControlCluster - init
init(path: HomeDataModel.ClusterPath, valueSource: HomeDataModel.AttributeValueSet) -> HomeDataModel.StaticColorControlCluster? - typealias
typealias CommandType = HomeDataModel.StaticColorControlCluster.Command - typealias
typealias ID = HomeDataModel.ClusterPath - var
var description: String { get } - var
var lightbulbColor: HomeDataModel.LightbulbColor? { get }
Header
struct StaticColorControlCluster { enum ColorMode { case hueSaturation case XY case colorTemperature case enhancedHueSaturation } struct ColorPoint { enum CodingKeys { case x case y case intensity } let x: Swift.UInt16? let y: Swift.UInt16? let intensity: Swift.UInt8? } enum CodingKeys { case id case currentHue case currentSaturation case enhancedCurrentHue case currentX case currentY case primaries case whitePointX case whitePointY case colorPointR case colorPointG case colorPointB case currentColorTemperature case colorTemperatureMin case colorTemperatureMax case supportedColorModes case currentColorMode case driftCompensation case compensationText } enum Command { enum Template { case moveToHueAndSaturation(Swift.UInt8, Swift.UInt8) case enhancedMoveToHueAndSaturation(Swift.UInt16, Swift.UInt8) case moveToXY(Swift.UInt16, Swift.UInt16) case moveToColorTemperature(Swift.UInt16) func matterCommand(endpoint: any HomeDataModel.MatterEndpoint) -> (any HomeDataModel.MatterCommand)? func isCompatible(with: any HomeDataModel.MatterCommandTemplate) -> Swift.Bool func command(with: __C.HMAccessory, endpoint: HomeDataModel.StaticEndpoint) -> __C.HMMatterCommand? static func moveToHueAndSaturation(_: Swift.Double, _: Swift.Double) -> HomeDataModel.StaticColorControlCluster.Command.Template } enum CodingKeys { case moveToHueAndSaturation case enhancedMoveToHueAndSaturation case moveToXY case moveToColorTemperature } enum MoveToHueAndSaturationCodingKeys { case _0 case _1 } enum EnhancedMoveToHueAndSaturationCodingKeys { case _0 case _1 } enum MoveToXYCodingKeys { case _0 case _1 } enum MoveToColorTemperatureCodingKeys { case _0 } case moveToHueAndSaturation(Swift.UInt8, Swift.UInt8) case enhancedMoveToHueAndSaturation(Swift.UInt16, Swift.UInt8) case moveToXY(Swift.UInt16, Swift.UInt16) case moveToColorTemperature(Swift.UInt16) init?(clusterKind: HomeDataModel.ClusterKind, commandID: Swift.UInt32, expectedValues: [[Swift.String : any Swift.Sendable]], commandFields: HomeDataModel.MatterCommandFields?) var clusterKind: HomeDataModel.ClusterKind { get } var commandFields: HomeDataModel.MatterCommandFields? { get } var commandID: __C.MTRCommandIDType { get } var commandResponseID: __C.MTRCommandIDType? { get } var description: Swift.String { get } var executionOrder: Swift.Int { get } var expectedValues: [HomeDataModel.MatterClusterAttributeID : HomeDataModel.MatterAttributeDataBuilder]? { get } var overridingAttributes: [HomeDataModel.MatterClusterAttributeID : HomeDataModel.MatterAttributeDataBuilder]? { get } } let id: HomeDataModel.ClusterPath let currentHue: Swift.UInt8? let currentSaturation: Swift.UInt8? let enhancedCurrentHue: Swift.UInt16? let currentX: Swift.UInt16? let currentY: Swift.UInt16? let primaries: [HomeDataModel.StaticColorControlCluster.ColorPoint] let whitePointX: Swift.UInt16? let whitePointY: Swift.UInt16? let colorPointR: HomeDataModel.StaticColorControlCluster.ColorPoint? let colorPointG: HomeDataModel.StaticColorControlCluster.ColorPoint? let colorPointB: HomeDataModel.StaticColorControlCluster.ColorPoint? let currentColorTemperature: Swift.UInt16? let colorTemperatureMin: Swift.UInt16? let colorTemperatureMax: Swift.UInt16? let supportedColorModes: __C.MTRColorControlColorCapabilitiesBitmap let currentColorMode: HomeDataModel.StaticColorControlCluster.ColorMode let driftCompensation: Swift.UInt8? let compensationText: Swift.String? init(id: HomeDataModel.ClusterPath, currentHue: Swift.UInt8?, currentSaturation: Swift.UInt8?, enhancedCurrentHue: Swift.UInt16?, currentX: Swift.UInt16?, currentY: Swift.UInt16?, primaries: [HomeDataModel.StaticColorControlCluster.ColorPoint], whitePointX: Swift.UInt16?, whitePointY: Swift.UInt16?, colorPointR: HomeDataModel.StaticColorControlCluster.ColorPoint?, colorPointG: HomeDataModel.StaticColorControlCluster.ColorPoint?, colorPointB: HomeDataModel.StaticColorControlCluster.ColorPoint?, currentColorTemperature: Swift.UInt16?, colorTemperatureMin: Swift.UInt16?, colorTemperatureMax: Swift.UInt16?, supportedColorModes: __C.MTRColorControlColorCapabilitiesBitmap, currentColorMode: HomeDataModel.StaticColorControlCluster.ColorMode, driftCompensation: Swift.UInt8?, compensationText: Swift.String?) init?(path: HomeDataModel.ClusterPath, valueSource: HomeDataModel.AttributeValueSet) var description: Swift.String { get } var lightbulbColor: HomeDataModel.LightbulbColor? { get } func moveToColor(x: Swift.UInt16, y: Swift.UInt16, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws func moveToColorTemperature(colorTemperature: Swift.UInt16, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws func copyApplying(overridingAttributes: [HomeDataModel.MatterClusterAttributeID : HomeDataModel.MatterAttributeDataBuilder]) -> HomeDataModel.StaticColorControlCluster func defaultCommands() -> [HomeDataModel.StaticColorControlCluster.Command] func moveToHueAndSaturation(hue: Swift.UInt8, saturation: Swift.UInt8, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws func enhancedMoveToHueAndSaturation(hue: Swift.UInt16, saturation: Swift.UInt8, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws func run(command: HomeDataModel.StaticColorControlCluster.Command) async throws }