SwiftstructHomeDataModel

struct HomeDataModel.StaticColorControlCluster

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 32

  1. fieldlet colorPointB: HomeDataModel.StaticColorControlCluster.ColorPoint?
  2. fieldlet colorPointG: HomeDataModel.StaticColorControlCluster.ColorPoint?
  3. fieldlet colorPointR: HomeDataModel.StaticColorControlCluster.ColorPoint?
  4. fieldlet colorTemperatureMax: UInt16?
  5. fieldlet colorTemperatureMin: UInt16?
  6. fieldlet compensationText: String?
  7. fieldlet currentColorMode: HomeDataModel.StaticColorControlCluster.ColorMode
  8. fieldlet currentColorTemperature: UInt16?
  9. fieldlet currentHue: UInt8?
  10. fieldlet currentSaturation: UInt8?
  11. fieldlet currentX: UInt16?
  12. fieldlet currentY: UInt16?
  13. fieldlet driftCompensation: UInt8?
  14. fieldlet enhancedCurrentHue: UInt16?
  15. fieldlet id: HomeDataModel.ClusterPath
  16. fieldlet primaries: [HomeDataModel.StaticColorControlCluster.ColorPoint]
  17. fieldlet supportedColorModes: MTRColorControlColorCapabilitiesBitmap
  18. fieldlet whitePointX: UInt16?
  19. fieldlet whitePointY: UInt16?
  20. funccopyApplying(overridingAttributes: [HomeDataModel.MatterClusterAttributeID : HomeDataModel.MatterAttributeDataBuilder]) -> HomeDataModel.StaticColorControlCluster
  21. funcdefaultCommands() -> [HomeDataModel.StaticColorControlCluster.Command]
  22. funcenhancedMoveToHueAndSaturation(hue: UInt16, saturation: UInt8, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> ()
  23. funcmoveToColor(x: UInt16, y: UInt16, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> ()
  24. funcmoveToColorTemperature(colorTemperature: UInt16, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> ()
  25. funcmoveToHueAndSaturation(hue: UInt8, saturation: UInt8, expectedValues: HomeDataModel.ExpectedValuesBuilder) async throws -> ()
  26. funcrun(command: HomeDataModel.StaticColorControlCluster.Command) async throws -> ()
  27. initinit(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
  28. initinit(path: HomeDataModel.ClusterPath, valueSource: HomeDataModel.AttributeValueSet) -> HomeDataModel.StaticColorControlCluster?
  29. typealiastypealias CommandType = HomeDataModel.StaticColorControlCluster.Command
  30. typealiastypealias ID = HomeDataModel.ClusterPath
  31. varvar description: String { get }
  32. varvar lightbulbColor: HomeDataModel.LightbulbColor? { get }
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
}