Thanks for this. I havenβt yet installed it #infactyes. Does anyone know a working example for using the import_statistics service? As docs state, I would like to do this: inject historical statistics data into the recorder long-term stats database
Thanks!
I just looked at the code and tbh, this is not going to be easy unless these are new statistics, i.e. adding or preceding existing statistics might be a lot easier via the db with SQL and importing in the db
If not new then you need to align preceding or succeding with the values already there for sum and state, not forgetting short_term stats spook/recorder_import_statistics.py at main Β· frenck/spook (github.com)
Thanks for your time. I wouldnβt mind to introduce new statistics. My use case can be easily explained in the following picture. By the end of February my inside thermometer was going crazy so I replace it with a new one. Now I have to plot two inside thermometers if I want to visualize the long term data. I would like to have just one (no matter if it is a new one). A search in the forum about import statistics led me to this thread, which is hilarious.
FAFAIK, there is nothing (also not via spook) that supports import of statistics or probaly any data
Along the link I sent you can try to construct following the lines that address data()
Tip 1: it remains not supported, no crying to me or Frank or anyone else if you screw up more than intended (I did screw up more in the past )
Tip 2: do it on dev and check it for a few days, I found statistics_short_term bugging a lot