From fe3612042c71aae47c37521431f3734890787dd2 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Tue, 12 Jul 2022 05:25:06 +0000 Subject: [PATCH] 98_statistics: update commandref to id format git-svn-id: https://svn.fhem.de/fhem/trunk@26211 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_statistics.pm | 125 +++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 67 deletions(-) diff --git a/fhem/FHEM/98_statistics.pm b/fhem/FHEM/98_statistics.pm index a4cb727fa..bfb9953de 100644 --- a/fhem/FHEM/98_statistics.pm +++ b/fhem/FHEM/98_statistics.pm @@ -1167,13 +1167,15 @@ sub statistics_UpdateDevReading($$$$) 1; +__END__ + =pod =item summary Calculates statistical values and adds them to the devices. =item summary_DE Berechnet statistische Werte und fügt sie dem Gerät hinzu. =item helper =begin html - +
deltaReadings, durationReadings, minAvgMaxReadings, tendencyReadings
.
This allows also to assign a reading to another statistic type.
- define <name> statistics <deviceNameRegExp> [Prefix]
define Statistik statistics Sensor_.*|Wettersensor
@@ -1224,77 +1224,73 @@ sub statistics_UpdateDevReading($$$$)
[Prefix]
resetStatistics <All|DeviceName>
+ resetStatistics <All|DeviceName>
doStatistics
+ doStatistics
dayChangeTime <time>
+ dayChangeTime <time>
deltaReadings <readings>
+ deltaReadings <readings>
durationPeriodHour < 1 | 0 >
+ durationPeriodHour < 1 | 0 >
durationReadings <readings>
+ durationReadings <readings>
excludedReadings <DeviceRegExp:ReadingNameRegExp>
+ excludedReadings <DeviceRegExp:ReadingNameRegExp>
FritzDect:current|Sensor_.*:humidity
- ignoreDefaultAssignments < 0 | 1 >
+ ignoreDefaultAssignments < 0 | 1 >
minAvgMaxReadings <readings>
+ minAvgMaxReadings <readings>
periodChangePreset <seconds>
+ periodChangePreset <seconds>
singularReadings <DeviceRegExp:ReadingRegExp>:statTypes:period
+ singularReadings <DeviceRegExp:ReadingRegExp>:statTypes:period
Badfenster:Window:(Open|Open_Count):Month
specialDeltaPeriods <Device:Reading:Period:count1:count2:...>
+ specialDeltaPeriods <Device:Reading:Period:count1:count2:...>
specialDeltaPeriodHours
+ specialDeltaPeriodHours
tendencyReadings <readings>
+ tendencyReadings <readings>
deltaReadings, durationReadings, minAvgMaxReadings, tendencyReadings
können weitere Gerätewerte hinzugefügt oder einem anderen Statistik-Typ zugeordnet werden.
- deltaReadings, durationReadings, minAvgMaxReadings, tendencyReadings
können weitere Gerätewerte hinzugefügt oder einem anderen Statistik-Typ zugeordnet werden.
- Define
+
+ define <Name> statistics <GeräteNameRegExp> [Prefix]
define Statistik statistics Wettersensor|Badsensor
@@ -1390,57 +1384,54 @@ sub statistics_UpdateDevReading($$$$)
[Prefix]
resetStatistics <All|Gerätename>
+ resetStatistics <All|Gerätename>
doStatistics
dayChangeTime <Zeit>
+ dayChangeTime <Zeit>
deltaReadings <Gerätewerte>
+ deltaReadings <Gerätewerte>
durationPeriodHour < 1 | 0 >
+ durationPeriodHour < 1 | 0 >
durationReadings <Gerätewerte>
+ durationReadings <Gerätewerte>
excludedReadings <GerätenameRegExp:GerätewertRegExp>
+ excludedReadings <GerätenameRegExp:GerätewertRegExp>
FritzDect:current|Sensor_.*:humidity
ignoreDefaultAssignments <0 | 1>
+ ignoreDefaultAssignments <0 | 1>
minAvgMaxReadings <Gerätewerte>
+ minAvgMaxReadings <Gerätewerte>
periodChangePreset <Sekunden>
+ periodChangePreset <Sekunden>
singularReadings <GerätRegExp:GeräteWertRegExp:Statistiktyp:Zeitraum>
+ singularReadings <GerätRegExp:GeräteWertRegExp:Statistiktyp:Zeitraum>
Wettersensor:rain:Delta:(Hour|Day)|FritzDect:power:Delta:Day
specialDeltaPeriods <Gerät:Gerätewert:Zeitraum:Anzahl1:Anzahl2:...>
+ specialDeltaPeriods <Gerät:Gerätewert:Zeitraum:Anzahl1:Anzahl2:...>
specialDeltaPeriodHours
+ specialDeltaPeriodHours
tendencyReadings <Gerätewerte>
+ tendencyReadings <Gerätewerte>