# WeeklyScheduleTransitionStruct

    struct WeeklyScheduleTransitionStruct

A single transition in a thermostat schedule.
- `


  ### [transitionTime](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ThermostatTrait/WeeklyScheduleTransitionStruct#/s:15GoogleHomeTypes6MatterO15ThermostatTraitV30WeeklyScheduleTransitionStructV14transitionTimes6UInt16Vvp)


  ` 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

- `


  ### [heatSetpoint](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ThermostatTrait/WeeklyScheduleTransitionStruct#/s:15GoogleHomeTypes6MatterO15ThermostatTraitV30WeeklyScheduleTransitionStructV12heatSetpoints5Int16VSgvp)


  ` The heating setpoint applied at the transition time.

  #### Declaration

  Swift

      let heatSetpoint: Int16?

- `


  ### [coolSetpoint](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ThermostatTrait/WeeklyScheduleTransitionStruct#/s:15GoogleHomeTypes6MatterO15ThermostatTraitV30WeeklyScheduleTransitionStructV12coolSetpoints5Int16VSgvp)


  ` The cooling setpoint applied at the transition time.

  #### Declaration

  Swift

      let coolSetpoint: Int16?

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ThermostatTrait/WeeklyScheduleTransitionStruct#/s:15GoogleHomeTypes6MatterO15ThermostatTraitV30WeeklyScheduleTransitionStructV7decoderAG0aB3SDK0F7DecoderV_tKcfc)


  ` 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. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ThermostatTrait/WeeklyScheduleTransitionStruct#/s:15GoogleHomeTypes6MatterO15ThermostatTraitV30WeeklyScheduleTransitionStructV6encode4withy0aB3SDK0F7EncoderC_tKF)


  ` 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

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ThermostatTrait/WeeklyScheduleTransitionStruct#/s:15GoogleHomeTypes6MatterO15ThermostatTraitV30WeeklyScheduleTransitionStructV11structField2id0aB3SDK0L0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

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