Hey everyone, I’m diving into the world of data persistence in openHAB and I’m curious to hear your thoughts and experiences. I’ve been using openHAB’s bindings to collect valuable data, which updates every few seconds. I’ve successfully persisted this data into InfluxDB and work with the time series there, which has been great. However, I’ve encountered a challenge when the InfluxDB instance goes offline for any reason—I lose all the changes until the persistence target comes back online.
I’m wondering if there’s a way to configure the persistence setup to cache item states for a configurable duration until the persistence target becomes available again. Once the target is back online, the cached data should be written to it. I’ve tried a workaround by avoiding the persistence plugins and writing data to MQTT, which is then consumed by Telegraf and written to InfluxDB. However, this approach is complicated and introduces other issues. I’d really like to simplify this process and get rid of the workaround.
Has anyone else faced similar challenges or found a solution for caching data during persistence target downtime? I’d love to hear about your experiences and any tips you might have for improving my setup. Thanks in advance for your insights!