# Attributes

    struct Attributes

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


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


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

  #### Declaration

  Swift

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

- `


  ### [status](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV6statusAE0eF10StatusEnumOSgvp)


  ` The participation of the power source in providing power to the node, as specified in
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/PowerSourceStatusEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var status: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/PowerSourceStatusEnum.html? { get }

- `


  ### [order](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV5orders5UInt8VSgvp)


  ` The relative preference with which the device selects the source to provide power. A source
  with a lower order is selected by the device to provide power before any other source with a
  higher order, if the lower-order source is available.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var order: UInt8? { get }

- `


  ### [description](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV11descriptionSSSgvp)


  ` A user-facing description of the source, used to distinguish it from other power sources.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var description: String? { get }

- `


  ### [wiredAssessedInputVoltage](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV25wiredAssessedInputVoltages6UInt32VSgvp)


  ` The assessed RMS or DC voltage currently provided by the hard-wired source, in millivolts. A
  value of null indicates that the device is currently unable to assess the value. If the
  wired source is not connected, but the device is still able to assess a value, then the
  assessed value can be reported.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredAssessedInputVoltage: UInt32? { get }

- `


  ### [wiredAssessedInputFrequency](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV27wiredAssessedInputFrequencys6UInt16VSgvp)


  ` The assessed frequency of the voltage, currently provided by the hard-wired source, in Hz. A
  value of null indicates that the device is currently unable to assess the value. If the
  wired source is not connected, but the device is still able to assess a value, then the
  assessed value can be reported.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredAssessedInputFrequency: UInt16? { get }

- `


  ### [wiredCurrentType](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV16wiredCurrentTypeAE05WiredjK4EnumOSgvp)


  ` The type of current that the device expects to be provided by the hard-wired source, as
  specified in `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredCurrentTypeEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredCurrentType: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredCurrentTypeEnum.html? { get }

- `


  ### [wiredAssessedCurrent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV20wiredAssessedCurrents6UInt32VSgvp)


  ` The assessed instantaneous current draw of the device on the hard-wired source, in
  milliamps. A value of null indicates the device is currently unable to assess the value. If
  the wired source is not connected, but the device is still able to assess a value, then the
  assessed value can be reported.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredAssessedCurrent: UInt32? { get }

- `


  ### [wiredNominalVoltage](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV19wiredNominalVoltages6UInt32VSgvp)


  ` The nominal voltage in millivolts, given in the device's regulatory compliance label,
  expected to be provided by the hard-wired source.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredNominalVoltage: UInt32? { get }

- `


  ### [wiredMaximumCurrent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV19wiredMaximumCurrents6UInt32VSgvp)


  ` The maximum current in milliamps, given in the device's regulatory compliance label,
  expected to be provided by the hard-wired source.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredMaximumCurrent: UInt32? { get }

- `


  ### [wiredPresent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV12wiredPresentSbSgvp)


  ` Indicates if the device detects that the hard-wired power source is properly connected.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var wiredPresent: Bool? { get }

- `


  ### [activeWiredFaults](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV17activeWiredFaultsSayAE0J9FaultEnumOGSgvp)


  ` The set of wired faults currently detected by the device on this power source. This set is
  represented as a list of `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredFaultEnum.html`. When the device detects that a fault has been
  raised, the appropriate `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredFaultEnum.html` value is added to this list, provided this value is
  not already present in the list. This list should not contain more than one instance of a
  specific `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredFaultEnum.html` value. When the device detects that all conditions contributing to
  a fault have been cleared, the corresponding `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredFaultEnum.html` value is removed from this
  list. An empty list indicates that there are currently no active faults.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var activeWiredFaults: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/WiredFaultEnum.html]? { get }

- `


  ### [batVoltage](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV10batVoltages6UInt32VSgvp)


  ` The currently measured output voltage of the battery in millivolts. A value of null
  indicates that the device is currently unable to assess the value.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var batVoltage: UInt32? { get }

- `


  ### [batPercentRemaining](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV19batPercentRemainings5UInt8VSgvp)


  ` The estimated percentage of battery charge remaining until the battery can no longer provide
  power to the device. Values are expressed in half-percent units, ranging from 0 to 200. For
  example, a value of 48 is equivalent to 24%. A value of null indicates that the device is
  currently unable to assess the value. Changes to this attribute are reported either once
  every 10 seconds or when the value changes between null and a non-null value.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var batPercentRemaining: UInt8? { get }

- `


  ### [batTimeRemaining](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV16batTimeRemainings6UInt32VSgvp)


  ` The estimated time in seconds before the battery will no longer be able to provide power to
  the device. A value of null indicates that the device is currently unable to assess the
  value. Changes to this attribute are reported either once every 10 seconds or when the value
  changes between null and a non-null value.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var batTimeRemaining: UInt32? { get }

- `


  ### [batChargeLevel](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV14batChargeLevelAE03BatjK4EnumOSgvp)


  ` The ranking of the charge level of the battery used to indicate when intervention is
  required, as specified in `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeLevelEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batChargeLevel: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeLevelEnum.html? { get }

- `


  ### [batReplacementNeeded](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV20batReplacementNeededSbSgvp)


  ` Indicates if the battery needs to be replaced.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batReplacementNeeded: Bool? { get }

