Skip to content

Question - Can I reset statistics after bad configuration ? #234

@PerretDavid

Description

@PerretDavid

Hi!

First of all, thank you for creating and maintaining HSEM, it's a really cool integration and has already been very useful!

I recently noticed an issue after running HSEM in read-only mode for a couple of months:

  • I had mistakenly set my house consumption sensor to the "active power" sensor from my Emma, which reports consumption - solar production (so it frequently goes negative when solar production is high).
  • This confused HSEM quite a bit, the estimated battery capacity / time-to-full on the dashboard was constantly showing that the battery would be fully charged in the next ~2 hours… even in the middle of the night with no solar and no grid charging allowed.

I have since corrected it by switching to the proper sensor (emma load power, which only shows house load / consumption).

However, the estimates are still wrong because of all the past negative values that were recorded.

Question:
Is there an easy way to reset / clear the past statistics used by HSEM (e.g. some service call, config option, or command)?
Or do I just need to wait ~14 days (or whatever the statistics window is) for the bad historical data to age out and get overwritten?

Thanks a lot for your help, really appreciate your work on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions