Log warning when spot prices are unavailable (#16648)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2024-04-13 15:31:56 +02:00 committed by GitHub
parent 42af6d8b4f
commit 2ac6b69270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {