Using openHAB 3.4.0 in docker running on Ubuntu.
Installed influxdb and grafana in their own docker containers. Started the journey of persisting my outside temperature. After a while I wanted to persist the temperature every 5 minute instead of everyChange.
Read about cron and updated the influxdb.persist file (in my case located /opt/openhab/conf/persistence/).
Strategies {
everyFive : “0 */5 * * * ?”
default : everyChange
}
Items {
Temperature3LUMIAQARA_Temperature : strategy = everyFive
ZWaveNode014FGWP101MeteredWallPlugSwitch_Switch : strategy = everyUpdate
ZWaveNode008FGD212Dimmer2Koksskapen_Electricmeterwatts1 : strategy = everyUpdate
SMHIWeatherForecast_MinWindSpeed : strategy = everyFive
}
Looking in “data explorer” within influxdb or in my grafana-dashboard. It does not persist the temperature every 5 minutes. Instead it continues to persist everyChange or everyUpdate of the temperature.
I have changed the cron-statement many times to try if that was the case, using FreeFormatter cron-expression online.
May this be because of some collision between UI settings and using .persist file ? I have chosen the default persistence service in UI. Did also try to add metadata at one time like the documentation of influxdb addon suggested. I have though deleted it via the developer tools which was a bit of a mess…