I had an Apex chart which showed the forecast solar for today and tomorrow, along with a bar chart of the achieved solar production.
About a week or so ago the chart suddenly stopped working. Now it just says Loading…
If I open the editor then close it again the bar chart shows, but the solar forecast never does.
Can anyone see what might have broken?
Here is the code for the chart:
type: custom:apexcharts-card
header:
show: true
title: Forecast Generation - Today & Tomorrow
series:
- entity: sensor.solcast_pv_forecast_forecast_today
name: Today
color: darkorange
stroke_width: 3
type: line
time_delta: +15min
extend_to: false
yaxis_id: kWh
show:
legend_value: false
in_header: false
data_generator: |
return entity.attributes.detailedForecast.map((entry) => {
return [new Date(entry.period_start), entry.pv_estimate];
});
- entity: sensor.solcast_pv_forecast_forecast_tomorrow
name: Tomorrow
color: gold
stroke_width: 3
type: line
time_delta: +15min
extend_to: false
yaxis_id: kWh
show:
legend_value: false
in_header: false
data_generator: |
return entity.attributes.detailedForecast.map((entry) => {
return [new Date(entry.period_start), entry.pv_estimate];
});
- entity: sensor.pv_energy_today
name: Actual
color: grey
type: column
group_by:
func: diff
start_with_last: true
show:
legend_value: false
now:
show: true
label: now
yaxis:
- id: kWh
show: true
min: 0
max: 5
apex_config:
tickAmount: 10
graph_span: 48h
span:
start: day