    struct Attributes

Attributes for the `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html`.
- `


  ### [attributeList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV13attributeListSays6UInt32VGSgvp)


  ` A list of the attribute IDs of the attributes supported by the cluster instance.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var attributeList: [UInt32]? { get }

- `


  ### [esaType](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV7esaTypeAE11ESATypeEnumOSgvp)


  ` The type of the ESA, which enables an EMS to determine how the ESA consumes, generates, and
  stores the energy.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var esaType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/ESATypeEnum.html? { get }

- `


  ### [esaCanGenerate](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV14esaCanGenerateSbSgvp)


  ` Indicates whether the ESA is classified as a generator or a load. This allows an energy
  management system (EMS) to determine whether any power values reported by the ESA need to
  have their signs (for positive or negative values) inverted to make proper forecasts and
  adjustments. For example, a home battery storage system that charges its battery and then
  discharges to the home loads is classified as a generator, and the value of the
  `ESACanGenerate` attribute is `true`. The ESA power value is a positive numerical value when
  indicating that it is discharging to the loads in the home, and a negative numerical value
  when indicating it is charging its internal battery.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var esaCanGenerate: Bool? { get }

- `


  ### [esaState](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV8esaStateAE12ESAStateEnumOSgvp)


  ` The current state of the ESA. If the ESA is in the `Offline` or `Fault` state, it cannot be
  controlled by an EMS and may not be able to report its forecast information.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var esaState: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/ESAStateEnum.html? { get }

- `


  ### [absMinPower](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV11absMinPowers5Int64VSgvp)


  ` The minimum electrical power, in milliwatts, that the ESA can consume when it's on. This
  does not include when the ESA is in power save or standby mode. For a generator ESA that can
  charge an internal battery, the `AbsMinPower` is a negative number that represents the
  maximum power to which the ESA can charge its internal battery. For example, for a battery
  storage inverter that can charge its battery at a maximum power of 2000000mW, the
  `AbsMinPower` is -2000000.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var absMinPower: Int64? { get }

- `


  ### [absMaxPower](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV11absMaxPowers5Int64VSgvp)


  ` The maximum electrical power, in milliwatts, that the ESA can consume when it's on. The
  following condition must be true: `AbsMaxPower` is greater than or equal to `AbsMinPower`.
  For a generator ESA that can discharge a battery to loads in the home, the `AbsMaxPower` is
  a positive number that represents the maximum power at which the ESA can discharge its
  internal battery. For example, for a battery storage inverter that can discharge the battery
  at a maximum power of 3000000mW, the `AbsMaxPower` is 3000000.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var absMaxPower: Int64? { get }

- `


  ### [powerAdjustmentCapability](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV25powerAdjustmentCapabilityAE011PowerAdjustL6StructVSgvp)


  ` Indicates how the ESA can be adjusted at the current time. For example, a battery storage
  inverter may need to regulate its internal temperature or the charging rate of the battery
  may be limited due to cold temperatures. An empty list indicates that no power adjustment is
  currently available, and multiple entries indicate that various permutations of scenarios
  may be possible. Refer also to `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/PowerAdjustStruct.html` for available charging and discharging
  power adjustments.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var powerAdjustmentCapability: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/PowerAdjustCapabilityStruct.html? { get }

- `


  ### [forecast](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV8forecastAE14ForecastStructVSgvp)


  ` Allows an ESA to share its intended forecast with a client, such as an EMS. A null value
  indicates that there is no forecast currently available.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var forecast: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/ForecastStruct.html? { get }

- `


  ### [optOutState](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV11optOutStateAE03OptkL4EnumOSgvp)


  ` Indicates whether the ESA has opted out of energy management. If the ESA has opted out, it
  will not be controlled by an EMS. The ESA can opt out of energy management by setting this
  attribute to `true`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var optOutState: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/OptOutStateEnum.html? { get }

- `


  ### [generatedCommandList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV20generatedCommandListSays6UInt32VGSgvp)


  ` A list of server-generated commands (server to client) which are supported by this
  cluster server instance.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var generatedCommandList: [UInt32]? { get }

- `


  ### [acceptedCommandList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV19acceptedCommandListSays6UInt32VGSgvp)


  ` A list of client-generated commands which are supported by this cluster server instance.

  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var acceptedCommandList: [UInt32]? { get }

- `


  ### [featureMap](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV10featureMapAE7FeatureVSgvp)


  ` Whether the server supports zero or more optional cluster features. A cluster feature
  is a set of cluster elements that are mandatory or optional for a defined feature of the
  cluster. If a cluster feature is supported by the cluster instance, then the corresponding
  bit is set to 1, otherwise the bit is set to 0 (zero).
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var featureMap: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Feature.html? { get }

- `


  ### [clusterRevision](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV15clusterRevisions6UInt16VSgvp)


  ` The revision of the server cluster specification supported by the cluster instance.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var clusterRevision: UInt16? { get }

- `


  ### [identifier](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static var identifier: String { get }

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV6encode4withy0aB3SDK0H7EncoderC_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

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV2eeoiySbAG_AGtFZ)


  ` 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/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.Attributes, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.Attributes) -> Bool

  #### Parameters

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

- `


  ### [hash(into:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/Attributes#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10AttributesV4hash4intoys6HasherVz_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)