Where is the smart plug energy data stored and how long is this retained?

The community responses are a combination of the worst of Facebook & Twitter combined.

If anybody actualy wants the definitive answer, here it is:
The ‘Local Bytes Power Monitoring Smart Plug’ itself only stores:

  • Today
    
  • Yesterday
    
  • Total Counters
    

Data stored on HA is defined on the HA configuration, which by default is 10 days and automatically purged every night at 04:12 local time.
If data needs to be kept longer, then action needs to be taken to set-up a database appropriately.