Hallo,
ich habe mal wieder die ein oder andere Minute an meinem fhem zu arbeiten. Also
update durchgeführt. Seitdem taucht folgender Block immer wieder im log auf.
Zitat2014.11.04 07:27:36.547 1: PERL WARNING: Argument "16378d" isn't numeric in numeric lt (<) at /opt/fhem/FHEM/98_statistics.pm line 555.
2014.11.04 07:27:36.547 1: PERL WARNING: Argument "LastValue:" isn't numeric in numeric gt (>) at /opt/fhem/FHEM/98_statistics.pm line 557.
2014.11.04 07:27:36.549 1: PERL WARNING: Argument "00:00:00" isn't numeric in numeric lt (<) at /opt/fhem/FHEM/98_statistics.pm line 555.
2014.11.04 07:27:36.549 1: PERL WARNING: Argument "Sum:" isn't numeric in numeric gt (>) at /opt/fhem/FHEM/98_statistics.pm line 557.
2014.11.04 07:27:36.555 1: PERL WARNING: Use of uninitialized value in subtraction (-) at /opt/fhem/FHEM/98_statistics.pm line 879.
2014.11.04 07:27:36.556 1: PERL WARNING: Use of uninitialized value $lastState in concatenation (.) or string at /opt/fhem/FHEM/98_statistics.pm line 880.
2014.11.04 07:27:36.556 1: PERL WARNING: Use of uninitialized value $lastState in concatenation (.) or string at /opt/fhem/FHEM/98_statistics.pm line 881.
2014.11.04 07:27:36.557 1: PERL WARNING: Use of uninitialized value $hidden{"showDate:"} in numeric eq (==) at /opt/fhem/FHEM/98_statistics.pm line 897.
2014.11.04 07:27:36.558 1: PERL WARNING: Use of uninitialized value $lastState in ucfirst at /opt/fhem/FHEM/98_statistics.pm line 915.
2014.11.04 07:27:36.559 1: PERL WARNING: Use of uninitialized value in subtraction (-) at /opt/fhem/FHEM/98_statistics.pm line 879.
2014.11.04 07:27:36.559 1: PERL WARNING: Use of uninitialized value $lastState in concatenation (.) or string at /opt/fhem/FHEM/98_statistics.pm line 880.
2014.11.04 07:27:36.559 1: PERL WARNING: Use of uninitialized value $lastState in concatenation (.) or string at /opt/fhem/FHEM/98_statistics.pm line 881.
2014.11.04 07:27:36.560 1: PERL WARNING: Use of uninitialized value $hidden{"showDate:"} in numeric eq (==) at /opt/fhem/FHEM/98_statistics.pm line 897.
2014.11.04 07:27:36.561 1: PERL WARNING: Use of uninitialized value $lastState in ucfirst at /opt/fhem/FHEM/98_statistics.pm line 915.
Er wiederholt sich nach ca 5 Minuten. Da ich immer wenn ich an fhem arbeite, das log per
tail anzeigen lasse, kann ich sagen beim letzten Mal waren diese WARNINGS nicht vorhanden.
Bisher kann ich keine negativen Auswirkungen feststellen, ist halt lästig.
Kann jemand dieses Verhalten bestätigen?
ciao walter
siehe auch
http://forum.fhem.de/index.php/topic,28643.0.html (http://forum.fhem.de/index.php/topic,28643.0.html)
da ist was in den internen Werten schief gegangen.
kann ich bitte das Ergebnis sehen von:
attr global showInternalValues 1
list <statisticsDevice>
attr global showInternalValues 0
Hier das Gewünschte:
Internals:
DEF GasZaehler
DEV_REGEXP GasZaehler
NAME GasZaehler_Statistics
NR 2069
NTFY_ORDER 10-GasZaehler_Statistics
PREFIX stat
STATE Updated stats for: GasZaehler
TYPE statistics
CHANGETIME:
Helper:
Dblog:
Updated stats for:
Mydblog:
TIME 1415222442.16171
VALUE GasZaehler
Monitoreddevicescul_em:
Mydblog:
TIME 1415187053.78281
VALUE GasZaehler
Readings:
2014-11-05 22:20:42 .GasZaehler:current LastValue: 0 ShowDate: 2 DecPlaces: 2
2014-11-05 22:20:42 .GasZaehler:currentDay Time: -1.20571688835993e+21 LastTime: 1415222442 LastValue: 0 lastState: 0 Sum: 1415222141 : 1415222442 lastTime: 1415222442 ShowDate: 0
2014-11-05 22:20:42 .GasZaehler:currentMonth lastState: 0 LastValue: 0 LastTime: 1415222442 Time: 301 ShowDate: 1415222141 lastTime: 1415222442 : 1415222442 Sum: 851963638281
2014-11-05 22:20:42 .GasZaehler:currentYear Sum: 49315.61 Time: 4103796 LastValue: 0 LastTime: 1415222442 ShowDate: 1
2014-11-05 22:20:42 .GasZaehler:total LastValue: 308.87 ShowDate: 2 DecPlaces: 2
2014-11-05 12:30:53 monitoredDevicesCUL_EM GasZaehler
2014-11-05 21:59:55 nextPeriodChangeCalc 2014-11-05 22:59:55
2014-11-05 22:20:42 state Updated stats for: GasZaehler
Fhem:
modulVersion 2014-07-06
Attributes:
deltaReadings current
disable 0
durationReadings current
singularReadings GasZaehler:current:Delta:(Hour|Day|Month)
Internals:
DEF StromZaehler
DEV_REGEXP StromZaehler
NAME StromZaehler_Statistics
NR 2070
NTFY_ORDER 10-StromZaehler_Statistics
PREFIX stat
STATE Updated stats for: StromZaehler
TYPE statistics
CHANGETIME:
Helper:
Dblog:
Updated stats for:
Mydblog:
TIME 1415222776.60636
VALUE StromZaehler
Monitoreddevicescul_em:
Mydblog:
TIME 1415187040.9247
VALUE StromZaehler
Readings:
2014-11-05 22:26:16 .StromZaehler:current LastValue: 1.68 ShowDate: 2 DecPlaces: 2
2014-11-05 22:26:16 .StromZaehler:currentDay LastValue: 1.68 lastState: 1.68 Time: 7.38098070825518e+36 LastTime: 1415222776 : 1415222776 lastTime: 1415222776 ShowDate: 1.6 Sum: 1.04457297932451e+46
2014-11-05 22:26:16 .StromZaehler:currentMonth Time: 1415222475 LastTime: 1415222776 LastValue: 1.68 lastState: 1.68 Sum: 6.02857750928361e+20 : 1415222776 lastTime: 1415222776 ShowDate: 1415222476
2014-11-05 22:26:16 .StromZaehler:currentYear Sum: 5856864.96 Time: 4103994 LastValue: 1.68 LastTime: 1415222776 ShowDate: 1
2014-11-05 22:26:16 .StromZaehler:total LastValue: 2235.29333333333 ShowDate: 2 DecPlaces: 11
2014-11-05 12:30:40 monitoredDevicesCUL_EM StromZaehler
2014-11-05 21:59:55 nextPeriodChangeCalc 2014-11-05 22:59:55
2014-11-05 22:26:16 state Updated stats for: StromZaehler
Fhem:
modulVersion 2014-07-06
Attributes:
deltaReadings current
disable 0
durationReadings current
singularReadings StromZaehler:current:Delta:(Hour|Day|Month)
Danke und ciao walter
Die Definition ist seltsam. Entweder current wird als Delta erfasst oder als Duration.
Zudem ist current (eigentlich die Stromstärke) standardmässig schon ein min-max-reading. Der Rest macht also keinen wirklichen Sinn.
Steht alles in der commandRef
Falls die Energiemenge tatsächlich falscher Weise als current ausgegeben wurde, dann würde ich empfehlen, sie in eine UserReading energy zu kopieren und die Attribute zu löschen. Ausserdem müssen die Gerätewerte zurückgesetzt werden.