From 2373e5ec8d93e41d773eeb898a0a96e91a8c747e Mon Sep 17 00:00:00 2001 From: J-N-K Date: Sat, 25 Nov 2023 22:01:08 +0100 Subject: [PATCH] Add forecast strategy (#2163) --- configuration/persistence.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration/persistence.md b/configuration/persistence.md index 7a2046ed54..09d792f466 100644 --- a/configuration/persistence.md +++ b/configuration/persistence.md @@ -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