# PowerSourceTrait.BatApprovedChemistryEnum

# PowerSourceTrait.BatApprovedChemistryEnum


```
enum PowerSourceTrait.BatApprovedChemistryEnum : Enum, ClusterEnum
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html) ||
|   | ↳ | [com.google.home.matter.standard.PowerSourceTrait.BatApprovedChemistryEnum](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum) |

*** ** * ** ***

The preferred chemistry of the battery source.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#Alkaline` | Alkaline |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LeadAcid` | Lead acid |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumCarbonFluoride` | Lithium carbon fluoride |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumChromiumOxide` | Lithium chromium oxide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumCobaltOxide` | Lithium cobalt oxide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumCopperOxide` | Lithium copper oxide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumIon` | Lithium ion |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumIonPolymer` | Lithium ion polymer |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumIronDisulfide` | Lithium iron disulfide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumIronPhosphate` | Lithium iron phosphate |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumManganeseDioxide` | Lithium manganese dioxide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumSulfur` | Lithium sulfur |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumThionylChloride` | Lithium thionyl chloride |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#LithiumTitanate` | Lithium titanate |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#Magnesium` | Magnesium |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#MercuryOxide` | Mercury oxide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#NickelCadmium` | Nickel cadmium |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#NickelHydrogen` | Nickel hydrogen |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#NickelIron` | Nickel iron |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#NickelMetalHydride` | Nickel metal hydride |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#NickelOxyhydride` | Nickel oxyhydride |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#NickelZinc` | Nickel zinc |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#SilverOxide` | Silver oxide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#SilverZinc` | Silver zinc |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#SodiumIon` | Sodium ion |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#SodiumSulfur` | Sodium sulfur |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#UnknownValue` | The enum value is out of range. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#Unspecified` | Unspecified |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#ZincAir` | Zinc air |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#ZincBromide` | Zinc bromide |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#ZincCarbon` | Zinc carbon |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#ZincCerium` | Zinc cerium |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#ZincChloride` | Zinc chloride |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#ZincManganeseDioxide` | Zinc manganese dioxide |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#toDescription()()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#valueOf(kotlin.String)(value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Returns the enum constant of this type with the specified name. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/kotlin/enums/EnumEntries<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#entries()` Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#traitId()` Trait identifier of the Matter Cluster that defines the enum Data Type. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#typeName()` Name of the Matter Data Type that the enum belongs to, in UpperCamelCase, e.g. "AlarmCodeEnum" from Door Lock Cluster. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.BatApprovedChemistryEnum#value()` Integer identifier of the enum value per the Matter Application Clusters spec, e.g. 1 for Door Lock Cluster AlarmCodeEnum.LockFactoryReset. |

## Enum Values

### Alkaline

```
val PowerSourceTrait.BatApprovedChemistryEnum.Alkaline: PowerSourceTrait.BatApprovedChemistryEnum
```

Alkaline

### LeadAcid

```
val PowerSourceTrait.BatApprovedChemistryEnum.LeadAcid: PowerSourceTrait.BatApprovedChemistryEnum
```

Lead acid

### LithiumCarbonFluoride

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumCarbonFluoride: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium carbon fluoride

### LithiumChromiumOxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumChromiumOxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium chromium oxide

### LithiumCobaltOxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumCobaltOxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium cobalt oxide

### LithiumCopperOxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumCopperOxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium copper oxide

### LithiumIon

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumIon: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium ion

### LithiumIonPolymer

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumIonPolymer: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium ion polymer

### LithiumIronDisulfide

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumIronDisulfide: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium iron disulfide

### LithiumIronPhosphate

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumIronPhosphate: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium iron phosphate

### LithiumManganeseDioxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumManganeseDioxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium manganese dioxide

### LithiumSulfur

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumSulfur: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium sulfur

### LithiumThionylChloride

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumThionylChloride: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium thionyl chloride

### LithiumTitanate

```
val PowerSourceTrait.BatApprovedChemistryEnum.LithiumTitanate: PowerSourceTrait.BatApprovedChemistryEnum
```

Lithium titanate

### Magnesium

```
val PowerSourceTrait.BatApprovedChemistryEnum.Magnesium: PowerSourceTrait.BatApprovedChemistryEnum
```

Magnesium

### MercuryOxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.MercuryOxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Mercury oxide

### NickelCadmium

