This script transfers historical data from a Home Assistant SQLite database to InfluxDB. It retrieves the earliest records from the InfluxDB bucket and extracts the states, attributes, and friendly ...