ItemTriggerConfig

TriggerBuilder. ItemTriggerConfig

item based trigger

Extends

Methods

to(value) → {TriggerBuilder.ItemTriggerConfig}

Source:

Item to

Parameters:
Name Type Description
value *

this item should be triggered to

Returns:
Type
TriggerBuilder.ItemTriggerConfig

from(value) → {TriggerBuilder.ItemTriggerConfig}

Source:

Item from

Parameters:
Name Type Description
value *

this items should be triggered from

Returns:
Type
TriggerBuilder.ItemTriggerConfig

toOff() → {TriggerBuilder.ItemTriggerConfig}

Source:

item changed to OFF

Returns:
Type
TriggerBuilder.ItemTriggerConfig

toOn() → {TriggerBuilder.ItemTriggerConfig}

Source:

item changed to ON

Returns:
Type
TriggerBuilder.ItemTriggerConfig

receivedCommand() → {TriggerBuilder.ItemTriggerConfig}

Source:

item recieved command

Returns:
Type
TriggerBuilder.ItemTriggerConfig

receivedUpdate() → {TriggerBuilder.ItemTriggerConfig}

Source:

item recieved update

Returns:
Type
TriggerBuilder.ItemTriggerConfig

changed() → {TriggerBuilder.ItemTriggerConfig}

Source:

item changed state

Returns:
Type
TriggerBuilder.ItemTriggerConfig

for(timespan) → {TriggerBuilder.ItemTriggerConfig}

Source:

For timespan

Parameters:
Name Type Description
timespan *
Returns:
Type
TriggerBuilder.ItemTriggerConfig

or() → {TriggerBuilder}

Source:
Overrides:

Add an additional Trigger

Returns:
Type
TriggerBuilder

then(function) → {OperationBuilder}

Source:
Overrides:

Move to the rule operations

Parameters:
Name Type Description
function *

the optional function to execute

Returns:
Type
OperationBuilder

if(function) → {ConditionBuilder}

Source:
Overrides:

Move to the rule condition

Parameters:
Name Type Description
function *

the optional function to execute

Returns:
Type
ConditionBuilder