# OnOffTrait

# OnOffTrait


```
@Generated(value = ["GoogleHomePlatformCodegen"])
object OnOffTrait
```

<br />

*** ** * ** ***

Attributes for OnOffTrait.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/javax/annotation/processing/Generated(value = ["GoogleHomePlatformCodegen"]) interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` Attributes for the OnOff cluster. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.DelayedAllOffEffectVariantEnum : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterEnum` Delayed fading effects for lighting. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.DyingLightEffectVariantEnum : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterEnum` Dying effects for lighting. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.EffectIdentifierEnum : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterEnum` Fading effect types for use with lighting. |
| `data class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Feature` OnOff cluster FeatureMap. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OffCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Turn off the device, and set the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#onOff()` attribute to false. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OffCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the Off command. |
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OffCommand.Request.CommandFields : 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 command's request fields. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OffWithEffectCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Allow devices to be turned off using enhanced ways of fading. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OffWithEffectCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the OffWithEffect command. |
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OffWithEffectCommand.Request.CommandFields : 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 command's request fields. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Turn on the device, and set the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#onOff()` attribute to true. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the On command. |
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnCommand.Request.CommandFields : 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 command's request fields. |
| `data class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnOffControlBitmap` Flags for cluster control. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithRecallGlobalSceneCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Allow the recall of the settings (global scene) the device had when the device was turned off. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithRecallGlobalSceneCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the OnWithRecallGlobalScene command. |
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithRecallGlobalSceneCommand.Request.CommandFields : 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 command's request fields. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithTimedOffCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` Allow the device to be turned on for a specific duration with a guarded off duration so that, should the device be subsequently turned off, further `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithTimedOffCommand.Request` commands received during this time are prevented from turning the devices back on. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithTimedOffCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the OnWithTimedOff command. |
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithTimedOffCommand.Request.CommandFields : 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 command's request fields. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.StartUpOnOffEnum : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterEnum` Startup behaviors for a device. |
| `object https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.ToggleCommand : https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor` If the device is off, turn the device on and set the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#onOff()` attribute to `true`. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.ToggleCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the Toggle command. |
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.ToggleCommand.Request.CommandFields : 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 command's request fields. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/ClusterId` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait#Id()` |

## Public properties

### Id

```
val Id: ClusterId
```