#Years of data lost

1 messages · Page 1 of 1 (latest)

echo adder
#

Hi, only last 6-7 rolling days shows contantly in the enery dash board. Can't figure out what's going on.

solid umbra
#

Any issues in dev tools -> statistics?

#

Did you make any backups?

echo adder
#

Look like all devices only have a week history. I think I did something with recorder few months ago since my dB was about 15gb. Did not realized the energy was affected, I thought long therm statistics was something else. Can't find any recorder in configuration.yaml, could that be the reason?

solid umbra
#

Did you delete the database?

echo adder
#

No, but it got smaller at that time.

solid umbra
#

long term statistics (energy data) are not affected by the recorder

echo adder
#

I noticed it now when I tried to compared to last year.

solid umbra
#

it's in the same database but its a different table

echo adder
solid umbra
#

did you check dev tools -> statistics?

echo adder
#

Looks like it related to corupted database.
I have multiple files lite these.
home-assistant_v2.db.corrupt.2024-11-20T03:13:09.888273+00:00

solemn willow
#

Yeah that would do that. If the db can't be loaded it creates an empty new one (and renames old to .corrupt)

echo adder
#

I will try to do a .recover with sqlite and see if I can extract the old history.

#

The problem is I can't copy the home-assistant_v2.db.corrupt.2024-11-20T03:13:09.888273+00:00 file, not sure if it's possible to install sqlite in HA OS with SSH/Terminal?

solemn willow
#

Why can't it be copied?

echo adder
#

Not with Samba but I managed to rename it in SSH and transwer it now.

#

I guess the table name is statistics what I need, found data back to 2021