# ValveConfigurationAndControlTrait.ValveStateChanged

# ValveConfigurationAndControlTrait.ValveStateChanged


```
interface ValveConfigurationAndControlTrait.ValveStateChanged : ClusterStruct
```

<br />

Known direct subclasses [ValveConfigurationAndControl.ValveStateChangedEvent](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControl.ValveStateChangedEvent)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControl.ValveStateChangedEvent` |   |

*** ** * ** ***

The valve state changed.

## Summary

| ### Public functions |
|---|---|
| `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/ValveConfigurationAndControlTrait.ValveStateChanged#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/ValveConfigurationAndControlTrait.ValveStateChanged#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. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.ValveStateChanged#valveLevel()` The new level of the valve. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.ValveStateEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ValveConfigurationAndControlTrait.ValveStateChanged#valveState()` The new state of the valve. |

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### valveLevel

```
val valveLevel: UByte?
```

The new level of the valve.

### valveState

```
val valveState: ValveConfigurationAndControlTrait.ValveStateEnum?
```

The new state of the valve.