struct LightingCurveConfigConfiguration 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
Swift
let devices: Google.LightingCurveTrait.TargetDevices? -
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.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