# MutableAutomation


```
interface MutableAutomation : Automation
```

<br />

*** ** * ** ***

Mutable attributes for an `Automation`.

## Summary

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/SequentialFlow?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MutableAutomation#automationGraph()` The node instances that implement the logic of the automation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MutableAutomation#description()` The description of the automation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MutableAutomation#isActive()` Whether the automation can execute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MutableAutomation#maxExecutionCount()` The max execution count of the automation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/MutableAutomation#name()` The name of the automation. |

### Inherited functions

From [com.google.home.automation.Automation](https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation) `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#execute()()`

Execute the automation.
`suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#stop()()`

Stop the automation.
From [com.google.home.HasCustomAppData](https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData) `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData#deleteValue(kotlin.String)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`

Deletes the value associated with the given `https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData#deleteValue(kotlin.String)`.
`suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` `https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData#getValue(kotlin.String)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`

Retrieves the value associated with the given `https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData#getValue(kotlin.String)`.
`suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData#updateValue(kotlin.String,kotlin.String)(key: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`

Updates the value associated with the given `https://developers.home.google.com/reference/kotlin/com/google/home/HasCustomAppData#updateValue(kotlin.String,kotlin.String)`.
From [com.google.home.Updatable](https://developers.home.google.com/reference/kotlin/com/google/home/Updatable) `suspend https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation` `https://developers.home.google.com/reference/kotlin/com/google/home/Updatable#update(kotlin.Function1,kotlin.Function1)(optimisticReturn: (https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation) -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html, init: https://developers.home.google.com/reference/kotlin/com/google/home/automation/MutableAutomation.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`

Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state.

### Inherited properties

From [com.google.home.automation.Automation](https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#compatibleWithSdk()`

Whether the underlying automation data is compatible with the current SDK.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#isRunning()`

Whether the automation is currently running.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#isValid()`

Indicates whether or not the automation is valid.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#manuallyExecutable()`

Whether the automation can be manually executed via the execute() function.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/automation/ValidationIssue>` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/Automation#validationIssues()`

List of automation graph compilation validation issues.
From [com.google.home.automation.BaseAutomation](https://developers.home.google.com/reference/kotlin/com/google/home/automation/BaseAutomation) `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AppManagedAutomationConfig?` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/BaseAutomation#appManagedAutomationConfig()`

Configuration for app managed settings-based automations.
`https://developers.home.google.com/reference/kotlin/com/google/home/platform/traits/AutomationSourceMetadata?` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/BaseAutomation#automationSourceMetadata()`

Metadata about the source of the automation.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` `https://developers.home.google.com/reference/kotlin/com/google/home/automation/BaseAutomation#clientFeatureGroup()`

Unique identifier of the client feature group that the automation belongs to.
From [com.google.home.HasId](https://developers.home.google.com/reference/kotlin/com/google/home/HasId) `https://developers.home.google.com/reference/kotlin/com/google/home/Id` `https://developers.home.google.com/reference/kotlin/com/google/home/HasId#id()`

Opaque ID for the object.

## Public properties

### automationGraph

```
var automationGraph: SequentialFlow?
```

The node instances that implement the logic of the automation.

### description

```
var description: String
```

The description of the automation.

### isActive

```
var isActive: Boolean
```

Whether the automation can execute.

### maxExecutionCount

```
var maxExecutionCount: Int?
```

The max execution count of the automation.

This field is only applicable to ephemeral automations.

### name

```
var name: String
```

The name of the automation.