NEWS
Statistics Adapter zählt Impulse nicht mehr
-
Hallo zusammen,
seit meinem letzten Update auf die Version V2.3.0 zählt mein Gaszähler nicht mehr richtig. Die Werte logge ich seit einem halben Jahr mit dem Statistics Adapter. Die Werte kommen als Impulse. Also müssen diese zusammengezählt werden.
Seit dem Update passiert das nicht mehr. Stattdessen wird immer das Delta berechnet.Kommt also eine 1, dann wird 1 addiert.
Kommt also eine 1, dann passiert nix, weil der Wert gleich ist.
Kommt danach eine 0, dann wird -1 addiert. Mein Wert bleibt also immer auf 0.Man konnte vorher in den Optionen beim bei den Objekten auswählen, dass es sich um Impulse handelt. Diese Option gibt es nicht mehr.
Ist diese Einstellung wirklich verwunden?
Wäre über einen Tipp dankbar.
Zur Zeit rechne ich die Impulse erstmal selber zusammen und übergebe diese dann an den Adapter...
-
Bitte mal ein Debug-Log teilen mit dem entsprechenden Datenpunkt.
@derron sagte in Statistics Adapter zählt Impulse nicht mehr:
Man konnte vorher in den Optionen beim bei den Objekten auswählen, dass es sich um Impulse handelt. Diese Option gibt es nicht mehr.
Welche Version hattest Du denn vorher?
-
2023-04-30 12:43:10.054 - [34mdebug[39m: statistics.0 (28447) [CREATION] ============================== 0_userdata.0.Gaszaehler.GasZaehlerAktuell =============================
2023-04-30 12:43:10.055 - [34mdebug[39m: statistics.0 (28447) [CREATION] setup of object 0_userdata.0.Gaszaehler.GasZaehlerAktuell: {"enabled":true,"count":false,"fiveMin":false,"sumCount":false,"impUnitPerImpulse":1,"impUnit":"","timeCount":false,"avg":true,"minmax":true,"sumDelta":true,"sumIgnoreMinus":false,"groupFactor":1,"logName":"Gas_Zaehler_Aktuell","sumGroup":"GasNeu"}2023-04-30 12:43:48.814 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] ======================= 0_userdata.0.Gaszaehler.GasZaehlerAktuell =======================
2023-04-30 12:43:48.815 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] stateChange => 0.22023-04-30 12:43:48.816 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] schedule onStateChangeSumDeltaValue for 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:43:48.817 - [34mdebug[39m: statistics.0 (28447) [EXECUTING] sum delta 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:43:48.818 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] schedule onStateChangeMinMaxValue for 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:43:48.835 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.15Min on 0 to 0.2
2023-04-30 12:43:48.887 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.hour on 0 to 0.2
2023-04-30 12:43:48.894 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.day on 0 to 0.2
2023-04-30 12:43:48.901 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.week on 0 to 19.8
2023-04-30 12:43:48.909 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.month on 0 to 129.7
2023-04-30 12:43:48.916 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.quarter on 0 to 129.7
2023-04-30 12:43:48.967 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.year on 0 to 831.7
2023-04-30 12:43:48.974 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.15Min on 0 to 0.244
2023-04-30 12:43:48.985 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.hour on 0 to 0.244
2023-04-30 12:43:48.991 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.day on 0 to 0.244
2023-04-30 12:43:48.998 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.week on 0 to 24.156
2023-04-30 12:43:49.005 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.month on 0 to 158.234
2023-04-30 12:43:49.019 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.year on 0 to 1014.674
2023-04-30 12:43:49.067 - [34mdebug[39m: statistics.0 (28447) [EXECUTING] minmax 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:43:49.068 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] new last for "temp.minmax.0_userdata.0.Gaszaehler.GasZaehlerAktuell.last: 0.2
2023-04-30 12:43:49.076 - [34mdebug[39m: statistics.0 (28447) [EXECUTING] avg call 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:43:49.076 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] new last for "temp.avg.0_userdata.0.Gaszaehler.GasZaehlerAktuell.last: 0
2023-04-30 12:45:30.214 - [35msilly[39m: statistics.0 (28447) States user redis pmessage 0_userdata.0.Gaszaehler.GasZaehlerAktuell/0_userdata.0.Gaszaehler.GasZaehlerAktuell:{"val":0,"ack":true,"ts":1682851530204,"q":0,"c":"script.js.HomeMatic.Gaszähler","from":"system.adapter.javascript.0","user":"system.user.admin","lc":1682851530204}
2023-04-30 12:45:30.217 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] ======================= 0_userdata.0.Gaszaehler.GasZaehlerAktuell =======================
2023-04-30 12:45:30.220 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] stateChange => 02023-04-30 12:45:30.221 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] schedule onStateChangeSumDeltaValue for 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:45:30.222 - [34mdebug[39m: statistics.0 (28447) [EXECUTING] sum delta 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:45:30.223 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] schedule onStateChangeMinMaxValue for 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:45:30.261 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.15Min on -0.2 to -0.2
2023-04-30 12:45:30.271 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.hour on -0.2 to 0
2023-04-30 12:45:30.327 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.day on -0.2 to 0
2023-04-30 12:45:30.333 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.week on -0.2 to 19.6
2023-04-30 12:45:30.340 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.month on -0.2 to 129.5
2023-04-30 12:45:30.346 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.quarter on -0.2 to 129.5
2023-04-30 12:45:30.353 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumDelta.0_userdata.0.Gaszaehler.GasZaehlerAktuell.year on -0.2 to 831.5
2023-04-30 12:45:30.359 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.15Min on -0.244 to -0.244
2023-04-30 12:45:30.407 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.hour on -0.244 to 0
2023-04-30 12:45:30.413 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.day on -0.244 to 0
2023-04-30 12:45:30.420 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.week on -0.244 to 23.912
2023-04-30 12:45:30.426 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.month on -0.244 to 157.99
2023-04-30 12:45:30.476 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.quarter on -0.244 to 157.99
2023-04-30 12:45:30.483 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] Increase temp.sumGroup.GasNeu.year on -0.244 to 1014.43
2023-04-30 12:45:30.489 - [34mdebug[39m: statistics.0 (28447) [EXECUTING] minmax 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:45:30.489 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] new last for "temp.minmax.0_userdata.0.Gaszaehler.GasZaehlerAktuell.last: 0
2023-04-30 12:45:30.497 - [34mdebug[39m: statistics.0 (28447) [EXECUTING] avg call 0_userdata.0.Gaszaehler.GasZaehlerAktuell
2023-04-30 12:45:30.497 - [34mdebug[39m: statistics.0 (28447) [STATE CHANGE] new last for "temp.avg.0_userdata.0.Gaszaehler.GasZaehlerAktuell.last: -0.2
Erst werden 0,2 addiert, da der Wert 0,2 ist. Danach kommt eine 0 und die 0,2 werden wieder subtrahiert.
Ich bin mir nicht sicher, aber ich vermute, dass es die Option "sumCount" ist, die jetzt "false" ist. Ich kann sie aber nicht mehr aktivieren?Die Version davor müsste 2.20 gewesen sein. Kann es leider nicht mehr nachvollziehen, da ich viele Adapter upgedatet habe.