Detailed Forecast pv total <> Forecast Today #168
-
Hi All, One of my sensors totals the Half hourly PV Estimate over a user definable time period for sensor.solcast_pv_forecast_forecast_today however the result I'm getting does not match the overall Solar Forecast Today For example sensor.solcast_pv_forecast_forecast_today = 5.86 for me today but the sum of the half hourly detail pv_estimates = 11.7 I'm using this code to sum the pv_estimates
Anyone got any suggestions as to why the detailed pv total and headline forecast don't match please? (Cut and paste of the detailed data which confirms the total is 11.7 below) Dayname
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Divide your half hourly detail pv_estimates by two. The values are average kW for the half hour period. This is not a kWh (KiloWatt hour), so simply divide the total to get an estimate energy for the hour. Or use the detailed hourly attribute, which is what it does... |
Beta Was this translation helpful? Give feedback.
-
(11.7 / 2 = 5.85.) Or use the custom "X hour" sensor instead of yours. That one utilises spline interpolated values for part-way through a half-hour period, with the restriction that splines are calculated for the current 24-hour period. (Beyond the 24-hour period it uses linear interpolation, which is good enough.) So if your period is say eight hours it'll do a better job of 'now' to then than you could. |
Beta Was this translation helpful? Give feedback.
-
(Given the whole "user selectable" thing, this begs the question in my mind, "should the custom X hour sensor have as attributes hours from one to twenty four as values?" Then for a template sensor, grab the number of hours required from the attribute. The only downside I see is slight increased processor usage, but that would be insignificant, given splines are calculated when forecasts are retrieved, which is the heavy lifting, and sensor update every five minutes is just a couple of dictionary lookups unless beyond spline calc period, which is no mean math.) |
Beta Was this translation helpful? Give feedback.
Divide your half hourly detail pv_estimates by two. The values are average kW for the half hour period. This is not a kWh (KiloWatt hour), so simply divide the total to get an estimate energy for the hour.
Or use the detailed hourly attribute, which is what it does...