    struct ExtendedThermostatTrait

This trait covers handling both temperature point and modes, and is an extension of the Matter
standard trait, Thermostat.
- `


  ### [supportedEventTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV014supportedEventC0Say0aB3SDK0H0_pXpGvpZ)


  ` List of the event types that are supported by `ExtendedThermostatTrait`.

  #### Declaration

  Swift

      static let supportedEventTypes: [any Event.Type]

- `


  ### [supportedCommandTypes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV016supportedCommandC0Say0aB3SDK0H0_pXpGvpZ)


  ` List of the commands that are supported by `ExtendedThermostatTrait`.

  #### Declaration

  Swift

      static let supportedCommandTypes: [any Command.Type]

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static let identifier: String

- `


  ### [metadata](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV8metadata0aB3SDK0F8MetadataVvp)


  ` Metadata about this `Trait`.

  #### Declaration

  Swift

      let metadata: TraitMetadata

- `


  ### [attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV10attributesAE10AttributesVvp)


  ` List of attributes for the `ExtendedThermostatTrait`.

  #### Declaration

  Swift

      let attributes: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/Attributes.html

- `


  ### [init(decoder:interactionProxy:metadata:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV7decoder16interactionProxy8metadataAE0aB3SDK0F7DecoderV_AI011InteractionI0_pSgAI0F8MetadataVtKcfc)


  ` Creates a new Trait instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder, interactionProxy: (any InteractionProxy)?, metadata: TraitMetadata) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Trait. |
  | ` interactionProxy ` | Proxy to the Interaction Client. |
  | ` metadata ` | Metadata about this Trait. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV6encode4withy0aB3SDK0F7EncoderC_tKF)


  ` Writes this object to the given `TraitEncoder`.
  Throws `HomeError.encodingFailed` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [forceRead()](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV9forceReadyyYaKF)


  ` This API provides the ability to invalidate state retrieved through subscriptions to the
  target device in the cases where state is not being reported correctly, either intentionally
  (e.g attributes in Matter traits with the "C" quality) or unintentionally due to poor
  implementations.

  When successful, this API will result in a forced read of the convening scope as specified by
  the sub-class and return the result through existing Trait subscriptions if present and
  active.

  This API is to be used sparingly as it can impact the performance and battery life of the
  target device. As such, this API may be throttled by the platform.
  Callers SHALL be prepared to deal with `HomeError`s thrown by this call.

  #### Declaration

  Swift

      func forceRead() async throws

- `


  ### [Attributes](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/Attributes.html)


  ` Attributes for the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait.html`.

  #### Declaration

  Swift

      struct Attributes

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV2eeoiySbAE_AEtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV4hash4intoys6HasherVz_tF)


  ` Hashes the essential components of this value by feeding them into the
  given hasher.

  Implement this method to conform to the `Hashable` protocol. The
  components used for hashing must be the same as the components compared
  in your type's `==` operator implementation. Call `hasher.combine(_:)`
  with each of these components.
  Important

  In your implementation of `hash(into:)`,
  don't call `finalize()` on the `hasher` instance provided,
  or replace it with a different instance.
  Doing so may become a compile-time error in the future.

  #### Declaration

  Swift

      func hash(into hasher: inout Hasher)

- `


  ### [PresetSynonyms](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/PresetSynonyms.html)


  ` Synonyms for the preset in a given language.

  #### Declaration

  Swift

      struct PresetSynonyms

- `


  ### [Preset](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/Preset.html)


  ` Information about a preset.

  #### Declaration

  Swift

      struct Preset

- `


  ### [supportsNotifySensorStateChangeCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV38supportsNotifySensorStateChangeCommandSbvp)


  ` Whether the device supports the `notifySensorStateChange` command for this trait.

  #### Declaration

  Swift

      var supportsNotifySensorStateChangeCommand: Bool { get }

