SendCommandOrUpdateOperation

OperationBuilder. SendCommandOrUpdateOperation

Sends a command or update to an item

Extends

Methods

toItems(itemsOrNames) → {OperationBuilder.SendCommandOrUpdateOperation}

Source:

Send command to multiple items

Parameters:
Name Type Description
itemsOrNames Array.<items.Item> | Array.<String>

the items to send a command to

Returns:

this

Type
OperationBuilder.SendCommandOrUpdateOperation

toItem(itemOrName) → {OperationBuilder.SendCommandOrUpdateOperation}

Source:

Send command to an item

Parameters:
Name Type Description
itemOrName items.Item | String

the item to send a command to

Returns:

this

Type
OperationBuilder.SendCommandOrUpdateOperation

and(next) → {OperationBuilder.SendCommandOrUpdateOperation}

Source:

Send another command

Parameters:
Name Type Description
next *
Returns:

this

Type
OperationBuilder.SendCommandOrUpdateOperation

inGroup(group) → {OperationBuilder}

Source:
Overrides:

Specify the rule group for this rule

Parameters:
Name Type Description
group string

the group this rule belongs to.

Returns:

this

Type
OperationBuilder

build(nameopt, descriptionopt, tagsopt, idopt)

Source:
Overrides:

Build this rule

Parameters:
Name Type Attributes Description
name string <optional>

of the rule

description string <optional>

of the rule

tags Array.<String> <optional>

of the rule

id string <optional>

of the rule