Statistics es wird kein Event ausgelöst

Begonnen von andi11, 01 Januar 2018, 20:48:04

Vorheriges Thema - Nächstes Thema

andi11

Das Statistics Modul ärgert mich etwas, denn es löst kein Event aus:
Internals:
   DEF        (Stromverbrauch.*|SoftliQ|Heizung)
   DEV_REGEXP (Stromverbrauch.*|SoftliQ|Heizung)
   NAME       STATISTICS_STROMVERBRAUCH
   NR         184
   NTFY_ORDER 10-STATISTICS_STROMVERBRAUCH
   PREFIX     stat
   STATE      Updated stats for: Heizung
   TYPE       statistics
   READINGS:
     2018-01-01 13:50:45   monitoredDevicesHTTPMOD SoftliQ
     2018-01-01 13:50:47   monitoredDevicesKNX Stromverbrauch_Zaehler1,Stromverbrauch_Zaehler2
     2018-01-01 13:50:44   monitoredDevicesLUXTRONIK2 Heizung
     2018-01-01 19:59:55   nextPeriodChangeCalc 2018-01-01 20:59:55
     2018-01-01 20:41:20   state           Updated stats for: Heizung
   fhem:
     modulVersion $Date: 2017-11-19 13:30:39 +0100 (Sun, 19 Nov 2017) $
     nextPeriodChangeTime 1514836795
Attributes:
   DbLogExclude .*
   deltaReadings total,total-get,tarif1-get,tarif2-get
   durationPeriodHour 1
   ignoreDefaultAssignments 1
   minAvgMaxReadings COP


