Readme update and the additions from Martin
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@286 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
108
contrib/JsonList/commandref.html.patch
Normal file
108
contrib/JsonList/commandref.html.patch
Normal file
@@ -0,0 +1,108 @@
|
||||
--- 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>
|
||||
Reference in New Issue
Block a user