Tibber binding -> current price changes Minutes/half an hour after the hour

Using openHAB 4.2.1-release with openHABian on RPi4.

just realised, why some of my rules won’t fire on the hour, because the “current price” item changes only 56secs after the hour:

2024-09-14 11:00:56.005 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TIB_Current_Total_Price' shall process timeseries [Entry[timestamp=2024-09-13T22:00:00Z, state=0.2523], Entry[timestamp=2024-09-13T23:00:00Z, state=0.2456], Entry[timestamp=2024-09-14T00:00:00Z, state=0.2377], Entry[timestamp=2024-09-14T01:00:00Z, state=0.2399], Entry[timestamp=2024-09-14T02:00:00Z, state=0.2417], Entry[timestamp=2024-09-14T03:00:00Z, state=0.2388], Entry[timestamp=2024-09-14T04:00:00Z, state=0.252], Entry[timestamp=2024-09-14T05:00:00Z, state=0.2635], Entry[timestamp=2024-09-14T06:00:00Z, state=0.276], Entry[timestamp=2024-09-14T07:00:00Z, state=0.2654], Entry[timestamp=2024-09-14T08:00:00Z, state=0.2349], Entry[timestamp=2024-09-14T09:00:00Z, state=0.1957], Entry[timestamp=2024-09-14T10:00:00Z, state=0.1872], Entry[timestamp=2024-09-14T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-14T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-14T13:00:00Z, state=0.186], Entry[timestamp=2024-09-14T14:00:00Z, state=0.1975], Entry[timestamp=2024-09-14T15:00:00Z, state=0.2636], Entry[timestamp=2024-09-14T16:00:00Z, state=0.2985], Entry[timestamp=2024-09-14T17:00:00Z, state=0.3368], Entry[timestamp=2024-09-14T18:00:00Z, state=0.3264], Entry[timestamp=2024-09-14T19:00:00Z, state=0.3088], Entry[timestamp=2024-09-14T20:00:00Z, state=0.2977], Entry[timestamp=2024-09-14T21:00:00Z, state=0.287]]
2024-09-14 11:00:56.009 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TIB_Current_Total_Price' changed from 0.2349 to 0.1957

2024-09-14 11:00:56.012 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TIB_Current_StartsAt' changed from 2024-09-14T10:00:00.000+0200 to 2024-09-14T11:00:00.000+0200
2024-09-14 11:00:56.023 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TIB_Current_Total_Price' updated timeseries [Entry[timestamp=2024-09-13T22:00:00Z, state=0.2523], Entry[timestamp=2024-09-13T23:00:00Z, state=0.2456], Entry[timestamp=2024-09-14T00:00:00Z, state=0.2377], Entry[timestamp=2024-09-14T01:00:00Z, state=0.2399], Entry[timestamp=2024-09-14T02:00:00Z, state=0.2417], Entry[timestamp=2024-09-14T03:00:00Z, state=0.2388], Entry[timestamp=2024-09-14T04:00:00Z, state=0.252], Entry[timestamp=2024-09-14T05:00:00Z, state=0.2635], Entry[timestamp=2024-09-14T06:00:00Z, state=0.276], Entry[timestamp=2024-09-14T07:00:00Z, state=0.2654], Entry[timestamp=2024-09-14T08:00:00Z, state=0.2349], Entry[timestamp=2024-09-14T09:00:00Z, state=0.1957], Entry[timestamp=2024-09-14T10:00:00Z, state=0.1872], Entry[timestamp=2024-09-14T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-14T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-14T13:00:00Z, state=0.186], Entry[timestamp=2024-09-14T14:00:00Z, state=0.1975], Entry[timestamp=2024-09-14T15:00:00Z, state=0.2636], Entry[timestamp=2024-09-14T16:00:00Z, state=0.2985], Entry[timestamp=2024-09-14T17:00:00Z, state=0.3368], Entry[timestamp=2024-09-14T18:00:00Z, state=0.3264], Entry[timestamp=2024-09-14T19:00:00Z, state=0.3088], Entry[timestamp=2024-09-14T20:00:00Z, state=0.2977], Entry[timestamp=2024-09-14T21:00:00Z, state=0.287]]
2024-09-14 11:00:56.025 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TIB_Hourly_From' changed from 2024-09-14T09:00:00.000+0200 to 2024-09-14T10:00:00.000+0200
2024-09-14 11:00:56.025 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TIB_Hourly_To' changed from 2024-09-14T10:00:00.000+0200 to 2024-09-14T11:00:00.000+0200