für u.a. dieses Gerät Internals:
   DEF        192.168.10.23 300
   HOST       192.168.10.23
   INTERVAL   300
   LOCAL      0
   NAME       Heizung
   NOTIFYDEV  global
   NR         51
   PORT       8888
   STATE      Waermepumpe steht seit 00:33:17 - Keine Anforderung
   TYPE       LUXTRONIK2
   Helper:
     DBLOG:
       COP:
         logdb:
           TIME       1514835681.04924
           VALUE      2.85
       ambientTemperature:
         logdb:
           TIME       1514835681.04924
           VALUE      5.1
       averageAmbientTemperature:
         logdb:
           TIME       1514835681.04924
           VALUE      4.7
       flowTemperature:
         logdb:
           TIME       1514835681.04924
           VALUE      24.7
       hotWaterTemperature:
         logdb:
           TIME       1514835681.04924
           VALUE      41.1
       hotWaterTemperatureTarget:
         logdb:
           TIME       1514835681.04924
           VALUE      47.5
       returnTemperature:
         logdb:
           TIME       1514835681.04924
           VALUE      24.7
       returnTemperatureHeating:
         logdb:
           TIME       1514835681.04924
           VALUE      24.7
       returnTemperatureHyst:
         logdb:
           TIME       1514835681.04924
           VALUE      2.5
       returnTemperatureSetBack:
         logdb:
           TIME       1514835681.04924
           VALUE      0.0
       returnTemperatureTarget:
         logdb:
           TIME       1514835681.04924
           VALUE      25.5
       statAmbientTempDay:
         logdb:
           TIME       1514835681.04924
           VALUE      Min: 2.1 Avg: 6.1 Max: 7.7
       statAmbientTempMonth:
         logdb:
           TIME       1514835681.04924
           VALUE      Min: 2.1 Avg: 6.1 Max: 7.7
       statAmbientTempYear:
         logdb:
           TIME       1514835681.04924
           VALUE      Min: 2.1 Avg: 6.1 Max: 7.7
       statBoilerGradientCoolDown:
         logdb:
           TIME       1514832375.62247
           VALUE      DT/h: -1.83 DT: -5.2 Dh: 2.84
       statCOPHourLast:
         logdb:
           TIME       1514833195.04773
           VALUE      Min: 2.75 Avg: 2.75 Max: 2.75
       statElectricityHeatPump:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 0.0 Month: 0.000 Year: 0.000
       statElectricityHeating:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 0.0 Month: 0.000 Year: 0.000
       statElectricityHotWater:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 0.0 Month: 0.000 Year: 0.000
       statHeatQHeating:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 13.6 Month: 14 Year: 14
       statHeatQHotWater:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 3.5 Month: 4 Year: 4
       statHeatQTotal:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 17.1 Month: 17 Year: 17
       statHeatQTotalDay:
         logdb:
           TIME       1514835681.04924
           VALUE      17.1
       statHoursHeatPump:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 2.7 Month: 3 Year: 3
       statHoursHeating:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 2.1 Month: 2 Year: 2
       statHoursHotWater:
         logdb:
           TIME       1514835681.04924
           VALUE      Day: 0.6 Month: 1 Year: 1
       statThermalPowerBoiler:
         logdb:
           TIME       1514821559.58197
           VALUE      aT: 4.3 iT: 5.8 tT: 47.5 thP: 6.2 DQ: 3.5 t: 34
       state:
         logdb:
           TIME       1514835681.04924
           VALUE      Waermepumpe steht seit 00:33:17 - Keine Anforderung
   READINGS:
     2018-01-01 20:41:20   2ndHeatSource1  off
     2018-01-01 20:41:20   COP             2.85
     2018-01-01 20:41:20   ambientTemperature 5.1
     2018-01-01 20:41:20   averageAmbientTemperature 4.7
     2018-01-01 20:41:20   bivalentLevel   1
     2018-01-01 20:41:20   compressor1     off
     2018-01-01 20:41:20   counterHeatQHeating 2864.4
     2018-01-01 20:41:20   counterHeatQHotWater 295.5
     2018-01-01 20:41:20   counterHeatQTotal 3159.9
     2018-01-01 20:41:20   counterHoursHeatPump 484.2
     2018-01-01 20:41:20   counterHoursHeating 435.6
     2018-01-01 20:41:20   counterHoursHotWater 48.6
     2018-01-01 20:41:20   delayDeviceTimeCalc -1
     2018-01-01 20:41:20   deviceTimeCalc  2018-01-01 20:41:22
     2018-01-01 20:41:20   durationFetchReadings 0.021
     2018-01-01 20:41:20   firmware        V1.81
     2018-01-01 20:41:20   flowRate        1149
     2018-01-01 20:41:20   flowTemperature 24.7
     2018-01-01 20:41:20   heatPumpElectricalPowerEstimated 0
     2018-01-01 20:41:20   heatSourceDefrostAirEnd 6.0
     2018-01-01 20:41:20   heatSourceDefrostAirThreshold 7.0
     2018-01-01 09:25:22   heatSourceDefrostLast Mode: reverse Time: 05:00 Amb: 7.1 - 7.1 hsIN: 7.6 - 7.6
     2018-01-01 09:15:22   heatSourceDefrostLastTimeout Amb: 7.1 hsIN: 7.8 hsOUT: 5.1
     2018-01-01 20:41:20   heatSourceDefrostTimer 2476
     2018-01-01 20:41:20   heatSourceIN    5.2
     2018-01-01 20:41:20   heatSourceMotor off
     2018-01-01 20:41:20   heatSourceOUT   3.4
     2018-01-01 20:41:20   heatingCurveEndPoint 25.0
     2018-01-01 20:41:20   heatingCurveOffset 22.5
     2018-01-01 20:11:20   heatingCycle    finished
     2018-01-01 20:41:20   heatingLimit    on
     2018-01-01 20:41:20   heatingSystemCircPump on
     2018-01-01 20:41:20   heatingSystemCircPumpVoltage 9
     2018-01-01 20:41:20   hotGasTemperature 25.1
     2018-01-01 20:41:20   hotWaterCircPumpDeaerate off
     2018-01-01 20:41:20   hotWaterCircPumpExtern off
     2018-01-01 20:41:20   hotWaterSwitchingValve off
     2018-01-01 20:41:20   hotWaterTemperature 41.1
     2018-01-01 20:41:20   hotWaterTemperatureTarget 47.5
     2018-01-01 20:41:20   opModeHeating   Automatik
     2018-01-01 20:41:20   opModeHotWater  Automatik
     2018-01-01 20:41:20   opStateHeatPump1 Waermepumpe steht
     2018-01-01 20:41:20   opStateHeatPump2 seit 00:33:17
     2018-01-01 20:41:20   opStateHeatPump3 Keine Anforderung
     2018-01-01 20:41:20   opStateHeating  Abgesenkt 0.0 C
     2018-01-01 20:41:20   opStateHotWater Sperrzeit
     2018-01-01 20:41:20   returnTemperature 24.7
     2018-01-01 20:41:20   returnTemperatureHeating 24.7
     2018-01-01 20:41:20   returnTemperatureHyst 2.5
     2018-01-01 20:41:20   returnTemperatureSetBack 0.0
     2018-01-01 20:41:20   returnTemperatureTarget 25.5
     2018-01-01 20:41:20   statAmbientTempDay Min: 2.1 Avg: 6.1 Max: 7.7
     2018-01-01 00:03:58   statAmbientTempDayLast Min: 4.8 Avg: 6.0 Max: 7.0 (since: 2017-12-31_18:02:50 )
     2018-01-01 20:41:20   statAmbientTempMonth Min: 2.1 Avg: 6.1 Max: 7.7
     2018-01-01 00:03:58   statAmbientTempMonthLast Min: 4.8 Avg: 6.0 Max: 7.0 (since: 2017-12-31_18:02:50 )
     2018-01-01 20:41:20   statAmbientTempYear Min: 2.1 Avg: 6.1 Max: 7.7
     2018-01-01 00:03:58   statAmbientTempYearLast Min: 4.8 Avg: 6.0 Max: 7.0 (since: 2017-12-31_18:02:50 )
     2018-01-01 19:46:15   statBoilerGradientCoolDown DT/h: -1.83 DT: -5.2 Dh: 2.84
     2018-01-01 20:41:20   statCOPDay      Min: 2.50 Avg: 2.84 Max: 3.02 (since: 2018-01-01_12:14:12 )
     2018-01-01 20:41:20   statCOPHour     Min: 2.75 Avg: 2.83 Max: 2.85
     2018-01-01 19:59:55   statCOPHourLast Min: 2.75 Avg: 2.75 Max: 2.75
     2018-01-01 20:41:20   statCOPMonth    Min: 2.50 Avg: 2.84 Max: 3.02 (since: 2018-01-01_12:14:12 )
     2018-01-01 20:41:20   statCOPYear     Min: 2.50 Avg: 2.84 Max: 3.02 (since: 2018-01-01_12:14:12 )
     2018-01-01 20:41:20   statElectricityHeatPump Day: 0.0 Month: 0.000 Year: 0.000
     2018-01-01 00:03:58   statElectricityHeatPumpLast Day: 0.0 Month: 0.000 Year: 0.000 (since: 2017-11-03 )
     2018-01-01 20:41:20   statElectricityHeating Day: 0.0 Month: 0.000 Year: 0.000
     2018-01-01 00:03:58   statElectricityHeatingLast Day: 0.0 Month: 0.000 Year: 0.000 (since: 2017-11-03 )
     2018-01-01 20:41:20   statElectricityHotWater Day: 0.0 Month: 0.000 Year: 0.000
     2018-01-01 00:03:58   statElectricityHotWaterLast Day: 0.0 Month: 0.000 Year: 0.000 (since: 2017-11-03 )
     2018-01-01 20:41:20   statHeatQHeating Day: 13.6 Month: 14 Year: 14
     2018-01-01 00:03:58   statHeatQHeatingLast Day: 4.0 Month: 886 Year: 1531 (since: 2017-11-03 )
     2018-01-01 20:41:20   statHeatQHotWater Day: 3.5 Month: 4 Year: 4
     2018-01-01 00:03:58   statHeatQHotWaterLast Day: 0.0 Month: 120 Year: 214 (since: 2017-11-03 )
     2018-01-01 20:41:20   statHeatQTotal  Day: 17.1 Month: 17 Year: 17
     2018-01-01 20:41:20   statHeatQTotalDay 17.1
     2018-01-01 00:03:58   statHeatQTotalLast Day: 4.0 Month: 1006 Year: 1745 (since: 2017-11-03 )
     2018-01-01 20:41:20   statHoursHeatPump Day: 2.7 Month: 3 Year: 3
     2018-01-01 00:03:58   statHoursHeatPumpLast Day: 0.6 Month: 180 Year: 301 (since: 2017-11-03 )
     2018-01-01 20:41:20   statHoursHeating Day: 2.1 Month: 2 Year: 2
     2018-01-01 00:03:58   statHoursHeatingLast Day: 0.6 Month: 159 Year: 264 (since: 2017-11-03 )
     2018-01-01 20:41:20   statHoursHotWater Day: 0.6 Month: 1 Year: 1
     2018-01-01 00:03:58   statHoursHotWaterLast Day: 0.0 Month: 21 Year: 37 (since: 2017-11-03 )
     2018-01-01 16:45:59   statThermalPowerBoiler aT: 4.3 iT: 5.8 tT: 47.5 thP: 6.2 DQ: 3.5 t: 34
     2018-01-01 11:13:22   statThermalPowerHeating aT: 5.7 iT: 6.4 tT: 25.4 thP: 6.6 DQ: 0.7 t: 6
     2018-01-01 20:41:20   state           Waermepumpe steht seit 00:33:17 - Keine Anforderung
     2018-01-01 20:41:20   thermalPower    0.0
     2018-01-01 20:41:20   thresholdHeatingLimit 17.0
     2018-01-01 20:41:20   thresholdTemperatureSetBack -20.0
     2018-01-01 20:41:20   typeHeatpump    LWC407
     2018-01-01 20:41:20   typeSerial      2706/13-367
   fhem:
     alertFirmware 0
     counterRetry 0
     durationFetchReadingsMax 0.085
     durationFetchReadingsMin 0.016
     heatingPumpLastRun 1514835680.97479
     heatingPumpLastStop 1514829670.26859
     hotWaterLastRun 1514821254.44073
     modulVersion $Date: 2017-12-09 23:29:18 +0100 (Sat, 09 Dec 2017) $
     portDefined 0
     statBoilerCoolDownLastTemp 41.1
     statBoilerCoolDownLastTime 1514835682
     statBoilerCoolDownMax 47.5
     statBoilerCoolDownStartTime 1514822161
     statBoilerCoolDownStep 0
     statBoilerHeatUpHQ 295.5
     statBoilerHeatUpMax 47.0
     statBoilerHeatUpMin 41.1
     statBoilerHeatUpOpHours 175038
     statBoilerHeatUpStep 1
     statThermalPowerOpState_0 1 2864.2 1567971 4.9 5.5 1 25.5 -1
     statThermalPowerOpState_5 1 292 172990 38.5 52.3 9 47.0 -9
     defrost:
       mode       none
   helper:
     _98_statistics STATISTICS_STROMVERBRAUCH
     fetched_calc_values 200
     fetched_parameters 1086
     fetched_visib_attr 336
Attributes:
   DbLogExclude .*
   DbLogInclude .*(statCOPDay|COP|stat|ambientTemperature|averageAmbientTemperature|returnTemperature|flowTemperature|hotWaterTemperature).*
   allowSetParameter 1
   doStatistics 1
   room       Technik_Heizung
   userReadings statHeatQTotalDay {(split ' ',ReadingsVal($name,"statHeatQTotal",0))[1]},
COP {
my $elektr=ReadingsVal("Stromverbrauch_Zaehler2","statTotDay",0);
my $COP=ReadingsVal($name,"COP",0);
if ($elektr>0) {
  $COP=ReadingsVal($name,"statHeatQTotalDay",0)/$elektr;
}
return sprintf("%.2f",$COP);
}


eigentlich sollte beim beschreiben von statCOPDay  doch ein Event erzeugt werden. Allerdings gibt es nur bei statCOPHourLast und beim schreiben von COP ein Event im Eventmonitor (Filter .*COP.*)

andi11

mit einem setreading Heizung statCOPDay Min: 0.70 Avg: 2.57 Max: 3.50
taut das Event im Eventmonitor auf. Hat jemand eine Idee, was ich machen kann?

andi11