HubAction Object
Constructors
Create a HubAction object. While protocol is optional, it is recommended that it be provided. If it is not specified the system will attempt to determine the protocol to use.
Signature:
HubAction() HubAction(String request) HubAction(String request, Protocol protocol, String dni) HubAction(String request, Protocol protocol, String dni, Map options) HubAction(String request, Protocol protocol) HubAction(String request, Protocol protocol, Map options) HubAction(Map params) HubAction(Map params, String dni) HubAction(Map params, String dni, Map options)
Examples:
//Create and send a Z-Wave message def hubAction = new hubitat.device.HubAction(new hubitat.zwave.commands.basicv1.BasicGet().format(), hubitat.device.Protocol.ZWAVE) sendHubCommand(hubAction)
getAction
Can be used to get the request value of the HubAction.
Signature
String getAction()
getCallbackMethod
Signature:
String getCallbackMethod()
getURI
Signature:
URI getURI()