TIB_Current_Total_Price is the item for the current_total channel.

Can I do something to move this more to the start of the hour?

It’s getting even more worse, since two days or so, the changes of the current price are wayyyy off?
what’s causing this?

it’s beginning to veer extremely off since 25th of september.
grafik

and now I’m on 23 minutes(!) after the hour?
grafik

Can I configure something to get it back to “on the hour”?

extracts from events.log:

2024-09-27 08:28:27.941 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TIB_Current_Total_Price' shall process timeseries [Entry[timestamp=2024-09-26T22:00:00Z, state=0.1861], Entry[timestamp=2024-09-26T23:00:00Z, state=0.1862], Entry[timestamp=2024-09-27T00:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T01:00:00Z, state=0.1854], Entry[timestamp=2024-09-27T02:00:00Z, state=0.1859], Entry[timestamp=2024-09-27T03:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T04:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T05:00:00Z, state=0.217], Entry[timestamp=2024-09-27T06:00:00Z, state=0.2336], Entry[timestamp=2024-09-27T07:00:00Z, state=0.1927], Entry[timestamp=2024-09-27T08:00:00Z, state=0.186], Entry[timestamp=2024-09-27T09:00:00Z, state=0.1817], Entry[timestamp=2024-09-27T10:00:00Z, state=0.1795], Entry[timestamp=2024-09-27T11:00:00Z, state=0.1786], Entry[timestamp=2024-09-27T12:00:00Z, state=0.1801], Entry[timestamp=2024-09-27T13:00:00Z, state=0.186], Entry[timestamp=2024-09-27T14:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T15:00:00Z, state=0.2311], Entry[timestamp=2024-09-27T16:00:00Z, state=0.2606], Entry[timestamp=2024-09-27T17:00:00Z, state=0.2581], Entry[timestamp=2024-09-27T18:00:00Z, state=0.257], Entry[timestamp=2024-09-27T19:00:00Z, state=0.2255], Entry[timestamp=2024-09-27T20:00:00Z, state=0.2171], Entry[timestamp=2024-09-27T21:00:00Z, state=0.2159]]
2024-09-27 08:28:27.952 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TIB_Current_Total_Price' updated timeseries [Entry[timestamp=2024-09-26T22:00:00Z, state=0.1861], Entry[timestamp=2024-09-26T23:00:00Z, state=0.1862], Entry[timestamp=2024-09-27T00:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T01:00:00Z, state=0.1854], Entry[timestamp=2024-09-27T02:00:00Z, state=0.1859], Entry[timestamp=2024-09-27T03:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T04:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T05:00:00Z, state=0.217], Entry[timestamp=2024-09-27T06:00:00Z, state=0.2336], Entry[timestamp=2024-09-27T07:00:00Z, state=0.1927], Entry[timestamp=2024-09-27T08:00:00Z, state=0.186], Entry[timestamp=2024-09-27T09:00:00Z, state=0.1817], Entry[timestamp=2024-09-27T10:00:00Z, state=0.1795], Entry[timestamp=2024-09-27T11:00:00Z, state=0.1786], Entry[timestamp=2024-09-27T12:00:00Z, state=0.1801], Entry[timestamp=2024-09-27T13:00:00Z, state=0.186], Entry[timestamp=2024-09-27T14:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T15:00:00Z, state=0.2311], Entry[timestamp=2024-09-27T16:00:00Z, state=0.2606], Entry[timestamp=2024-09-27T17:00:00Z, state=0.2581], Entry[timestamp=2024-09-27T18:00:00Z, state=0.257], Entry[timestamp=2024-09-27T19:00:00Z, state=0.2255], Entry[timestamp=2024-09-27T20:00:00Z, state=0.2171], Entry[timestamp=2024-09-27T21:00:00Z, state=0.2159]]
...
2024-09-27 08:53:28.223 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TIB_Current_Total_Price' shall process timeseries [Entry[timestamp=2024-09-26T22:00:00Z, state=0.1861], Entry[timestamp=2024-09-26T23:00:00Z, state=0.1862], Entry[timestamp=2024-09-27T00:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T01:00:00Z, state=0.1854], Entry[timestamp=2024-09-27T02:00:00Z, state=0.1859], Entry[timestamp=2024-09-27T03:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T04:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T05:00:00Z, state=0.217], Entry[timestamp=2024-09-27T06:00:00Z, state=0.2336], Entry[timestamp=2024-09-27T07:00:00Z, state=0.1927], Entry[timestamp=2024-09-27T08:00:00Z, state=0.186], Entry[timestamp=2024-09-27T09:00:00Z, state=0.1817], Entry[timestamp=2024-09-27T10:00:00Z, state=0.1795], Entry[timestamp=2024-09-27T11:00:00Z, state=0.1786], Entry[timestamp=2024-09-27T12:00:00Z, state=0.1801], Entry[timestamp=2024-09-27T13:00:00Z, state=0.186], Entry[timestamp=2024-09-27T14:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T15:00:00Z, state=0.2311], Entry[timestamp=2024-09-27T16:00:00Z, state=0.2606], Entry[timestamp=2024-09-27T17:00:00Z, state=0.2581], Entry[timestamp=2024-09-27T18:00:00Z, state=0.257], Entry[timestamp=2024-09-27T19:00:00Z, state=0.2255], Entry[timestamp=2024-09-27T20:00:00Z, state=0.2171], Entry[timestamp=2024-09-27T21:00:00Z, state=0.2159]]
2024-09-27 08:53:28.233 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TIB_Current_Total_Price' updated timeseries [Entry[timestamp=2024-09-26T22:00:00Z, state=0.1861], Entry[timestamp=2024-09-26T23:00:00Z, state=0.1862], Entry[timestamp=2024-09-27T00:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T01:00:00Z, state=0.1854], Entry[timestamp=2024-09-27T02:00:00Z, state=0.1859], Entry[timestamp=2024-09-27T03:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T04:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T05:00:00Z, state=0.217], Entry[timestamp=2024-09-27T06:00:00Z, state=0.2336], Entry[timestamp=2024-09-27T07:00:00Z, state=0.1927], Entry[timestamp=2024-09-27T08:00:00Z, state=0.186], Entry[timestamp=2024-09-27T09:00:00Z, state=0.1817], Entry[timestamp=2024-09-27T10:00:00Z, state=0.1795], Entry[timestamp=2024-09-27T11:00:00Z, state=0.1786], Entry[timestamp=2024-09-27T12:00:00Z, state=0.1801], Entry[timestamp=2024-09-27T13:00:00Z, state=0.186], Entry[timestamp=2024-09-27T14:00:00Z, state=0.1861], Entry[timestamp=2024-09-27T15:00:00Z, state=0.2311], Entry[timestamp=2024-09-27T16:00:00Z, state=0.2606], Entry[timestamp=2024-09-27T17:00:00Z, state=0.2581], Entry[timestamp=2024-09-27T18:00:00Z, state=0.257], Entry[timestamp=2024-09-27T19:00:00Z, state=0.2255], Entry[timestamp=2024-09-27T20:00:00Z, state=0.2171], Entry[timestamp=2024-09-27T21:00:00Z, state=0.2159]]
...


