mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 07:19:24 +00:00
bf01617314
git-svn-id: https://svn.fhem.de/fhem/trunk@286 2b470e98-0d58-463d-a4d8-8e2adae1ed80
109 lines
2.9 KiB
Diff
109 lines
2.9 KiB
Diff
--- 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 @@
|
|
<a href="#help">?,help</a>
|
|
<a href="#include">include</a>
|
|
<a href="#inform">inform</a>
|
|
+ <a href="#jsonlist">jsonlist</a>
|
|
<a href="#list">list</a>
|
|
<a href="#modify">modify</a>
|
|
<a href="#quit">quit</a>
|
|
@@ -434,6 +435,97 @@
|
|
<br>
|
|
</ul>
|
|
|
|
+<a name="jsonlist"></a>
|
|
+<h3>jsonlist</h3>
|
|
+<ul>
|
|
+ <code>jsonlist [<devspec>|<typespec>|ROOMS]</code>
|
|
+ <br><br>
|
|
+ Returns an JSON tree of all definitions, all notify settings and all at
|
|
+ entries if no parameter is given.
|
|
+ <br><br>
|
|
+ Example:
|
|
+ <pre><code> FHZ> jsonlist
|
|
+ {
|
|
+ "ResultSet": {
|
|
+ "Results": [
|
|
+ { "_internal__LIST": [
|
|
+ { "_internal_": {
|
|
+ "name": "global",
|
|
+ "state": "<no definition>",
|
|
+ "sets": [ { "VAL": "null" } ],
|
|
+ "attrs": [ { "VAL": "room" },{ "VAL": "comment" },
|
|
+ [...]
|
|
+ ],
|
|
+ "totalResultsAvailable": 86,
|
|
+ "totalResultsReturned": 86
|
|
+ }
|
|
+ }
|
|
+ </code></pre>
|
|
+ If specifying <code><devspec></code>, then a detailed status for
|
|
+ <code><devspec></code> will be displayed, e.g.:
|
|
+ <pre><code> FHZ> 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"
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ </code></pre>
|
|
+ If specifying <code><typespec></code>, then a list with the status for
|
|
+ the defined <code><typespec></code> devices will be displayed, e.g.:
|
|
+ <pre><code> FHZ> 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
|
|
+ }
|
|
+ }
|
|
+ </code></pre>
|
|
+ If specifying <code>ROOMS</code>, then a list with the defined rooms
|
|
+ will be displayed, e.g.:
|
|
+ <pre><code> FHZ> 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
|
|
+ }
|
|
+ }
|
|
+ </code></pre>
|
|
+</ul>
|
|
+
|
|
<a name="list"></a>
|
|
<h3>list</h3>
|
|
<ul>
|