I added a apex chart created with the help of a AI, and now the dashboard freezes up.
Would appriciate help fixing that card and finding a way how to edit the dashboard now, without me having access to the page (because it freezes my browser)
Here is the code:
graph_span: 1month
span:
end: day
header:
show: true
title: Solar Panel Cost and Earnings (Last 30 Days)
apex_config:
chart:
stacked: true # Enables stacking for series with the same y-axis
yaxis:
- id: money
decimals: 2
apex_config:
tickAmount: 5
title:
text: "€"
- id: energy
opposite: true # Right side for kWh
decimals: 1
apex_config:
tickAmount: 5
title:
text: "kWh"
series:
- name: Earnings from Grid Feed-In
entity: sensor.emma_feed_in_to_grid_today
type: column
color: '#00cc00' # Green for earnings
unit: €
float_precision: 2
data_generator: |
return entity.attributes.history.map((entry) => {
return [entry[0], entry[1] * 0.0995];
});
yaxis_id: money
group: financial # Groups with Costs for stacking
- name: Cost from Grid Supply
entity: sensor.emma_supply_from_grid_today
type: column
color: '#ff3333' # Red for costs
unit: €
float_precision: 2
data_generator: |
return entity.attributes.history.map((entry) => {
return [entry[0], entry[1] * 0.3078];
});
yaxis_id: money
group: financial # Groups with Earnings for stacking
- name: Total Consumption
entity: sensor.emma_consumption_today
type: column
color: '#3366ff' # Blue for usage
unit: kWh
float_precision: 2
show:
in_chart: true
in_header: false
yaxis_id: energy```