Some weeks into the existence of Subviews, I am still not comfortable with them. Using Yaml mode, I have to create a ‘fake’ dashboard to collect the subviews (which essentially are Views) to collect them in a ‘repository’ and link to them from all other dashboards, like:
# need this 'fake' view to be able to list them in a 'repository of subviews, and link to
# them from other subviews in YAML mode
lovelace:
dashboards:
ui-sub-views:
mode: yaml
filename: dashboard/dashboards/ui-sub-views.yaml
title: Sub views
icon: mdi:subtitles
require_admin: true
show_in_sidebar: false
made the buttons to the subviews into something more consistent with my other (square) buttons in the main dashboard. Since I use grid with 4 columns all over, devices to half that into 8, with full size images.
sorry but I cant really see what you’re doing, because of the huge black blob…
I just checked and I still do what I did back then…
write/save all my subviews (which are essentially regular views, so no difference in the architecture there except for the subview: true) in a dedicated folder.
and call them anywhere you want with a regular action: navigate , also described in the opening post. I use custom:button-card mostly, but you can use any element supporting that action option.
which can look like this, styled according to individual preferences/settings/dynamics: