[dss-developer] Device-Status abrufen / JSON API / Device / getState und getConsumption

Arn Matthias m.arn at biviator.ch
Wed Feb 8 18:34:12 CET 2012


Hallo zusammen

 

Habe gerade ein ähnliches Problem wie Thomas H.Schmuck (siehe email-archiv vom 03.Jan 2012 http://forum.digitalstrom.org/pipermail/dss-developer/2012-January/000417.html)
 
Momentan arbeite ich an einer Java-Applikation und kommuniziere über das JSON-Interface mit dem dSS11 v1.2.1
Nun benötige ich ein Feedback um meine Applikation mit dem aktuellen Zustand aller Devices zu versorgen.
Meine Frage: Ist es irgendwie möglich den Status eines Devices (z.B. Licht) zu erfragen??? 
Vielen Dank für eure Hilfe.

 

Folgende Resultate erhalte ich: (Licht-Device ist auf 100% eingeschaltet)

 

--> https://192.168.100.41/json/device/getState?dsid=3504175fe00000000000abc

{
  "ok": true,
  "result": {
    "isOn": false
  }
}
 

--> https://192.168.100.41/json/device/getConsumption?dsid=3504175fe00000000000abc

{
  "ok": true,
  "result": {
    "consumption": 0
  }
}
 
 

--> https://192.168.100.41/json/apartment/getStructure

{
        "id": "3504175fe00000000000abc",
        "name": "",
        "functionID": 28752,
        "productRevision": 784,
        "productID": 1224,
        "meterDSID": "3504175fe000001000000xyz",
        "busID": 301,
        "isPresent": true,
        "lastDiscovered": "2012-02-08 16:42:07",
        "firstSeen": "2012-02-01 18:22:00",
        "on": false,
        "locked": false,
        "outputMode": 16,
        "buttonID": 5,
        "buttonActiveGroup": 7,
        "groups": [
        "7"
        ]
}
 
 
 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20120208/3a6067f5/attachment.html>


More information about the dss-developer mailing list