- `


  ### [notifySensorStateChangeBatchable(sensorType:alarmType:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV32notifySensorStateChangeBatchable10sensorType05alarmM00aB3SDK0K7CommandVyytGAE0hM0O_AE05AlarmM0OtKF)


  ` The batchable version of notifySensorStateChange command above.
  See also
  notifySensorStateChange

  #### Declaration

  Swift

      func notifySensorStateChangeBatchable(sensorType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.SensorType, alarmType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.AlarmType) throws -> BatchableCommand<Void>

- `


  ### [supportsAssociateSensorCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV30supportsAssociateSensorCommandSbvp)


  ` Whether the device supports the `associateSensor` command for this trait.

  #### Declaration

  Swift

      var supportsAssociateSensorCommand: Bool { get }

- `


  ### [associateSensorBatchable(sensorId:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV24associateSensorBatchable8sensorId0aB3SDK0I7CommandVyytGSS_tKF)


  ` The batchable version of associateSensor command above.
  See also
  associateSensor

  #### Declaration

  Swift

      func associateSensorBatchable(sensorId: String) throws -> BatchableCommand<Void>

- `


  ### [supportsDisassociateSensorCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV33supportsDisassociateSensorCommandSbvp)


  ` Whether the device supports the `disassociateSensor` command for this trait.

  #### Declaration

  Swift

      var supportsDisassociateSensorCommand: Bool { get }

- `


  ### [disassociateSensorBatchable(sensorId:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV27disassociateSensorBatchable8sensorId0aB3SDK0I7CommandVyytGSS_tKF)


  ` The batchable version of disassociateSensor command above.
  See also
  disassociateSensor

  #### Declaration

  Swift

      func disassociateSensorBatchable(sensorId: String) throws -> BatchableCommand<Void>

- `


  ### [supportsListCompatibleSensorsCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV36supportsListCompatibleSensorsCommandSbvp)


  ` Whether the device supports the `listCompatibleSensors` command for this trait.

  #### Declaration

  Swift

      var supportsListCompatibleSensorsCommand: Bool { get }

- `


  ### [listCompatibleSensorsBatchable(sensorType:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV30listCompatibleSensorsBatchable10sensorType0aB3SDK0J7CommandVyAE04ListhiN0V8ResponseVGAE06SensorL0O_tKF)


  ` The batchable version of listCompatibleSensors command above.
  See also
  listCompatibleSensors

  #### Declaration

  Swift

      func listCompatibleSensorsBatchable(sensorType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.SensorType) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.ListCompatibleSensorsCommandResponse>

- `


  ### [supportsSelectSensorCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV27supportsSelectSensorCommandSbvp)


  ` Whether the device supports the `selectSensor` command for this trait.

  #### Declaration

  Swift

      var supportsSelectSensorCommand: Bool { get }

- `


  ### [selectSensorBatchable(sensorIds:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV21selectSensorBatchable9sensorIds0aB3SDK0I7CommandVyytGSaySSG_tKF)


  ` The batchable version of selectSensor command above.
  See also
  selectSensor

  #### Declaration

  Swift

      func selectSensorBatchable(sensorIds: [String]) throws -> BatchableCommand<Void>

- `


  ### [supportsSetTemperatureAndModeCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV36supportsSetTemperatureAndModeCommandSbvp)


  ` Whether the device supports the `setTemperatureAndMode` command for this trait.

  #### Declaration

  Swift

      var supportsSetTemperatureAndModeCommand: Bool { get }

- `


  ### [setTemperatureAndModeBatchable(mode:heatingTarget:coolingTarget:initiatedBy:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV30setTemperatureAndModeBatchable4mode13heatingTarget07coolingN011initiatedBy0aB3SDK0K7CommandVyytGAE010SelectableeJ0OSg_s5Int16VSgAtE15HvacActorMethodOSgtKF)


  ` The batchable version of setTemperatureAndMode command above.
  See also
  setTemperatureAndMode

  #### Declaration

  Swift

      func setTemperatureAndModeBatchable(mode: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.SelectableThermostatMode?, heatingTarget: Int16?, coolingTarget: Int16?, initiatedBy: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.HvacActorMethod?) throws -> BatchableCommand<Void>

