WeeklyScheduleTransitionStruct

struct WeeklyScheduleTransitionStruct

A single transition in a thermostat schedule.

  • The start time of the schedule transition, expressed as the minutes since midnight. For example, 360 means 6:00am, and 1410 means 11:30pm.

    Declaration

    Swift

    let transitionTime: UInt16
  • The heating setpoint applied at the transition time.

    Declaration

    Swift

    let heatSetpoint: Int16?
  • The cooling setpoint applied at the transition time.

    Declaration

    Swift

    let coolSetpoint: Int16?
  • 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
  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?