--- commandref.html-orig 2008-12-11 19:37:59.000000000 +0100
+++ commandref.html 2008-12-11 19:15:02.000000000 +0100
@@ -27,6 +27,7 @@
?,help
include
inform
+ jsonlist
list
modify
quit
@@ -434,6 +435,97 @@
+
+
jsonlist [<devspec>|<typespec>|ROOMS]
+ fhem> jsonlist
+ {
+ "ResultSet": {
+ "Results": [
+ { "_internal__LIST": [
+ { "_internal_": {
+ "name": "global",
+ "state": "",
+ "sets": [ { "VAL": "null" } ],
+ "attrs": [ { "VAL": "room" },{ "VAL": "comment" },
+ [...]
+ ],
+ "totalResultsAvailable": 86,
+ "totalResultsReturned": 86
+ }
+ }
+
+ If specifying <devspec>
, then a detailed status for
+ <devspec>
will be displayed, e.g.:
+ fhem> jsonlist lamp1
+ {
+ "ResultSet": {
+ "Results": {
+ "ATTRIBUTES": {
+ "comment": "Light",
+ "room": "Livingroom"
+ },
+ "BTN": "f0",
+ [...]
+ "NAME": "lamp1",
+ "NR": "26",
+ "READINGS": {
+ "state": {
+ "TIME": "2008-12-11 18:11:21",
+ "VAL": "toggle"
+ }
+ },
+ "STATE": "on",
+ "TYPE": "FS20",
+ "XMIT": "0b0b"
+ }
+ }
+ }
+
+ If specifying <typespec>
, then a list with the status for
+ the defined <typespec>
devices will be displayed, e.g.:
+ fhem> jsonlist HMS
+ {
+ "ResultSet": {
+ "Results": [
+ { "NAME": "smokeDetector01", "STATE": "smoke_detect: off" },
+ { "NAME": "smokeDetector02", "STATE": "smoke_detect: off" },
+ { "NAME": "smokeDetector03", "STATE": "smoke_detect: off" }
+ ],
+ "totalResultsAvailable": 3,
+ "totalResultsReturned": 3
+ }
+ }
+
+ If specifying ROOMS
, then a list with the defined rooms
+ will be displayed, e.g.:
+ fhem> jsonlist ROOMS
+ {
+ "ResultSet": {
+ "Results": [
+ { "NAME": "Bathroom" },
+ { "NAME": "Office" },
+ { "NAME": "Diningroom" },
+ { "NAME": "Garden" },
+ { "NAME": "House" },
+ { "NAME": "Bedroom" },
+ { "NAME": "Garage" },
+ { "NAME": "Livingroom" },
+ { "NAME": "hidden" }
+ ],
+ "totalResultsAvailable": 9,
+ "totalResultsReturned": 9
+ }
+ }
+
+
+