Forecast does not work anymore since OH5

Hello,

After the migration to OH5, and having read around here about the changes done to this area, I went to the persistence settings for both rrd4j and influxDb as those are the ones installed on my system.

For influxDb, I used MainUI to create this:

configs:
  - items:
      - weather_forecast*
    strategies:
      - forecast
    filters: []
  - items:
      - "*"
      - "!weather_forecast*"
    strategies:
      - everyChange
    filters: []
aliases: {}
cronStrategies:
  - cronExpression: 0 * * ? * *
    name: everyMinute
  - cronExpression: 0 0 * * * ?
    name: everyHour
  - cronExpression: 0 0 0 * * ?
    name: everyDay
equalsFilters: []
timeFilters: []
thresholdFilters: []
includeFilters: []

and rrd4j has this:

configs:
  - items:
      - AlarmActivated
    strategies:
      - everyChange
    filters: []
aliases: {}
cronStrategies:
  - cronExpression: 0 * * * * ?
    name: everyMinute
  - cronExpression: 0 0 * * * ?
    name: everyHour
  - cronExpression: 0 0 0 * * ?
    name: everyDay
equalsFilters: []
timeFilters: []
thresholdFilters: []
includeFilters: []

Now, that rrd4j configuration might well be useless, but the main issue that I have is that the members of the weather_forecast group are no longer showing any future values after the ones already stored with OH4.

I looked in the log, and I see this:

15:37:23.810 [INFO ] [openhab.event.ItemTimeSeriesEvent    ] - Item 'weather_forecast_Minimum_outdoor_temperature_Daily' shall process time series with 6 values.
15:37:23.813 [INFO ] [nhab.event.ItemTimeSeriesUpdatedEvent] - Item 'weather_forecast_Minimum_outdoor_temperature_Daily' updated time series with 6 values.

Repeated for all the items that are to receive a future time series.

And yet, when I use the “Analyze” button, there are no future values for those items.

What have I missed here?

How do you set the forecast values?

It’s done inside the addon Thing handler code like this:

TimeSeries timeSeries = new TimeSeries(TimeSeries.Policy.REPLACE);

timeSeries.add(timestamp, state);

sendTimeSeries(channelUID, timeSeries);

This used to work properly in OH4 and because persistence parameters changed, I’m thinking it’s got to have something to do with how I setup persistence in OH5

Ok, answering myself here:

It seems a reboot of OH5 fixed the issue so maybe there was something not properly configured, or not properly taken into account.

I’ll make sure to monitor this in the upcoming days to make sure it “sticks”.