Both groups receive frequent updates, and their current value shows up in the basicui. However, even after cache cleaning and reboot, IndoorTemperature does not get written to influxdb. An
log:set TRACE org.openhab.persistence.influxdb
lets me see storing of E5AveragePriceLocal, but nothing whatsoever about IndoorTemperature - no warnings, no errors, nothing.
I’m quite puzzled as to why IndoorTemperature does not get persisted, but another group does. Any ideas?
Thanks, these were really good ideas that I tried out:
Putting it all groups in one line didn’t change anything (I even re-typed the whole influxdb.persist, to exclude weird characters, as a possibility)
Same with changing group members to Number:Temperature (and back)
The temperatures haven’t been NULL or UNDEF for the past 14 days (according to the database)
However, I suddenly remembered that E5AveragePriceLocal was a normal, persistent item, a long time ago, that I updated via a rule, according to some calculations. I only changed it to a group a few days later. That’s the only difference. Could that be an issue? I wonder why it still gets updated.
I wouldn’t rely on the database to confirm whether or not an Item is NULL or UNDEF. There is a lot of stuff between the Item and the database. And NULL and UNDEF don’t get saved to the database. Look at the Item on your sitemap, or through the REST API or the Karaf console to confirm it’s current state.
There are sometimes cases where the Group’s aggregation function fails when one or more of the members are NULL or UNDEF.
If you confirm that the Items are not NULL and the Group’s state is updating/changing all I can offer is to have you file an issue on github. I’ve no other ideas.
If you recycle an Item name that was previously persisted, the persistence service does not have the wit to go and delete old db table and make new table for a different kind of Item.