MutableAutomation

interface MutableAutomation : Automation


Mutable attributes for an Automation.

Summary

Public properties

SequentialFlow?

The node instances that implement the logic of the automation.

String

The description of the automation.

Boolean

Whether the automation can execute.

String

The name of the automation.

Inherited functions

From com.google.home.automation.Automation
suspend Unit

Execute the automation.

suspend Unit

Stop the automation.

From com.google.home.Updatable
suspend Automation
update(optimisticReturn: (Automation) -> Unit, init: MutableAutomation.() -> Unit)

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
Boolean

Whether the underlying automation data is compatible with the current SDK.

Boolean

Whether the automation is currently running.

Boolean

Indicates whether or not the automation is valid.

Boolean

Whether the automation can be manually executed via the execute() function.

List<ValidationIssue>

List of automation graph compilation validation issues.

From com.google.home.HasId
Id

Opaque ID for the object.

Public properties

automationGraph

var automationGraphSequentialFlow?

The node instances that implement the logic of the automation.

description

var descriptionString

The description of the automation.

isActive

var isActiveBoolean

Whether the automation can execute.

name

var nameString

The name of the automation.