However, it seems that numbers are not stored properly.
Even though I have set in jdbc.persist:
G_Numbers* : strategy = every5Minutes, everyChange, restoreOnStartup
Numbers are not stored every 5 minutes (for charts).
It used to be working fine with 2.2.
Is this related to a change or a problem of my personal setup.
I was not able to find a hint so far (breaking changes etc.)
Thanks in advance.
I am really desparate about why this is happenning again.
In a rule I constantly check whether a specific number is stored correctly.
rule "Does persistence work?"
when
Time cron "52 0/10 * * * ?"
then
// did persistence store properly the different values into maria_DB?
if(!Presence_Num.updatedSince(now.minusMinutes(30),"jdbc")) {
logInfo("system.rules", "Presence_Num not updated since 30 minutes - is there a problem with persistence?")
sendTelegram("OH_TeleBot", "Presence_Num seit 30 min. nicht aktualisiert.\nPersistence Probleme?")
}
end
However other number items (not all) are stored properly.
It is really weird.
Even a restart of openHAB (either with or without deleting the cache and tmp files) did not help.
You are checking that Presence_Numchanged in the last 30 minutes every 10 minutes. Do people come and go in and out every 10 minutes?
The database will only be updated on a change of value. Not at every update.