I think, there’s a opportunity for improved behaviour on the tibber binding side.

following this thread:

I set the change to 25mins. My thinking was to eliminate the change every minute, which was logged excessively! :wink:
This led to the binding “rotating” also the hourly price every 25mins. So it was randomly ok for a time, but could be as much off as 25mins. I’ll try to file an improvement issue for it on github.

for the time being, I changed it to 60mins exactly on the hour, so until a restart of openHAB outside of “on the hour” I’m safe. :wink:

If it’s a Timeseries, shouldn’t the framework ensure the item state gets updated? Have you made sure to use the ‘forecast’ persistence strategy for the Item?

Haven’t tried any Timeseries channels myself, but my understanding is that this should be handled automatically and not something the binding should need to care about.

Is you look closely: the events.log updates above are exactly on the “refresh interval” minutes. The time series itself only changes every 24h with new prices, but the value of the item only changes on the interval frequencies. I don’t think time series items change themselves without the binding…

Here’s the graph. You can see the changes are not on the hour, but in the refresh interval times.

From the documentation on persistence strategies:

  • forecast: check for persisted states with timestamps in the future and restore these states at the given time

So the intended behaviour is that the states should be restored at ther timestamp.

Edit: it then says:
“It is recommended to use different items for forecasted (i.e. future) values and historic data. As a result mixing forecast strategy with other strategies is not recommended (except restoreOnStartup).”

