graphing (storing and reterving) was the biggest downfall in HA for me. i found i couldn't mix wanting a long term view and short term without it totally killing browsers in GPU draws.
Have a look at Grafana and InfluxDB. Haven't gone down this path myself (yet), but heard multiple people talking about it. The SQlite DB that HA uses OOTB slows the whole system down if you're not running a pretty basic system with few sensors.