diff --git a/fhem/FHEM/98_statistics.pm b/fhem/FHEM/98_statistics.pm index f5783147c..a978d7783 100644 --- a/fhem/FHEM/98_statistics.pm +++ b/fhem/FHEM/98_statistics.pm @@ -927,9 +927,9 @@ sub statistics_doStatisticDurationSingle ($$$$$$) if ($singularReadings ne "") { # statistics_storeSingularReadings for Duration # $hashName,$singularReadings,$dev,$statReadingName,$readingName,$statType,$period,$statValue,$value,$saveLast - statistics_storeSingularReadings ($name,$singularReadings,$dev,$statReadingName,$readingName,ucfirst($lastState),$period,$statValue,0,$saveLast); + statistics_storeSingularReadings ($name,$singularReadings,$dev,$statReadingName,$readingName,ucfirst($lastState),$period,0,$statValue,$saveLast); # statistics_storeSingularReadings for Count - statistics_storeSingularReadings ($name,$singularReadings,$dev,$statReadingName."_Count",$readingName,ucfirst($lastState)."_Count",$period,$statCount,0,$saveLast); + statistics_storeSingularReadings ($name,$singularReadings,$dev,$statReadingName."_Count",$readingName,ucfirst($lastState)."_Count",$period,0,$statCount,$saveLast); } # Store hidden reading @@ -1058,7 +1058,7 @@ sub statistics_UpdateDevReading($$$$)
count, energy, energy_total, power, total, rain, rain_rate, rain_total
-
  • Duration of the states over a period of day, month and year: +
  • Duration (and counter) of the states over a period of day, month and year:
    lightsensor, lock, motion, Window, window, state (if no other reading is recognized)

  • @@ -1148,13 +1148,15 @@ sub statistics_UpdateDevReading($$$$)
  • singularReadings <DeviceRegExp:ReadingRegExp>:statTypes:period
    - Regulare expression of statistic values, which shall not be shown in summary but also in singular readings. Eases the creation of plots. + Regulare expression of statistic values, which shall not be shown in summary but also in singular readings. Eases the creation of plots. For duration readings the name of the state has to be used as statTypes.
    - E.g. Wettersensor:rain:Delta:(Hour|Day)|(FritzDect:(current|power):(Avg|Max|Delta):(Hour|Day) + Example: Wettersensor:rain:Delta:(Hour|Day)|(FritzDect:(current|power):(Avg|Max|Delta):(Hour|Day) +
    + Badfenster:Window:(Open|Open_Count):Month

  • specialDeltaPeriodHours <hours> @@ -1190,7 +1192,7 @@ sub statistics_UpdateDevReading($$$$)
  • Delta Differenz zwischen Anfangs- und Endwerte innerhalb eines Zeitraums (Stunde, Tag, Monat, Jahr):
    count, energy, energy_total, power, total, rain, rain_rate, rain_total
  • -
  • Duration Dauer der Zustände (on, off, open, closed ...) innerhalb eines Zeitraums (Tag, Monat, Jahr): +
  • Duration Dauer und Anzahl der Zustände (on, off, open, closed ...) innerhalb eines Zeitraums (Tag, Monat, Jahr):
    lightsensor, lock, motion, Window, window, state (wenn kein anderer Gerätewert gültig)
  • @@ -1283,13 +1285,15 @@ sub statistics_UpdateDevReading($$$$)
  • singularReadings <GeräteNameRegExp:GeräteWertRegExp:Statistiktypen:Zeitraum> Regulärer Ausdruck statistischer Werte, die nicht nur in zusammengefassten sondern auch als einzelne Werte gespeichert werden sollen. - Erleichtert die Erzeugung von Plots und anderer Auswertungen (notify). + Erleichtert die Erzeugung von Plots und anderer Auswertungen (notify). Für "duration"-Gerätewerte muss der Name des jeweiligen Statuswertes als Statistiktyp eingesetzt werden.
    - z.B. Wettersensor:rain:Delta:(Hour|Day)|FritzDect:power:Delta:Day + Beispiel: Wettersensor:rain:Delta:(Hour|Day)|FritzDect:power:Delta:Day +
    + Badfenster:Window:(Open|Open_Count):Month

  • specialDeltaPeriodHours <Stunden>