SequentialFlowBuilder

@AutomationDsl
class SequentialFlowBuilder : AutomationFlowBuilder, StarterNodeDsl, ManualStarterNodeDsl, ConditionNodeDsl, StateReaderNodeDsl, ActionNodeDsl, ParallelNodeDsl, SelectNodeDsl, DelayNodeDsl, SuppressionNodeDsl


Type-safe builder that builds a SequentialFlow Node.

Summary

Public constructors

Create a SequentialFlow instance.

Public functions

SequentialFlow

Build a SequentialFlow.

Inherited functions

From com.google.home.automation.ActionNodeDsl
open Unit
action(structure: Structure, block: ActionBuilder.() -> Unit)

Build and add an Action.

open Unit
action(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    block: ActionBuilder.() -> Unit
)

Build and add an Action.

open Unit
action(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    block: ActionBuilder.() -> Unit
)

Build an Action using an UnknownEntity.

From com.google.home.automation.AutomationFlowBuilder
open List<Node>
From com.google.home.automation.AutomationFlowContributor
From com.google.home.automation.ConditionNodeDsl
open Unit
From com.google.home.automation.DelayNodeDsl
open Unit
delayFor(duration: Duration)
From com.google.home.automation.ManualStarterNodeDsl
From com.google.home.automation.ParallelNodeDsl
open Unit
From com.google.home.automation.SelectNodeDsl
open Unit
From com.google.home.automation.StarterNodeDsl
open TypedExpression<T>
<T : Event> starter(structure: Structure, event: EventFactory<T>)

Create a Starter from a Structure and an Event and add it.

open TypedExpression<T>
<T : Trait> starter(structure: Structure, trait: TraitFactory<T>)

Create a Starter from a Structure and a Trait and add it.

open TypedExpression<T>
<T : Event> starter(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    event: EventFactory<T>
)

Create a Starter from a Device and an Event and add it.

open TypedExpression<T>
<T : Trait> starter(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    trait: TraitFactory<T>
)

Create a Starter from a Device and a Trait and add it.

open TypedExpression<T>
<T : Event> starter(
    structure: Structure,
    event: EventFactory<T>,
    block: ParametersBuilder.() -> Unit
)

Create a Starter from a Structure and an Event and add it.

open TypedExpression<T>
<T : Event> starter(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    event: EventFactory<T>
)

Create a Starter from an UnknownEntity and an Event and add it.

open TypedExpression<T>
<T : Trait> starter(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    trait: TraitFactory<T>
)

Create a Starter from an UnknownEntity and a Trait and add it.

open TypedExpression<T>
<T : Event> starter(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    event: EventFactory<T>,
    block: ParametersBuilder.() -> Unit
)

Create a Starter from a Device and a Trait and add it.

From com.google.home.automation.StateReaderNodeDsl
open TypedExpression<T>
<T : Trait> stateReader(structure: Structure, trait: TraitFactory<T>)

Build a StateReader.

open TypedExpression<T>
<T : Trait> stateReader(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    trait: TraitFactory<T>
)

Build a StateReader.

open TypedExpression<T>
<T : Trait> stateReader(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    trait: TraitFactory<T>
)

Build a StateReader using an UnknownEntity.

From com.google.home.automation.SuppressionNodeDsl
open Unit
suppressFor(duration: Duration)

Public constructors

SequentialFlowBuilder

SequentialFlowBuilder(nodes: List<Node> = emptyList())

Create a SequentialFlow instance.

Public functions

build

fun build(): SequentialFlow

Build a SequentialFlow.

Returns
SequentialFlow

A SequentialFlow instance.