So make sure you only have the forecast strategy define for the Item

I don’t have a strategy for forecasts defined yet.
Should I have? There’s nothing mentioned in the docs except this part

The today and tomorrow prices are served as forecast on the current_total channel and as JSON data on the channels today_prices and tomorrow_prices.

If that’s necessary that’s a bummer. I want the historic states persisted for reference.

If you use a persistence service like InfluxDB I would guess that the values will still be kept after the timestamp has passed, i.e. I don’t think the strategy deletes anything, only updating the database when a new timeseries is received and set the state for the Item.

ok, I created a new test-item and now I wait to see what’ll happen.

I hope, the jdbc default-strategy to persist all items won’t interfere. I don’t want to add each and every item to the “everyChange” and only the Tibber-items to “forecast”. I’m talking 1229 items. :see_no_evil:

configurations:
  - items:
      - "*"
    strategies:
      - everyChange
    filters: []
  - items:
      - TEST_TibberCurrentPrice_TEST
    strategies:
      - forecast
    filters: []
cronStrategies: []
defaultStrategies:
  - everyChange
thresholdFilters: []
timeFilters: []
equalsFilters: []
includeFilters: []

If I would make a guess, what might happen is that the forecast get saved, and then there will be an additional entry in the dB for when the state changes, so two entries perhaps less than a second apart. What you could probably do if this is a problem is to use the inmemory persistence service for the forecast strategy.

OK, what I found out is, you can’t have two items on forecast-strategy on the same channel.

  • at first I added the forecast-persistence to my Test item for JDBC-persistence => no effect
  • then I added additionally the default rrd4j forecast-persistence to my Test item => it changed exactly on the hour (ok, a few ms later :wink: )
    you can see the original item change 15mins later with the refresh interval
  • then I addes forecast-persistence with my original item in parallel => now nothing worked, or it was back to “normal”: the items get updated with the refresh interval (now set to 30mins), both items only changed with the refresh interval
  • after that I unlinked my test-item and now it seems to work - even though(!) the test-item still has the future values in it and therefore used them? :wink:
2024-09-28 13:00:00.007 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TEST_TibberCurrentPrice_TEST' changed from 0.1869 to 0.1861
...
2024-09-28 13:15:42.476 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TIB_Current_Total_Price' changed from 0.1869 to 0.1861
2024-09-28 13:15:42.493 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TIB_Current_Total_Price' shall process timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
2024-09-28 13:15:42.504 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TEST_TibberCurrentPrice_TEST' shall process timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
2024-09-28 13:15:42.528 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TIB_Current_Total_Price' updated timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
2024-09-28 13:15:42.539 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TEST_TibberCurrentPrice_TEST' updated timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
...
2024-09-28 13:45:42.754 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TIB_Current_Total_Price' shall process timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
2024-09-28 13:45:42.759 [INFO ] [openhab.event.ItemTimeSeriesEvent   ] - Item 'TEST_TibberCurrentPrice_TEST' shall process timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
2024-09-28 13:45:42.773 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TIB_Current_Total_Price' updated timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
2024-09-28 13:45:42.780 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'TEST_TibberCurrentPrice_TEST' updated timeseries [Entry[timestamp=2024-09-27T22:00:00Z, state=0.1882], Entry[timestamp=2024-09-27T23:00:00Z, state=0.1897], Entry[timestamp=2024-09-28T00:00:00Z, state=0.19], Entry[timestamp=2024-09-28T01:00:00Z, state=0.1899], Entry[timestamp=2024-09-28T02:00:00Z, state=0.19], Entry[timestamp=2024-09-28T03:00:00Z, state=0.1911], Entry[timestamp=2024-09-28T04:00:00Z, state=0.2004], Entry[timestamp=2024-09-28T05:00:00Z, state=0.2126], Entry[timestamp=2024-09-28T06:00:00Z, state=0.2173], Entry[timestamp=2024-09-28T07:00:00Z, state=0.2086], Entry[timestamp=2024-09-28T08:00:00Z, state=0.1977], Entry[timestamp=2024-09-28T09:00:00Z, state=0.1906], Entry[timestamp=2024-09-28T10:00:00Z, state=0.1869], Entry[timestamp=2024-09-28T11:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T12:00:00Z, state=0.1861], Entry[timestamp=2024-09-28T13:00:00Z, state=0.1862], Entry[timestamp=2024-09-28T14:00:00Z, state=0.1978], Entry[timestamp=2024-09-28T15:00:00Z, state=0.2614], Entry[timestamp=2024-09-28T16:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T17:00:00Z, state=0.3052], Entry[timestamp=2024-09-28T18:00:00Z, state=0.3007], Entry[timestamp=2024-09-28T19:00:00Z, state=0.2822], Entry[timestamp=2024-09-28T20:00:00Z, state=0.2817], Entry[timestamp=2024-09-28T21:00:00Z, state=0.2751], Entry[timestamp=2024-09-28T22:00:00Z, state=0.2583], Entry[timestamp=2024-09-28T23:00:00Z, state=0.2403], Entry[timestamp=2024-09-29T00:00:00Z, state=0.2387], Entry[timestamp=2024-09-29T01:00:00Z, state=0.2377], Entry[timestamp=2024-09-29T02:00:00Z, state=0.2548], Entry[timestamp=2024-09-29T03:00:00Z, state=0.2737], Entry[timestamp=2024-09-29T04:00:00Z, state=0.2778], Entry[timestamp=2024-09-29T05:00:00Z, state=0.3027], Entry[timestamp=2024-09-29T06:00:00Z, state=0.3014], Entry[timestamp=2024-09-29T07:00:00Z, state=0.2509], Entry[timestamp=2024-09-29T08:00:00Z, state=0.1877], Entry[timestamp=2024-09-29T09:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T10:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T11:00:00Z, state=0.1855], Entry[timestamp=2024-09-29T12:00:00Z, state=0.1856], Entry[timestamp=2024-09-29T13:00:00Z, state=0.1861], Entry[timestamp=2024-09-29T14:00:00Z, state=0.2376], Entry[timestamp=2024-09-29T15:00:00Z, state=0.298], Entry[timestamp=2024-09-29T16:00:00Z, state=0.3677], Entry[timestamp=2024-09-29T17:00:00Z, state=0.3852], Entry[timestamp=2024-09-29T18:00:00Z, state=0.3166], Entry[timestamp=2024-09-29T19:00:00Z, state=0.2815], Entry[timestamp=2024-09-29T20:00:00Z, state=0.2626], Entry[timestamp=2024-09-29T21:00:00Z, state=0.2306]]
...
2024-09-28 18:00:00.006 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TEST_TibberCurrentPrice_TEST' changed from 0.2614 to 0.2817
2024-09-28 18:00:00.007 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TIB_Current_Total_Price' changed from 0.2614 to 0.2817

So, if you add a forecast-persistence strategy the channels change on the hour! Should be more clear from the docs, I think.

Yes, having Timeseries (and what’s required to make it work) mentioned on Items | openHAB would probably be a good idea. Would you like to make a PR for it?

1 Like

I can do. Just have to check, if the responsible “forecast” strategy has to be on the default persistence.