- `


  ### [supportsCancelEcoCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV24supportsCancelEcoCommandSbvp)


  ` Whether the device supports the `cancelEco` command for this trait.

  #### Declaration

  Swift

      var supportsCancelEcoCommand: Bool { get }

- `


  ### [cancelEcoBatchable(initiatedBy:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV18cancelEcoBatchable11initiatedBy0aB3SDK0I7CommandVyytGAE15HvacActorMethodOSg_tKF)


  ` The batchable version of cancelEco command above.
  See also
  cancelEco

  #### Declaration

  Swift

      func cancelEcoBatchable(initiatedBy: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.HvacActorMethod?) throws -> BatchableCommand<Void>

- `


  ### [supportsSetEnhancedWeeklyScheduleCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV40supportsSetEnhancedWeeklyScheduleCommandSbvp)


  ` Whether the device supports the `setEnhancedWeeklySchedule` command for this trait.

  #### Declaration

  Swift

      var supportsSetEnhancedWeeklyScheduleCommand: Bool { get }

- `


  ### [setEnhancedWeeklyScheduleBatchable(daysOfWeek:transitions:initiatedBy:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV34setEnhancedWeeklyScheduleBatchable10daysOfWeek11transitions11initiatedBy0aB3SDK0K7CommandVyytGAE03DaymN0V_SayAE0hJ10TransitionVGAE15HvacActorMethodOSgtKF)


  ` The batchable version of setEnhancedWeeklySchedule command above.
  See also
  setEnhancedWeeklySchedule

  #### Declaration

  Swift

      func setEnhancedWeeklyScheduleBatchable(daysOfWeek: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.DayOfWeek, transitions: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.EnhancedScheduleTransition], initiatedBy: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.HvacActorMethod?) throws -> BatchableCommand<Void>

- `


  ### [supportsGetEnhancedWeeklyScheduleCommand](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV40supportsGetEnhancedWeeklyScheduleCommandSbvp)


  ` Whether the device supports the `getEnhancedWeeklySchedule` command for this trait.

  #### Declaration

  Swift

      var supportsGetEnhancedWeeklyScheduleCommand: Bool { get }

- `


  ### [getEnhancedWeeklyScheduleBatchable(daysToReturn:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait#/s:15GoogleHomeTypes0A0O23ExtendedThermostatTraitV34getEnhancedWeeklyScheduleBatchable12daysToReturn0aB3SDK0K7CommandVyAE03GethijP0V8ResponseVGAE9DayOfWeekV_tKF)


  ` The batchable version of getEnhancedWeeklySchedule command above.
  See also
  getEnhancedWeeklySchedule

  #### Declaration

  Swift

      func getEnhancedWeeklyScheduleBatchable(daysToReturn: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.DayOfWeek) throws -> BatchableCommand<https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google.html.ExtendedThermostatTrait.GetEnhancedWeeklyScheduleCommandResponse>

- `


  ### [ExtendedThermostatMode](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/ExtendedThermostatMode.html)


  ` Represents a mode in which a thermostat can operate.

  #### Declaration

  Swift

      enum ExtendedThermostatMode

- `


  ### [ExtendedRunningMode](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/ExtendedRunningMode.html)


  ` The current mode of the device.

  #### Declaration

  Swift

      enum ExtendedRunningMode

- `


  ### [PresetScenario](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/PresetScenario.html)


  ` The type of preset.

  #### Declaration

  Swift

      enum PresetScenario

- `


  ### [ExtendedSetpointChangeSource](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/ExtendedSetpointChangeSource.html)


  ` The source of the current temperature hold.

  #### Declaration

  Swift

      enum ExtendedSetpointChangeSource

- `


  ### [ExtendedThermostatFeature](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/ExtendedThermostatFeature.html)


  ` ExtendedThermostat trait feature map.

  #### Declaration

  Swift

      struct ExtendedThermostatFeature

- `


  ### [ExtendedProgrammingOperationMode](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ExtendedThermostatTrait/ExtendedProgrammingOperationMode.html)


  ` Thermostat-extended operation modes.

  #### Declaration

  Swift

      struct ExtendedProgrammingOperationMode