Solar Forecast PV

… here we go?!?

@weymann - would changing the policy to ADD here help to bridge API outages, keeping the data fetched already?

No, this will cause multiple values for each timestamp in normal cases which is the majority of the updates.

You just pasted this one liner from your rule. Under which circumstances this line called?
btw this isn’t a call towards timeseries which is described here.

        // Query forecast TimesSeries Items via historicState
        val energyAverage =  (Solcast_Site_Average_Energyestimate.historicState(now.plusDays(1)).state as Number)

Hi Bernd,

I used the Actions rule to get the forecast for Tomorrow as documented here. Will give the Query a try and see if that works better when there is no API access. Thanks for the hint.

That rule gets executed based on a number of triggers, some unrelated to the forecast data. I need the Energy estimate for the next day to calculate if/how much I should charge my battery over night during cheaper spot market price hours.

So you are saying that the timeseries data should stay even if there is no new data fetched from the API? I thought I saw the data disappear in the event.log

Thanks!

Hi Bernd,

I tried your recommended way, yet there is an issue: “The historicState method has been deprecated and will be removed in a future version, use persistedState instead”.

So the correct way should be:

val RemainT = (ForecastSolar_Site_Energy_Forecast.persistedState(now.plusDays(1)).state as Number)

Since I’m using InMemory service to persist timeseries Items, this is what I’m using now:

val RemainT = (ForecastSolar_Site_Energy_Forecast.persistedState(now.plusDays(1),“inmemory”).state as Number)

I guess we will see if that works to bridge the outage during the next scheduled maintenance window.

Ah yeah, sounds reasonable. When timeseries was introduced it was quite awkward to access “future data” with historicState call.

From your traces are there any entries from fs-plane getting OFFLINE?

Hi Bernd,

hmm, in the event.log I see the site Thing going offline only. I have 3 planes and this is what I get:

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
2024-11-26 23:04:46.960 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:2e8cfd2212 # Forecast invalid time range to OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:63e5201225 # Forecast invalid time range
2024-11-26 23:04:46.991 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:63e5201225 # Forecast invalid time range to OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:5c84898dc4 # Forecast invalid time range
2024-11-26 23:05:46.991 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:5c84898dc4 # Forecast invalid time range to OFFLINE: Exception during update: solarforecast:fs-plane:2e8cfd2212 # No forecast data available

2024-11-26 23:24:47.339 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:5c84898dc4 # No forecast data available to OFFLINE: Exception during update: solarforecast:fs-plane:2e8cfd2212 # Forecast invalid time range
2024-11-26 23:24:47.370 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:2e8cfd2212 # Forecast invalid time range to OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:63e5201225 # Forecast invalid time range
2024-11-26 23:24:47.401 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:63e5201225 # Forecast invalid time range to OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:5c84898dc4 # Forecast invalid time range
2024-11-26 23:25:47.402 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'solarforecast:fs-site:6b43e97309' changed from OFFLINE: Exception during update: solarforecast:fs-plane:6b43e97309:5c84898dc4 # Forecast invalid time range to OFFLINE: Exception during update: solarforecast:fs-plane:2e8cfd2212 # No forecast data available

Thanks!