Condition

class Condition : Node


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

Summary

Public functions

open String

Public properties

Expression

The expression that determines whether the condition passes or not.

Duration?

How long the condition lasts.

Inherited properties

From com.google.home.automation.Node
String?

String identifier of this node.

Public functions

toString

open fun toString(): String

Public properties

expression

val expressionExpression

The expression that determines whether the condition passes or not. If the expression evaluates to true, the condition passes, otherwise, it fails and execution stops.

forDuration

val forDurationDuration?

How long the condition lasts. The duration may be as short as one minute or as long as 30 minutes.