InfluxDB migrate data from OpenHAB

Hi there, im currently migrating from openHAB to HomeAssistant. (congratulations to me :smiley: )

i have about 5 years of data in my influxDB from openHAB. Especially my temperature data i will not lose. I have currently no idea how to do it the best way. The only idea i currently have is to configure homeassistant completely new to store data in influxDB and then import the old data with the new name into the new influxDB Bucket. But how?

Or does anyone have a good idea how to do this?

Thanks for help

Hi there, Iโ€™m also in the process of switching from Openhab to HomeAssistant.
I successfully managed to get my Openhab rrd4j database to an Openhab InfluxDB (1.8) with this script:

And I think it could also be used to transfer the Openhab persistence data to HomeAssistant InfluxDB
The script reads the Openhab persistence data via REST and imports the data to InfluxDB. It would have to be adapted so that the ItemName of Openhab and the entity name of HomeAssistant InfluxDB can be different.

Thatโ€™s just an idea. Iโ€™m very new to HomeAssistant and InfluxDB. :slight_smile:

1 Like

Hey thank you! Looks good. I will have a look into it in the next days! Iโ€™m also very new to HomeAssistant :wink: