mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 16:46:35 +00:00
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:
parent
af2cadd085
commit
a10b17b503
@ -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(<devicename>,<reading>,
|
||||
<defaultvalue>)<br>
|
||||
OldReadingsNum(<devicename>,<reading>,
|
||||
<defaultvalue>,<round>)<br>
|
||||
OldReadingsTimestamp(<devicename>,<
|
||||
reading>,<defaultvalue>)<br>
|
||||
OldReadingsAge(<devicename>,<reading>,
|
||||
<defaultvalue>)<br>
|
||||
similar to the above functions, but used to access the previous values.
|
||||
see: <a href="#oldreadings">oldreadings</a>
|
||||
</li><br>
|
||||
|
||||
<li>
|
||||
AttrVal(<devicename>,<attribute>,<defaultvalue>)<br>
|
||||
Return the attribute of the device
|
||||
|
@ -593,6 +593,14 @@ Gerät dokumentiert.
|
||||
event-on-change-reading auch spezifiziert ist, dann werden sie mit ODER
|
||||
kombiniert, d.h. wenn einer der beiden Bedingungen wahr ist.
|
||||
</li>
|
||||
|
||||
<a name="oldreadings"></a>
|
||||
<li>oldreadings<br>
|
||||
Dieses Attribut enthält eine durch Kommata getrennte Liste von
|
||||
Readings. regex sind erlaubt. Für jedes Reading aus der Liste
|
||||
speichert FHEM intern den vorherigen Wert wenn sich das Reading
|
||||
ändert. Zum Zugriff auf die Werte gibt es die OldReadings.* Routinen.
|
||||
</li>
|
||||
|
||||
<a name="userReadings"></a>
|
||||
<li>userReadings<br>
|
||||
@ -1919,6 +1927,20 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
|
||||
<br>
|
||||
gibt das Alter des Readings in Sekunden zurück.
|
||||
</li><br>
|
||||
|
||||
<li>
|
||||
OldReadingsVal(<devicename>,<reading>
|
||||
,<defaultvalue>)<br>
|
||||
OldReadingsNum(<devicename>,<reading>,
|
||||
<defaultvalue>,<round>)<br>
|
||||
OldReadingsTimestamp(<devicename>,<reading>
|
||||
,<defaultvalue>)<br>
|
||||
OldReadingsAge(<devicename>,<reading>,<
|
||||
defaultvalue>)<br>
|
||||
analog zu den Routinen oben, aber zum Zugriff auf die vorherigen Werte.
|
||||
siehe: <a href="#oldreadings">oldreadings</a><br>
|
||||
</li><br>
|
||||
|
||||
<li>
|
||||
AttrVal(<devicename>,<attribute>,<defaultvalue>)<br>
|
||||
Gibt das entsprechende Attribut des Gerätes zurück
|
||||
|
Loading…
x
Reference in New Issue
Block a user