simont77 / fakegato-history

Module to emulate Elgato Eve history
MIT License
166 stars 17 forks source link

Merge with old history (partially) failed. #96

Open kimme1024 opened 4 years ago

kimme1024 commented 4 years ago

As I screwed up before with my homebridge instances I had to start from scratch. However I made a backup of my json files on my old instance which included 3 history files from temperature and humidity sensors. After I reinstalled everything I copied the old json files over the newly created ones but only 1 of the 3 took over the history. The other ones didn't.

Any ideas of where I should start to look for a solution?

Thanks in advance!

simont77 commented 4 years ago

Do you mean the persisted files? You should copy the old one in the correct position BEFORE starting homebridge, and most probably you have also to reset the history in Eve by deleting it and force quitting Eve.

kimme1024 commented 4 years ago

Hi,

I tried stopping hb-service, removing the history files, recopy from the old directory and restarting hb-service. Sadly the history is only working for the bathroom, not the bedroom and fitness... It's very weird!

simont77 commented 4 years ago

Have you also deleted the history from Eve?

kimme1024 commented 4 years ago

I've been looking around in Eve for that but didn't find where I could do that... Might have missed it...

simont77 commented 4 years ago

You have to go under the Measurement detail, where you can see each entry and then delete all of them.

kimme1024 commented 4 years ago

Hi,

I did the following:

stopped hb-service removed history from server removed measurements from eve app force quit eve app copied history started hb-service opened eve app and gave it time to load the history. Now the history is even more limited, all sensors go back to 17th of august while the history files contain data for about 2 years.

Long story short, it became worse now :)

Any ideas?

simont77 commented 4 years ago

Are you sure that the history file persisted on homebridge goes back two years? The default length is about 1 month, that is what you are seeing. Maybe it was the history inside Eve that was 2 years long, but once it get messed I found that the only way to solve is to delete it.

kimme1024 commented 4 years ago

Oh that's a bummer :( I really liked the fact that it had a long history, should have deleted it then :/

simont77 commented 4 years ago

You can try to increase the history persisted by fakegato if you want, but I don't know which is the limit supported by the protocol. The real Elgato accessories have an history of about 2-3 weeks.