# MicrowaveOvenControl

# MicrowaveOvenControl


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface MicrowaveOvenControl : MicrowaveOvenControlTrait.Attributes, MatterTrait, MicrowaveOvenControlCommands
```

<br />

*** ** * ** ***

API for the MicrowaveOvenControl trait. This trait defines an interface for controlling a microwave oven device.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl.Attribute : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this trait's attributes. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl#supports(com.google.home.matter.standard.MicrowaveOvenControl.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl#supports(com.google.home.matter.standard.MicrowaveOvenControl.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl.Command)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControl#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.MicrowaveOvenControlCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands#addMoreTime(kotlin.UInt)(timeToAdd: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Add more time to the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#cookTime()` attribute of the server. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands#addMoreTimeBatchable(kotlin.UInt)(timeToAdd: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands#addMoreTime(kotlin.UInt)` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands#setCookingParameters(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Sets the cooking parameters associated with the operation of the device. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands#setCookingParametersBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlCommands#setCookingParameters(kotlin.Function1)` command. | |
| From [com.google.home.matter.standard.MicrowaveOvenControlTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes) |---|---| | `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#getDescriptor()()` Returns the descriptor for the struct. | | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/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/MicrowaveOvenControlTrait.Attributes#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. | |
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.MicrowaveOvenControlTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#cookTime()` The total cook time associated with the operation of the device. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#maxCookTime()` The maximum value to which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#cookTime()` attribute can be set. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#maxPower()` The maximum power level that can be set. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#minPower()` The minimum power level that can be set. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#powerSetting()` The power level associated with the operation of the device. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#powerStep()` The increment of power that can be set. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#selectedWattIndex()` The index of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#supportedWatts()` of the currently selected power setting. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#supportedWatts()` The list of supported power levels, in watts. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#wattRating()` The power rating of the device, in watts. | |
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### supports

```
fun supports(attribute: MicrowaveOvenControl.Attribute): Boolean
```

### supports

```
fun supports(command: MicrowaveOvenControl.Command): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<MicrowaveOvenControl>
```