Hi @pyrodex!
This addons, in combination with LTSS replaces the SQLLite database entirely.
The SQLLite database is used by the home-assistant recorder, which you can give a connection-string to the TimescaleDB addon.
The recorder records say 3 days of detailed data, that is now going into your SQLLite, but then goes into Porstgres (this addon).
Next to that, you install LTSS (which is literally a beefed-up version of the recorder component) and post it ALSO to a secondary database of this addon.
Now, LTSS does not delete data. So all your detailed data that goes into the recorder, also goes into LTSS.
But⌠Within the timescale-addon, you process that data by means of compression and/or down-sampling (continues aggregates) of this detailed data so you can do fast statistics on it.
Personally, I run this addon for almost 4 years now in my own home setup on a raspberry pi 4. the size of my database is like 53GB, and I have NEVER deleted any data, nor do I have any performance issues. My dashboards are lightning fast, all thanks to TimescaleDb and itâs compresson + aggregate features.
Edit: to answer your question: Yes, there is small overlap with HAâs own Long Term Statistics, but these statistics are accumulated in a different way and are locked into HA. With this addon, you can take data from any source, and combine it with SQL. This is needed if you want to build your own custom dashboards.
Note that since you are replacing SQLLite, ALL of HAâs data is also stored in a postgresql database within the addon. Here youâll see that HAâs Long Term statistics are just tables within my addon:
And here is the documentation of it:
Long- and short-term statistics | Home Assistant Data Science Portal (home-assistant.io)
Oh yeah, use pgLoader to migrate existing data if you like: SQLite to Postgres â pgloader 3.6.9 documentation
All in all: It all works beautifully together complementaring eachother. This is the real power of home-assistant, right here