Hey there,
I successfully run an OpenHAB2 system with working InfluxDB persistence (and Grafana graphing) thanks to this tutorial.
My problem: Not all Items react on my persistence strategy “everyChange”. My influx.persist file looks like this
Strategies {
everyMinute : "0 * * * * ?"
every5Minutes : "0 0/5 * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
}
Items {
* : strategy = everyChange, everyDay, restoreOnStartup
Temperature*, Humidity* : strategy = every5Minutes
}
First I only wanted to store on everyChange. But some items have not been persisted on change, so I added the every5Minutes strategy.
It is really strange, because e. g. I have two thermostats (Homematic), the one value is being stored on everyChange (and on every5Minutes), the other only on every5Minutes. In my log file, all events are correctly protocolled:
16:07:22.968 [INFO ] [smarthome.event.ItemStateChangedEvent] - Kueche_Wandthermostat_SetTemperature changed from 29.50 to 22.5
16:07:36.354 [INFO ] [smarthome.event.ItemStateChangedEvent] - Buero_Wandthermostat_SetTemperature changed from 19.50 to 16.5
Does anyone have the same problem or any idea what goes wrong here?