Devices

<< Click to Display Table of Contents >>

Navigation:  The API > JSON Adminstrator API > Understanding the admin API > Streaming message types >

Devices

Devices

When connecting to the streaming Admin API, the gateway will deliver at first the devices with all their properties and states.  States will come for all the devices that have the flag "TransmitOnConnect" activated.

 

Example for a streaming Admin API starting with the first two devices:

 

{
  "header" : {
    "httpStatus" : 200,
    "content" : "devices",
    "gateway" : "DC-GW/EO-IP v0.99.0b",
    "timestamp" : "2016-05-10T15:11:48.409+0200"
  },
  "devices" : [ {
    "deviceId" : "FFF26803",
    "friendlyId" : "Peha_Ch2",
    "learnInProcedure" : "UTE",
    "eeps" : [ {
      "eep" : "D2-01-08",
      "version" : 1.0,
      "direction" : "both"
    } ],
    "manufacturer" : "Peha",
    "firstSeen" : "2016-05-09T09:27:05.260+0200",
    "lastSeen" : "2016-05-09T16:46:30.822+0200",
    "secured" : false,
    "softSmartAck" : false,
    "transmitModes" : [ {
      "key" : "overcurrentSwitchOff",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    }, {
      "key" : "power",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    }, {
      "key" : "localControl",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    }, {
      "key" : "energy",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    }, {
      "key" : "errorLevel",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    }, {
      "key" : "switch",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    } ],
    "states" : [ {
      "key" : "errorLevel",
      "value" : "notSupported",
      "meaning" : "Error level not supported",
      "timestamp" : "2016-05-09T16:46:30.822+0200",
      "age" : 80717587
    }, {
      "key" : "localControl",
      "value" : "on",
      "meaning" : "Local control enabled",
      "timestamp" : "2016-05-09T16:46:30.822+0200",
      "age" : 80717587
    }, {
      "key" : "overcurrentSwitchOff",
      "value" : "false",
      "meaning" : "Over current switch off: ready / not supported",
      "timestamp" : "2016-05-09T16:46:30.822+0200",
      "age" : 80717587
    }, {
      "key" : "switch",
      "value" : "off",
      "meaning" : "Output value OFF",
      "timestamp" : "2016-05-09T16:46:30.822+0200",
      "age" : 80717587
    } ],
    "operable" : true,
    "supported" : true
  }, {
    "deviceId" : "0195DA34",
    "friendlyId" : "WaterEco",
    "learnInProcedure" : "receivedRps",
    "eeps" : [ {
      "eep" : "F6-05-01",
      "version" : 1.0,
      "direction" : "from"
    } ],
    "firstSeen" : "2016-04-27T16:22:58.802+0200",
    "secured" : false,
    "softSmartAck" : false,
    "transmitModes" : [ {
      "key" : "liquidDetected",
      "transmitOnConnect" : true,
      "transmitOnEvent" : true,
      "transmitOnDuplicate" : true
    } ],
    "states" : [ ],
    "operable" : true,
    "supported" : true
  }, 

 

(...)