Please excuse my curiosity, but what are the reasons why you want to switch from a PostgresDB to SQLite?
Postgres is much more flexible and powerful. Or are you concerned with resource consumption?
thanks you very much I will try that this weekend and hope to minimine downtime / lost data
the reason is that I followed a tutorial to use postgress but i’m no expert. so It would be better for me to have the default. Other thing is that opening developertools > states is maybe a bit slow. I want to test how performance are with sqllite.
I tried it but no succes yet.
Error executing query: (sqlite3.DatabaseError) database disk image is malformed [SQL: SELECT statistics_meta.id, statistics_meta.statistic_id, statistics_meta.source, statistics_meta.unit_of_measurement, statistics_meta.has_mean, statistics_meta.has_sum, statistics_meta.name FROM statistics_meta] (Background on this error at: Error Messages — SQLAlchemy 2.0 Documentation)
cliked on Import data on the followind tables (in that exact order):
statistics_meta
statistics
statistics_runs
statistics_short_term
Select the already opened tables in postgress as sources tables for the import.
alle data is copied from postgress to the local sqllite.db
I moved the db to the config folder op Home Assistant and restarted.
All seems to be succesfully.