HubMultiAction Object

From Hubitat Documentation
Jump to: navigation, search

Constructors

Create a HubMultiAction object.

Signature:

HubMultiAction()
HubMultiAction(List<String> cmds)
HubMultiAction(List<String> cmds, Protocol protocol)
HubMultiAction(List<String> cmds, Protocol protocol, String deviceNetworkId)


add

Add an additional command to a HubMultiAction object.

Signature:

void add(String cmd)
void add(HubAction hubAction)
void add(List hubActions)
void add(HubMultiAction hubMultiAction)

Parameters:

cmd - a String command to add to the list of commands in this HubMultiAction
hubAction - a HubAction to add to the list of commands in this HubMultiAction
hubActions - a List of HubActions to add to the list of commands in this HubMultiAction
hubMultiAction - a HubMultiAction whose commands will be added to add to the list of commands in this HubMultiAction