I'm not sure if there is a good way to add historical data to HA, and to be honest it doesn't do a great job of handling it's own historical data in my experience.
LTSS into InfluxDB and/or TimescaleDB with Grafana as a frontend seem to be fairly common for long-term historical data.