Lovelace and !include

yes it does.

that’s how I use lovelace in yaml mode too. You can even use !include for separate entities in a view:

title: default_view
icon: mdi:home
path: home
badges:
  - sensor.espresso_water_level
cards:
  - !include /config/lovelace/tiles/tiles_family.yaml
  - !include /config/lovelace/tiles/tiles_activities.yaml
  - !include /config/lovelace/tiles/tiles_switches.yaml
  - !include /config/lovelace/tiles/tiles_uit_thuis.yaml
  - !include /config/lovelace/tiles/tiles_home_modes.yaml
  - !include /config/lovelace/tiles/tiles_audio_system.yaml

called in:

##############################################################################################################
# Main Lovelace configuration file, calling all Views via !include /config/lovelace/view_***
# for ease of editing the separate Views, and prevent errors while doing so to the full setup
##############################################################################################################

resources:
# https://github.com/thomasloven/lovelace-card-tools
  - url: /local/lovelace/resources/card-tools.js?v=6ce5d0
    type: js
# Ha Cards : https://www.home-assistant.io/lovelace/gauge
# https://github.com/ciotlosm/custom-lovelace/tree/master/gauge-card
  - url: /local/lovelace/resources/gauge-card.js?v=0.2.0
    type: js
    
# Custom cards

  - url: /local/lovelace/resources/tracker-card.js?v=0.1.5
    type: js
# https://github.com/rodrigofragadf/lovelace-cards/tree/master/tiles-card
  - url: /local/lovelace/resources/tiles-card.js?v=0.1.1
    type: js
  - url: /local/lovelace/resources/useful-markdown-card.js?v=dfc268
    type: js
# https://github.com/ciotlosm/custom-lovelace/tree/master/monster-card
  - url: /local/lovelace/resources/monster-card.js?v=0.2.3
    type: js
# https://github.com/ciotlosm/custom-lovelace/tree/master/bignumber-card
  - url: /local/lovelace/resources/bignumber-card.js?v=0.0.1
    type: js
# https://github.com/ciotlosm/custom-lovelace/tree/master/entity-attributes-card
  - url: /local/lovelace/resources/entity-attributes-card.js?v=0.1.1
    type: js
  - url: /local/lovelace/resources/group-card.js?v=0.0.2
    type: js

  - url: /local/lovelace/resources/mini-media-player-bundle.js?v=0.9.8
    type: js
# https://github.com/kalkih/mini-graph-card
  - url: /local/lovelace/resources/mini-graph-card-bundle.js?v=0.1.0
    type: module
  - url: /local/lovelace/resources/weather-card.js
    type: js
# https://github.com/iammexx/home-assistant-config/tree/master/ui/darksky
  - url: /local/lovelace/resources/dark-sky-weather-card.js?v=7.1.2
    type: module
  - url: /local/lovelace/resources/fold-entity-row.js?v=5ab35c
    type: js
# https://github.com/custom-cards/vertical-stack-in-card
  - url: /local/lovelace/resources/vertical-stack-in-card.js?v=v0.1.0
    type: js
# https://github.com/thomasloven/lovelace-card-modder
  - url: /local/lovelace/resources/card-modder.js?v=fadc03
    type: js
  - url: /local/lovelace/resources/slider-entity-row.js?v=d6da75
    type: js
  - url: /local/lovelace/resources/layout-card.js?v=bd7e5a
    type: js
# https://github.com/gurbyz/custom-cards-lovelace/tree/master/power-wheel-card
  - url: /local/lovelace/resources/power-wheel-card.js?v=0.0.6
    type: module

title: Main Lovelace
views:
  - !include /config/lovelace/view_Home.yaml
  - !include /config/lovelace/view_Lights.yaml
  - !include /config/lovelace/view_Ikea_tradfri.yaml
  - !include /config/lovelace/view_Philips_hue.yaml
  - !include /config/lovelace/view_Floorplan.yaml
  - !include /config/lovelace/view_Settings.yaml
  - !include /config/lovelace/view_Home_climate.yaml
  - !include /config/lovelace/view_Home_summary.yaml
  - !include /config/lovelace/view_Summary_groups.yaml
  - !include /config/lovelace/view_Home_assistant.yaml
  - !include /config/lovelace/view_Home_energy.yaml
  - !include /config/lovelace/view_Home_solar_energy.yaml
  - !include /config/lovelace/view_Phones_tablets.yaml
  - !include /config/lovelace/view_Travel.yaml
  - !include /config/lovelace/view_Weer_klimaat.yaml
  - !include /config/lovelace/view_Tijd_agenda.yaml
  - !include /config/lovelace/view_Computer_netwerk.yaml
  - !include /config/lovelace/view_Audio_video_gaming.yaml
  - !include /config/lovelace/view_Media_players.yaml
  - !include /config/lovelace/view_Health.yaml
  - !include /config/lovelace/view_Home_automation.yaml
  - !include /config/lovelace/view_Weblinks.yaml
  - !include /config/lovelace/view_Leftovers.yaml
  - !include /config/lovelace/view_Developer.yaml
  - !include /config/lovelace/view_Test.yaml
5 Likes