tp1de / ioBroker.ems-esp

EMS-ESP Adapter
MIT License
19 stars 6 forks source link

History DB Issue with KM200 Monthly Recordings #37

Closed Track4123 closed 11 months ago

Track4123 commented 11 months ago

Hi. Initially recording of the consumptions was enabled via an influxdb. For different reasons I want to move to the history adapter. Doing so it works for the hourly and daily items, however, data are not up to date for the the monthly items . Turning back to the influxdb monthly data are Ok. On below, data are not OK anymore since August 2023

image

Any clue? thx!

tp1de commented 11 months ago

Which adapter version?

Track4123 commented 11 months ago

v2.5.1

tp1de commented 11 months ago

And the arrays contain data for the months?

Track4123 commented 11 months ago

as I see it, yes... just switch back to influxdb and data are there und updated... image

Also data in arrays, if it's this what you mean [1013.4,851.1,673.1,497.4,419,1724.3,3022.4,4094.2,3957,4240.1,4175.5,3662.7,1757.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

Track4123 commented 11 months ago

and here image

tp1de commented 11 months ago

My findings so far:

I will try to adjust the coding for history and InfluxDB. Since I can't delete any records for InfluxDB V2, I plan to not support InfluxDB in the future anymore. I strongly recommend to use mySQL / MariaDB.

I will inform, when a new version can be tested. (in a couple of hours)

tp1de commented 11 months ago

I updated the version to 2.5.2 - should be available within ioBroker repo soon - or you install fro Github. Please report if it is working for you as well.

I included warnings within log if InfluxDB V2 is used. I will not support in future versions anymore.

Track4123 commented 11 months ago

after updating it works now, great! I will monitor the next days if any other topic, else I will close . btw, there is no option to get a prediction of the consumption of current year? (based on current cumulated values)?

tp1de commented 11 months ago

btw, there is no option to get a prediction of the consumption of current year? (based on current cumulated values)?

There are last 12 month energy consumption states: last12m for dhw, ch and total. What else?

Track4123 commented 11 months ago

well, it would be good to have an "outlook, prediction, forcast" for the total current year, example, lets say I have consumption till september and I want to predict my consumption till End of December, like a Forecast for 2023, just an idea, else I will see if I can do something with Statistics adapter

Track4123 commented 11 months ago

Hi, me again! Montly recording is working now. As you triggered me on the last 12 month ;-) I see the figures do not add up?Sum of months is 28772 while 29074 are shown in the last 12 month? It triggered me because data where not changing day by day. This is now for the total figure, but subtotals for the CH and DHW behave the same- Still something related to the original problem with the monthly figures on the history adapter? image

tp1de commented 11 months ago

Sum is without actual month

Track4123 commented 11 months ago

ups, Ok!, did the selection with last 12 month in the history adapter, as it includes the actual month, therefore the difference...