From 211a417ce97de73ce15b102ac52174e150a9392c Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 9 Mar 2018 07:45:43 +0000 Subject: [PATCH] commandref_frame.html: add OldReadings documentation (from justme1968, Forum #85406) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16355 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- docs/commandref_frame.html | 22 +++++++++++++++++++++- docs/commandref_frame_DE.html | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/docs/commandref_frame.html b/docs/commandref_frame.html index 9f384981a..92d478282 100644 --- a/docs/commandref_frame.html +++ b/docs/commandref_frame.html @@ -581,7 +581,13 @@ attribute list if you want to know if a device supports these attributes.
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. -

+ + +

  • oldreadings
    + 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.
  • userReadings
    @@ -1774,6 +1780,20 @@ The following local attributes are used by a wider range of devices:
    returns the age of the reading in seconds.

  • + +
  • + OldReadingsVal(<devicename>,<reading>, + <defaultvalue>)
    + OldReadingsNum(<devicename>,<reading>, + <defaultvalue>,<round>)
    + OldReadingsTimestamp(<devicename>,< + reading>,<defaultvalue>)
    + OldReadingsAge(<devicename>,<reading>, + <defaultvalue>)
    + similar to the above functions, but used to access the previous values. + see: oldreadings +

  • +
  • AttrVal(<devicename>,<attribute>,<defaultvalue>)
    Return the attribute of the device diff --git a/docs/commandref_frame_DE.html b/docs/commandref_frame_DE.html index 223546e55..8a79aa43b 100644 --- a/docs/commandref_frame_DE.html +++ b/docs/commandref_frame_DE.html @@ -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.
  • + + +
  • oldreadings
    + 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. +
  • userReadings
    @@ -1919,6 +1927,20 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
    gibt das Alter des Readings in Sekunden zurück.

  • + +
  • + OldReadingsVal(<devicename>,<reading> + ,<defaultvalue>)
    + OldReadingsNum(<devicename>,<reading>, + <defaultvalue>,<round>)
    + OldReadingsTimestamp(<devicename>,<reading> + ,<defaultvalue>)
    + OldReadingsAge(<devicename>,<reading>,< + defaultvalue>)
    + analog zu den Routinen oben, aber zum Zugriff auf die vorherigen Werte. + siehe: oldreadings
    +

  • +
  • AttrVal(<devicename>,<attribute>,<defaultvalue>)
    Gibt das entsprechende Attribut des Gerätes zurück