struct CurvePointRepresents a single point on a lighting curve.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
Target brightness percentage (0-100).
Declaration
Swift
let brightnessPercent: Int32? -
Target color temperature in Kelvin. If omitted, temperature is not controlled.
Declaration
Swift
let colorTemperature: Int32? -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws