Log warning when spot prices are unavailable (#16648)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Jacob Laursen 2024-04-13 15:31:56 +02:00 committed by Ciprian Pascu
parent 3d74224025
commit 366dd052b1

View File

@ -239,6 +239,7 @@ public class EnergiDataServiceHandler extends BaseThingHandler {
if (isLinked(CHANNEL_SPOT_PRICE)) {
if (cacheManager.getNumberOfFutureSpotPrices() < 13) {
logger.warn("Spot prices are not yet available, retry scheduled (see details in Thing properties)");
retryPolicy = RetryPolicyFactory.whenExpectedSpotPriceDataMissing(DAILY_REFRESH_TIME_CET,
NORD_POOL_TIMEZONE);
} else {