Node

sealed class Node

Known direct subclasses
Action

Represents a command that the automation can issue, such as turning on a device, or a change to the value of a trait attribute, such as increasing a temperature threshold.

Condition

A logical state that controls whether an automation that has been triggered by a Starter or StateReader" should continue or stop executing.

Delay

A Node that provides the ability to pause for a specified amount of time.

ManualStarter

A starter that allows the user to manually activate an automation.

ParallelFlow

A set of one or more Automation nodes that execute in parallel.

SelectFlow

A Node that, when it contains more than one Node, allows only one Node to execute.

SequentialFlow

A set of one or more Automation nodes that execute sequentially.

Starter

Defines the initial triggers that activate an automation, such as a change to a trait.

StateReader

A class that accesses a trait's state.

Suppression

Terminates execution of all the following nodes if the automation is triggered again within the specified time range.

UnknownNode

An unknown node type converted from ADM proto.


An Automation node.

Summary

Protected constructors

Node(nodeId: String?)

Public functions

open String

Public properties

String?

String identifier of this node.

Protected constructors

Node

protected Node()

Node

protected Node(nodeId: String?)

Public functions

toString

open fun toString(): String

Public properties

nodeId

val nodeIdString?

String identifier of this node. Must be unique within a single automation graph.