getAllModes

The method getAllModes() is called by the server hub to retrieve the current list of system modes on the hub running the Remote Client.  If this remote hub does not support modes, it should return an empty list on this call.

Function getAllModes
Purpose Returns a list of all configured modes on this hub.
Parameters None
URL Format /modes/get
HTTP Method GET - Incoming
HTTP Parameters None
Return JSON
Name Type Return Values
active String Current system mode. (i.e. "home", "away", etc.)
modes
List

List of objects containing the current value of each attribute.

Name Description
id Database ID.
name Name of the mode. (i.e.  "home", "away", etc.)
  • v2api
  • 14016 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

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

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