# OvenCavityOperationalState


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface OvenCavityOperationalState : OvenCavityOperationalStateTrait.Attributes, MatterTrait, OvenCavityOperationalStateCommands
```

<br />

*** ** * ** ***

API for the OvenCavityOperationalState trait. This trait provides an interface for monitoring the operational state of an oven.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.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/OvenCavityOperationalState.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.OperationCompletionEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.OperationCompletion` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.OperationCompletionEvent.EventFields : 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 event's fields. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.OperationalErrorEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.OperationalError` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.OperationalErrorEvent.EventFields : 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 event's fields. |

| ### 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/OvenCavityOperationalState#supports(com.google.home.matter.standard.OvenCavityOperationalState.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState#supports(com.google.home.matter.standard.OvenCavityOperationalState.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState.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/OvenCavityOperationalState>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalState#factory()` |

### Inherited functions

From [com.google.home.matter.standard.OvenCavityOperationalStateCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands) `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.StartCommand.Response` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands#start()()`

Start the oven if it is in a state where it can be started.
`https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.StartCommand.Response>` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands#startBatchable()()`

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands#start()` command.
`suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.StopCommand.Response` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands#stop()()`

Stop the oven if possible, based on the current operation underway.
`https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.StopCommand.Response>` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands#stopBatchable()()`

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateCommands#stop()` command.
From [com.google.home.matter.standard.OvenCavityOperationalStateTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.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.OvenCavityOperationalStateTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.Attributes#countdownTime()`

The estimated time, in seconds, before the operation completes.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.Attributes#currentPhase()`

The current phase of operation being performed by the oven.
`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.Feature` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.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/OvenCavityOperationalStateTrait.Attributes#generatedCommandList()`

A list of server-generated commands (server to client) which are supported by this cluster server instance.
`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.ErrorStateStruct?` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.Attributes#operationalError()`

The details of any current error condition being experienced by the oven when the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.Attributes#operationalState()` attribute is `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OperationalStateTrait.OperationalStateEnum#Error`.
`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.OperationalStateEnum?` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.Attributes#operationalState()`

The current operational state of the oven.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.OperationalStateStruct>?` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.Attributes#operationalStateList()`

The set of possible operational states that the oven exposes.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>?` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OvenCavityOperationalStateTrait.Attributes#phaseList()`

The set of phases that the oven can go through for the selected function or mode.
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: OvenCavityOperationalState.Attribute): Boolean
```

### supports

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

## Public properties

### factory

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