I’m a novice and not a natural code writer. I spent hours gradually piecing together some dashboards with code that I slowly learned with endless experimenting. I wanted to delete one view but ended up deleting a whole series of them. I see I have a backup, and I’ve downloaded that and opened the .storage folder in the Mac finder, and opened a file Lovelace.dashboard_android that seems to contain the code for the deleted dashboards, but I’m totally lost with trying to follow the restore procedure, and the code in the file in .storage has a whole lot of extra elements in it, so if I just paste it as code into a new dashboard I get an error message popping up saying that there are errors in the code (not surprisingly).
An example of a part of the backup file code is below. Help please! I don’t know why restoring a backup has to be so user-unfriendly…
Please forgive me if I’ve posted this in the wrong place. I’m struggling to find my way around HA
version: 1,
minor_version: 1,
key: lovelace.dashboard_android,
data:
config:
views:
type: custom:masonry-layout,
sections: [],
title: Sections view,
cards: [
type: custom:layout-card,
layout_type: masonry,
layout: ,
cards: [
type: custom:apexcharts-card,
apex_config:
responsive: [
breakpoint: 5000,
options:
markers:
fillColor: #e3e3e3,
strokeColor: #fff,
size: 2,
shape: circle,
strokeOpacity: 100,
strokeWidth: 0
,
stroke:
curve: straight,
width: 0.5
,
chart:
height: 300px
]
,
header:
show: true,
title: garden soil humidity & temperature,
show_states: false,
colorize_states: true
,
graph_span: 10 d,
span:
end: minute
,
yaxis: [
id: first,
min: 0,
max: 100,
decimals: 0,
apex_config:
tickAmount: 5,
title:
text: humidity,
rotate: -90
,
id: second,
min: 0,
max: 60,
opposite: true,
decimals: 0,
apex_config:
tickAmount: 6,
title:
text: temperature (Celsius),
rotate: 90
,
id: third,
min: 0,
max: 40,
opposite: true,
decimals: 0,
apex_config:
tickAmount: 4,
title:
text: rainfall mm/h,
rotate: 90
],
all_series_config:
stroke_width: 2
,
series: [
entity: sensor.soil_sensor_humidity,
color: green,
yaxis_id: first,
type: line
,
entity: sensor.soil_sensor_temperature,
color: red,
yaxis_id: second,
type: line
,
entity: sensor.gw1200c_soil_moisture_1,
color: 84F217,
yaxis_id: first,
type: line
,
entity: sensor.soil_t_h_vege_garden_temperature,
color: orange,
yaxis_id: second,
type: line
,
entity: sensor.soil_t_h_vege_garden_humidity,
color: 80b3ff,
yaxis_id: first,
type: line
,
entity: sensor.gw1200c_soil_moisture_2,
color: blue,
yaxis_id: first,
type: line
,
entity: sensor.pws_precip_rate,
color: 80b3ff,
yaxis_id: third,
type: column
]
]
,