LightingCurveConfig

struct LightingCurveConfig

Configuration parameters for a lighting curve.

  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?
  • The sequence of points defining the curve.

    Declaration

    Swift

    let curvePointsArray: [Google.LightingCurveTrait.CurvePoint]
  • The ID of the target room. For example, ‘room@{uuid}’.

    Declaration

    Swift

    let roomId: String?
  • The target devices to apply the lighting curve setting.

    Declaration

  • The days of the week on which the lighting curve should run.

    Declaration

    Swift

    let daysOfWeekArray: [Locale.Weekday]
  • True if this is an adaptive lighting curve.

    Declaration

    Swift

    let adaptive: Bool?
  • True if the lighting curve is enabled.

    Declaration

    Swift

    let enabled: Bool?
  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws