Issue of the topic: Persistence does not write item values to InfluxDB anymore
Hello,
on the 30th of April I installed an InfluxDB on the Raspberry Pi4 and linked this to OpenHAB.
All the values regarding connections should be okay; at least OpenHAB was writing data (measurements) to the InfluxDB. Persistence strategy is defined as everyUpdate for 4 items.
OpenHAB wrote for roughly 2 weeks the data to the DB. Today I wanted to continue and add more items and I saw that OpenHAB does not wirite data to the DB anymore.
Do you have some hints what I could look for?
I had already a topic in this community on April 30th, and as you can see there. And suddenly it worked.
I’ve set again intentionally to RR4DJ and then back to InfluxDB but it still does not write data.
Thank you!
Wolfgang
In the log files I see that OpenHAB is still writing to RR4DJ, although in the GUI the setting is given to write to the InfluxDB.
And, yeah, it really does write my measured values (temperatures) to the RR4DJ, at least this is what I see in the logs.
So why does it write to RR4DJ although the setting in the GUI is to write to InfluxDB?
What exactly are you setting and where in the UI are you setting it? If you are changing the “default persistence” all that does is tell OH which persistence to use when the specific persistence engine isn’t specified. For example, if you use a persistence action in a rule and don’t pass “influxdb” as one of the arguments abd rrd4j is the default, that call in that rule will use rrd4j.
But this setting has nothing to do with what OH writes to the databases. No matter what the default is, it will write all the states to the database according to the policy set in the persistence config for that database.
If you haven’t configuired rrd4j to not write these Items, it’s going to write them. Again, the default persistence has no influence over what’s written.
Hello Rich,
thank you for spending time on my topic!
Although in the logs it is written, that the data is stored in an rrd4j database the data is also written (again) to my InfluxDB.
I don’t know why the transfer stopped in April after already running a few weeks but now it is running again and I see the measurements in the InfluxDB in the graphs there.
What I did is, that I created a new API token and have put this new token in the credentials of the persistence settings for the InfluxDB.
I will keep an eye on things but for now I will close this topic.
Thank you to the entire OpenHAB community. What you have created with OpenHAB so far is awesome.
Bye
Wolfgang