```
val PowerSourceTrait.BatApprovedChemistryEnum.NickelCadmium: PowerSourceTrait.BatApprovedChemistryEnum
```

Nickel cadmium

### NickelHydrogen

```
val PowerSourceTrait.BatApprovedChemistryEnum.NickelHydrogen: PowerSourceTrait.BatApprovedChemistryEnum
```

Nickel hydrogen

### NickelIron

```
val PowerSourceTrait.BatApprovedChemistryEnum.NickelIron: PowerSourceTrait.BatApprovedChemistryEnum
```

Nickel iron

### NickelMetalHydride

```
val PowerSourceTrait.BatApprovedChemistryEnum.NickelMetalHydride: PowerSourceTrait.BatApprovedChemistryEnum
```

Nickel metal hydride

### NickelOxyhydride

```
val PowerSourceTrait.BatApprovedChemistryEnum.NickelOxyhydride: PowerSourceTrait.BatApprovedChemistryEnum
```

Nickel oxyhydride

### NickelZinc

```
val PowerSourceTrait.BatApprovedChemistryEnum.NickelZinc: PowerSourceTrait.BatApprovedChemistryEnum
```

Nickel zinc

### SilverOxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.SilverOxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Silver oxide

### SilverZinc

```
val PowerSourceTrait.BatApprovedChemistryEnum.SilverZinc: PowerSourceTrait.BatApprovedChemistryEnum
```

Silver zinc

### SodiumIon

```
val PowerSourceTrait.BatApprovedChemistryEnum.SodiumIon: PowerSourceTrait.BatApprovedChemistryEnum
```

Sodium ion

### SodiumSulfur

```
val PowerSourceTrait.BatApprovedChemistryEnum.SodiumSulfur: PowerSourceTrait.BatApprovedChemistryEnum
```

Sodium sulfur

### UnknownValue

```
val PowerSourceTrait.BatApprovedChemistryEnum.UnknownValue: PowerSourceTrait.BatApprovedChemistryEnum
```

The enum value is out of range. For example, a newer Matter cluster definition may support enum values not yet supported by the Home APIs.

### Unspecified

```
val PowerSourceTrait.BatApprovedChemistryEnum.Unspecified: PowerSourceTrait.BatApprovedChemistryEnum
```

Unspecified

### ZincAir

```
val PowerSourceTrait.BatApprovedChemistryEnum.ZincAir: PowerSourceTrait.BatApprovedChemistryEnum
```

Zinc air

### ZincBromide

```
val PowerSourceTrait.BatApprovedChemistryEnum.ZincBromide: PowerSourceTrait.BatApprovedChemistryEnum
```

Zinc bromide

### ZincCarbon

```
val PowerSourceTrait.BatApprovedChemistryEnum.ZincCarbon: PowerSourceTrait.BatApprovedChemistryEnum
```

Zinc carbon

### ZincCerium

```
val PowerSourceTrait.BatApprovedChemistryEnum.ZincCerium: PowerSourceTrait.BatApprovedChemistryEnum
```

Zinc cerium

### ZincChloride

```
val PowerSourceTrait.BatApprovedChemistryEnum.ZincChloride: PowerSourceTrait.BatApprovedChemistryEnum
```

Zinc chloride

### ZincManganeseDioxide

```
val PowerSourceTrait.BatApprovedChemistryEnum.ZincManganeseDioxide: PowerSourceTrait.BatApprovedChemistryEnum
```

Zinc manganese dioxide

## Public functions

### toDescription

```
@HomeExperimentalGenericApi
fun toDescription(): String
```

### valueOf

```
fun valueOf(value: String): PowerSourceTrait.BatApprovedChemistryEnum
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

```
fun values(): Array<PowerSourceTrait.BatApprovedChemistryEnum>
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

## Public properties

### entries

```
val entries: EnumEntries<PowerSourceTrait.BatApprovedChemistryEnum>
```

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

### traitId

```
open val traitId: String
```

Trait identifier of the Matter Cluster that defines the enum Data Type. Refer to `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterId#traitId()` for the format.

### typeName

```
open val typeName: String
```

Name of the Matter Data Type that the enum belongs to, in UpperCamelCase, e.g. "AlarmCodeEnum" from Door Lock Cluster.

### value

```
open val value: ULong
```

Integer identifier of the enum value per the Matter Application Clusters spec, e.g. 1 for Door Lock Cluster AlarmCodeEnum.LockFactoryReset.