[SOLVED] Influxdb miss some values, I have no clue why!

I really don’t understand, I have influxdb.cfg

Strategies {
  default = everyUpdate

Items {
  gHistory* : strategy = everyChange, restoreOnStartup

And I tag the items I want to be send to influxdb. The problem is some of them does not appears as well when I see the event in openhab.

I will take an example of this item:

Group:Number:AVG gKitchen_CurrentTemperature "Température Cuisine [%.1f °C]" (gHistory)
Number:Temperature Kitchen_CurrentTemperature1 "Température Cuisine 1 [%.1f °C]" <temperature> (gHistory, gKitchen_CurrentTemperature) {mqtt="<[NAS:mygateway1-out/0/1/1/0/0:state:default]", expire="2h"}
Number:Temperature Kitchen_CurrentTemperature2 "Température Cuisine 2 [%.1f °C]" <temperature> (gHistory, gKitchen_CurrentTemperature) {channel="mihome:sensor_weather_v1:7811dce13512:158d000247d1f9:temperature", expire="2h"}

In the log I see:

10:04:20.821 [INFO ] [home.event.GroupItemStateChangedEvent] - gKitchen_CurrentTemperature changed from 21.1899995803833 to 21.2399995803833 through Kitchen_CurrentTemperature1
10:04:20.858 [INFO ] [smarthome.event.ItemStateChangedEvent] - Kitchen_CurrentTemperature1 changed from 21.0 ℃ to 21.1 ℃

But no update in influxdb either anything sent according to the log. For information I see other debug message like:

10:04:20.802 [DEBUG] [b.internal.InfluxDBPersistenceService] - got OnOffType value 0

I use:

106 │ Active   │  80 │ 0.10.0.oh230           │ Eclipse SmartHome Core Persistence
131 │ Active   │  80 │ 0.10.0.oh230           │ Eclipse SmartHome Persistence Model
132 │ Active   │  80 │ 0.10.0.oh230           │ Eclipse SmartHome Persistence Model IDE
133 │ Active   │  80 │ 0.10.0.oh230           │ Eclipse SmartHome Persistence Runtime
248 │ Active   │  80 │ 1.12.0                 │ openHAB InfluxDB Persistence bundle

I ask for your help because I want to be able to collect and use my heating data…

Thanks for your time.

One detail is this one is working properly:

Number Livingroom_CurrentTemperature "Température Salon [%.1f °C]" <temperature> (gHistory) { channel="mihome:sensor_weather_v1:7811dce13512:158d0002480274:temperature", expire="2h" }

Did you restart/reboopt openhab?
Sometimes the changes to the *.persist-files do not get activated withoit a restart.


I will let run and see but you are right I am stupid, it looks like working after restart.

I just missed some work to make restart less painful (default value for some virtual, and sometimes some bindings have issue to re-init). For this reason, when the system works I try to avoid a re-start.


I had the same problem.
After using mapDB for restoreOnStartup things went much smoother during restarts.

I used rrd before, but that could not save/restore Strings and Switches.

1 Like