Skip to content

Commit

Permalink
Add forecast strategy (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
J-N-K committed Nov 25, 2023
1 parent e5eba87 commit 2373e5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configuration/persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ The following strategies are defined internally and may be used in place of `str
- `everyChange`: persist the Item state whenever its state has changed
- `everyUpdate`: persist the Item state whenever its state has been updated, even if it did not change
- `restoreOnStartup`: load and initialize the last persisted state of the Item on openHAB startup (if the Item state is undefined (`UNDEF`)).
- `forecast`: check for persisted states with timestamps in the future and restore these states at the given time

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`).

#### Cron Persistence Triggers

Expand Down

0 comments on commit 2373e5e

Please sign in to comment.