remoteDeviceCommand

The method remoteDeviceCommand() is called by the server hub to execute a command on a device that is local to the hub running the Remote Client.

Function remoteDeviceCommand
Purpose Executes a command on a device located on this hub.
Parameters
Name Type Description
params Map (Optional)
URL Format /event/:deviceId/:deviceCommand/:commandParams
HTTP Method GET - Incoming
HTTP Parameters
Name Type Description
deviceId Integer The ID of the physical device (from the sharing hub).
deviceCommand String Name of the command to execute.  (i.e. "on", "off", etc.)
commandParams Map Base64 Encoded Map of Command Parameters.  (i.e. [hue: 154])
Return JSON
Name Type Return Values
status String "success" or "error" on failure.
  • v2api
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

deviceSendEvent

The method deviceSendEvent() is called by the server hub anytime an attribute value changes on...

devicesSaveAll

The method devicesSaveAll() is called by the server hub to save and create virtual, shadow copies...

getAllHSMStates

The method getAllHSMStates() is called by the server hub to retrieve the current list of Hubitat...

getAllModes

The method getAllModes() is called by the server hub to retrieve the current list of system modes...

getDeviceSync

The method getDeviceSync() is called by the server hub to retrieve the current state of all...