ItemStateConditionConf

ItemStateConditionConf

Condition that wraps a function to determine whether if passes

Extends

Methods

in(…values) → {ItemStateConditionConf}

Description:
  • Checks if item state matches any array of values

Source:
Parameters:
Name Type Attributes Description
values any <repeatable>
Returns:
Type
ItemStateConditionConf

is(value) → {ItemStateConditionConf}

Description:
  • Checks if Item state is equal to given value.

Source:
Parameters:
Name Type Description
value string
Returns:
Type
ItemStateConditionConf

isOff() → {ItemStateConditionConf}

Description:
  • Checks if the Item state is OFF.

Source:
Returns:
Type
ItemStateConditionConf

isOn() → {ItemStateConditionConf}

Description:
  • Checks if the Item state is ON.

Source:
Returns:
Type
ItemStateConditionConf

then(fnopt) → {operations.OperationBuilder}

Source:
Overrides:
Parameters:
Name Type Attributes Description
fn * <optional>

an optional function

Returns:
Type
operations.OperationBuilder