commandref_frame.html: add OldReadings documentation (from justme1968, Forum #85406)

git-svn-id: https://svn.fhem.de/fhem/trunk@16355 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-03-09 07:45:43 +00:00
parent 9b2b6dc9dd
commit a98b700065
2 changed files with 43 additions and 1 deletions

View File

@@ -581,7 +581,13 @@ attribute list if you want to know if a device supports these attributes. <br>
of the matched type. If event-on-change-reading is also specified, they are
combined with OR: if one of them is true, the event is generated.
</li>
<p>
<a name="oldreadings"></a>
<li>oldreadings<br>
This attribute takes a comma-separated list of readings. You may use
regular expressions in that list. For each reading in the list FHEM will
internaly store the previous value if the readings value changes. To access
the storead value use the OldReadings.* functions.</li>
<a name="userReadings"></a>
<li>userReadings<br>
@@ -1774,6 +1780,20 @@ The following local attributes are used by a wider range of devices:
<br>
returns the age of the reading in seconds.
</li><br>
<li>
OldReadingsVal(&lt;devicename&gt;,&lt;reading&gt;,
&lt;defaultvalue&gt;)<br>
OldReadingsNum(&lt;devicename&gt;,&lt;reading&gt;,
&lt;defaultvalue&gt;,&lt;round&gt;)<br>
OldReadingsTimestamp(&lt;devicename&gt;,&lt;
reading&gt;,&lt;defaultvalue&gt;)<br>
OldReadingsAge(&lt;devicename&gt;,&lt;reading&gt;,
&lt;defaultvalue&gt;)<br>
similar to the above functions, but used to access the previous values.
see: <a href="#oldreadings">oldreadings</a>
</li><br>
<li>
AttrVal(&lt;devicename&gt;,&lt;attribute&gt;,&lt;defaultvalue&gt;)<br>
Return the attribute of the device