Hi @weymann
tonight the API of the Forecast.solar service went out of service. This is causing troubles with the timeseries updates and hence my rules failed. This is a bit unexpected as the timeseries contains forecast data for today so the items it fills should be valid even w/o an update through the API, no? My rules depend on the item ForecastSolar_Site_Remaining_Energy_Forecast as well as the forecast for âtomorrowâ generated through the Actions:
val RemainT = (solarforecastActions.getDay(LocalDate.now.plusDays(1)) as Number).floatValue
Is there any chance to ignore the API problems as long as there is forecast data fetched already and fail ânicelyâ once the timeseries data runs out?
Here the logfile when the API went out of service:
2024-11-26 22:44:46.566 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'ForecastSolar_Site_Energy_Forecast' updated timeseries [Entry[timestamp=2024-11-26T06:40:11Z, state=0 kWh], Entry[
timestamp=2024-11-26T06:45:00Z, state=0 kWh], Entry[timestamp=2024-11-26T07:00:00Z, state=0.01 kWh], Entry[timestamp=2024-11-26T07:45:00Z, state=0.021 kWh], Entry[timestamp=2024-11-26T08:00:00Z
, state=0.185 kWh], Entry[timestamp=2024-11-26T09:00:00Z, state=0.6 kWh], Entry[timestamp=2024-11-26T10:00:00Z, state=1.251 kWh], Entry[timestamp=2024-11-26T11:00:00Z, state=2.3 kWh], Entry[tim
estamp=2024-11-26T12:00:00Z, state=3.949 kWh], Entry[timestamp=2024-11-26T13:00:00Z, state=5.707 kWh], Entry[timestamp=2024-11-26T14:00:00Z, state=6.91 kWh], Entry[timestamp=2024-11-26T15:00:00
Z, state=7.589 kWh], Entry[timestamp=2024-11-26T15:05:07Z, state=7.609999999999999 kWh], Entry[timestamp=2024-11-27T06:41:40Z, state=0 kWh], Entry[timestamp=2024-11-27T06:45:00Z, state=0 kWh],
Entry[timestamp=2024-11-27T07:00:00Z, state=0.017 kWh], Entry[timestamp=2024-11-27T07:45:00Z, state=0.021 kWh], Entry[timestamp=2024-11-27T08:00:00Z, state=0.255 kWh], Entry[timestamp=2024-11-2
7T09:00:00Z, state=0.791 kWh], Entry[timestamp=2024-11-27T10:00:00Z, state=1.594 kWh], Entry[timestamp=2024-11-27T11:00:00Z, state=2.5220000000000002 kWh], Entry[timestamp=2024-11-27T12:00:00Z,
state=3.434 kWh], Entry[timestamp=2024-11-27T13:00:00Z, state=4.292 kWh], Entry[timestamp=2024-11-27T14:00:00Z, state=5.021 kWh], Entry[timestamp=2024-11-27T15:00:00Z, state=5.51 kWh], Entry[t
imestamp=2024-11-27T15:04:18Z, state=5.522 kWh]]
2024-11-26 23:04:46.927 [INFO ] [openhab.event.ItemTimeSeriesEvent ] - Item 'ForecastSolar_Site_Power_Forecast' shall process timeseries []
2024-11-26 23:04:46.927 [INFO ] [openhab.event.ItemTimeSeriesEvent ] - Item 'ForecastSolar_Site_Energy_Forecast' shall process timeseries []
2024-11-26 23:04:46.928 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'ForecastSolar_Site_Power_Forecast' updated timeseries []
2024-11-26 23:04:46.928 [INFO ] [hab.event.ItemTimeSeriesUpdatedEvent] - Item 'ForecastSolar_Site_Energy_Forecast' updated timeseries []
2024-11-26 23:04:46.929 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from ONLINE to OFFLINE: Exception during update: solarforecast:fs-plane:2e8cfd2212 # Forecast invalid time range
This is the rule error:
2024-11-27 02:09:11.255 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'pv-5' failed: solarforecast:fs-plane:2e8cfd2212 # No forecast data available in pv
Thanks!