This is my dayahead template for PV:
"pv_power_forecast":{{([states('sensor.sonnenbatterie_84324_production_w')|int(0)] +
state_attr('sensor.forecast_today', 'detailedForecast')|selectattr('period_start','gt',utcnow()) | map(attribute='pv_estimate')|map('multiply',2000)|map('int')|list +
state_attr('sensor.forecast_tomorrow', 'detailedForecast')|selectattr('period_start','gt',utcnow()) | map(attribute='pv_estimate')|map('multiply',2000)|map('int')|list)[:48]| tojson
}}
Still using older version of solcast integration, version 3.1.6.
This template produces this data:
"pv_power_forecast":[1880, 2075, 2552, 2940, 3250, 3502, 3641, 3749, 3788, 3797, 3740, 3613, 3394, 3147, 2819, 2427, 1908, 1404, 854, 315, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 482, 1010]
This data looks like this: