diff --git a/fhem/FHEM/98_statistics.pm b/fhem/FHEM/98_statistics.pm index 379916ff7..0db9d88c2 100644 --- a/fhem/FHEM/98_statistics.pm +++ b/fhem/FHEM/98_statistics.pm @@ -417,7 +417,7 @@ statistics_DoStatistics($$$) } if ($statisticDone != 1) { - if (exists ($dev->{READINGS}{state})) { + if ( exists ($dev->{READINGS}{state}) && $dev->{READINGS}{state}{VAL} ne "defined" ) { statistics_doStatisticDuration $hash, $dev, "state", $periodSwitch; $statisticDone = 1; } @@ -862,15 +862,14 @@ statistics_FormatDuration($)
Beispiel: define Statistik statistics Sensor_.*|Wettersensor
  +
  • <DeviceNameRegExp> +
    + Regular expression of device names. !!! Not the device readings !!! +

  • [Prefix]
    Optional. Prefix set is place before statistical data. Default is stat

  • -
  • <DeviceNameRegExp> -
    - Regular expression of device names. !!! Not the device readings !!! -
    -

  • @@ -950,11 +949,11 @@ statistics_FormatDuration($)