devicesSaveAll

The method devicesSaveAll() is called by the server hub to save and create virtual, shadow copies of local devices on this Remote Client.

Function devicesSaveAll
Purpose Creates virtual shadow devices and connects them the remote hub.
Parameters None
URL Format /devices/save
HTTP Method POST - Incoming
HTTP Parameters
Name Type Description
deviceclass String The groupname from the NATIVE_DEVICES driver definition map.  (i.e. "switches", etc.)
devices
List List of device objects to save.
id Integer The ID of the physical device (from the sharing hub).
label String The friendly name given to the device.
attr Object See systemGetVersions for details.

Return JSON
Name Type Return Values
status String "complete" if the drivers were saved successfully, "error" if they did not.

 

  • v2api
  • 10546 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

deviceSendEvent

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

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...

hsmReceiveAlert

The method hsmReceiveAlert() is called by the server hub to pass along a Hubitat Safety Monitor...