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