# OnOffTrait.OnWithRecallGlobalSceneCommand

# OnOffTrait.OnWithRecallGlobalSceneCommand


```
object OnOffTrait.OnWithRecallGlobalSceneCommand : CommandDescriptor
```

<br />

*** ** * ** ***

Allow the recall of the settings (global scene) the device had when the device was turned off.

This command is ignored if the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#globalSceneControl()` attribute is true.

If the `globalSceneControl` attribute is false, the global scene is recalled, the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#onOff()` attribute is updated accordingly, and the `globalSceneControl` attribute is set to true.

When this command is called, if the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#onTime()` attribute is 0, then the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Attributes#offWaitTime()` attribute is also set to 0.

| See also |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffCommands#onWithRecallGlobalScene()` | Use this command from the `trait(OnOff)` method. |

## Summary

| ### Nested types |
|---|
| `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. |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithRecallGlobalSceneCommand#commandId()` Unique id corresponding to the command. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithRecallGlobalSceneCommand#commandName()` Human-friendly name of the command. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-nothing/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.OnWithRecallGlobalSceneCommand#responseId()` Optional (for Matter only) ScopedCommandId corresponding to the command response (if any). |

| ### Inherited functions |
|---|
| From [com.google.home.CommandDescriptor](https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor) |---|---| | `open https://developers.home.google.com/reference/kotlin/com/google/home/Field?` | `https://developers.home.google.com/reference/kotlin/com/google/home/CommandDescriptor#getCommandRequestFieldByName(kotlin.String)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` | |

## Public properties

### commandId

```
open val commandId: String
```

Unique id corresponding to the command.

### commandName

```
open val commandName: String
```

Human-friendly name of the command.

### responseId

```
open val responseId: Nothing?
```

Optional (for Matter only) ScopedCommandId corresponding to the command response (if any).