Add forecast strategy (#2163)

pull/2168/head
J-N-K 2023-11-25 22:01:08 +01:00 committed by GitHub
parent e5eba8719b
commit 2373e5ec8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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