- `


  ### [batReplaceability](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV17batReplaceabilityAE03BatJ4EnumOSgvp)


  ` Indicates the replaceability of the battery as specified in `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batReplaceability: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatReplaceabilityEnum.html? { get }

- `


  ### [batPresent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV10batPresentSbSgvp)


  ` Indicates if the device detects that the batteries are properly installed.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batPresent: Bool? { get }

- `


  ### [activeBatFaults](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV15activeBatFaultsSayAE0J9FaultEnumOGSgvp)


  ` Indicates the set of battery faults currently detected by the device on this power source.
  This set is represented as a list in `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatFaultEnum.html`. When the device detects that a fault
  has been raised, the appropriate `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatFaultEnum.html` value is added to this list. When the device
  detects that all conditions contributing to a fault have been cleared, the corresponding
  value is removed from this list. An empty list indicates that there are currently no active
  faults.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var activeBatFaults: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatFaultEnum.html]? { get }

- `


  ### [batReplacementDescription](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV25batReplacementDescriptionSSSgvp)


  ` A user-facing description of this battery, containing information required to identify a
  replacement, such as form factor, chemistry, or preferred manufacturer.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batReplacementDescription: String? { get }

- `


  ### [batCommonDesignation](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV20batCommonDesignationAE03BatjK4EnumOSgvp)


  ` The ID of the common or colloquial designation of the battery, as specified in
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatCommonDesignationEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batCommonDesignation: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatCommonDesignationEnum.html? { get }

- `


  ### [batAnsiDesignation](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV18batAnsiDesignationSSSgvp)


  ` The string representing the ANSI designation for the battery, as specified in ANSI C18.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batAnsiDesignation: String? { get }

- `


  ### [batIecDesignation](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV17batIecDesignationSSSgvp)


  ` The string representing the IEC designation for the battery, as specified in IEC 60086.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batIecDesignation: String? { get }

- `


  ### [batApprovedChemistry](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV20batApprovedChemistryAE03BatjK4EnumOSgvp)


  ` ID of the preferred chemistry of the battery source, as specified in
  `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatApprovedChemistryEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batApprovedChemistry: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatApprovedChemistryEnum.html? { get }

- `


  ### [batCapacity](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV11batCapacitys6UInt32VSgvp)


  ` The preferred minimum charge capacity rating in milliampere-hours of battery cells or packs
  in the battery source.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batCapacity: UInt32? { get }

- `


  ### [batQuantity](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV11batQuantitys5UInt8VSgvp)


  ` The number of battery cells or packs in the battery source.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batQuantity: UInt8? { get }

- `


  ### [batChargeState](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV14batChargeStateAE03BatjK4EnumOSgvp)


  ` The state of the battery charge, as specified in `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeStateEnum.html`.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batChargeState: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeStateEnum.html? { get }

- `


  ### [batTimeToFullCharge](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV19batTimeToFullCharges6UInt32VSgvp)


  ` The estimated time in seconds before the battery source is fully charged. A value of null
  indicates that the device is currently unable to assess the value. Changes to this attribute
  are reported either once every 10 seconds or when the value changes between null and a non-
  null value.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var batTimeToFullCharge: UInt32? { get }

- `


  ### [batFunctionalWhileCharging](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV26batFunctionalWhileChargingSbSgvp)


  ` Indicates whether the device can remain operational while the battery source is charging.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var batFunctionalWhileCharging: Bool? { get }

- `


  ### [batChargingCurrent](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV18batChargingCurrents6UInt32VSgvp)


  ` The assessed current in milliamps being supplied to charge the battery source. A value of
  null indicates that the device is currently unable to assess the value.
  Nullable: true.

  #### Declaration

  Swift

      @TraitAttribute
      var batChargingCurrent: UInt32? { get }

- `


  ### [activeBatChargeFaults](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV21activeBatChargeFaultsSayAE0jK9FaultEnumOGSgvp)


  ` Indicates the set of battery charge faults currently detected by the device on this power
  source. This set is represented as a list in `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeFaultEnum.html`. When the device detects
  that a fault has been raised, the appropriate `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeFaultEnum.html` value is added to this
  list. When the device detects that all conditions contributing to a fault have been cleared,
  the corresponding value is removed from this list. An empty list indicates that there are
  currently no active faults.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var activeBatChargeFaults: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/BatChargeFaultEnum.html]? { get }

- `


  ### [endpointList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV12endpointListSays6UInt16VGSgvp)


  ` A list of endpoints that are powered by the source defined by this cluster. Multiple
  instances of this cluster can list the same endpoint because it is possible for power for an
  endpoint to come from multiple sources. In that case, the
  `PowerSourceTrait/Attributes/Order` attribute indicates their priority. For each power
  source on a device, there is only one instance of this cluster. A cluster instance with an
  empty list indicates that the power source is for the entire device, which includes all
  endpoints. A cluster instance with a non-empty list includes the endpoint for which the
  cluster instance resides.
  Nullable: false.

  #### Declaration

  Swift

      @TraitAttribute
      var endpointList: [UInt16]? { get }

- `


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


  ` 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/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV19acceptedCommandListSays6UInt32VGSgvp)


  ` 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/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV10featureMapAE7FeatureVSgvp)


  ` 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/PowerSourceTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Feature.html? { get }

- `


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


  ` 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/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV10identifierSSvpZ)


  ` The trait identifier.

  #### Declaration

  Swift

      static var identifier: String { get }

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV6encode4withy0aB3SDK0G7EncoderC_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/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV2eeoiySbAG_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/PowerSourceTrait.html.Attributes, rhs: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/PowerSourceTrait.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/PowerSourceTrait/Attributes#/s:15GoogleHomeTypes6MatterO16PowerSourceTraitV10AttributesV4hash4intoys6HasherVz_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)