Warning: Resources need to be specified in your configuration.yaml

I do not understand this warning or I do not know how to fix it

Protokolldetails ( WARNING )

Logger: homeassistant.components.lovelace
Source: components/lovelace/__init__.py:97
Integration: Lovelace (documentation, issues)
First occurred: 10:44:29 (1 occurrences)
Last logged: 10:44:29 
Resources need to be specified in your configuration.yaml. Please see the docs

Home Assistant 0.109.2

Frontend-Version: 20200427.1 - latest

Systemzustand
arch 	x86_64
dev 	false
docker 	false
hassio 	false
os_name 	Linux
os_version 	5.3.0-51-generic
python_version 	3.7.5
timezone 	Europe/Vaduz
version 	0.109.2
virtualenv 	true
Lovelace
dashboards 	1
mode 	yaml
resources 	17
views 	9

ui-lovelace.yaml

## ########################################
## Resources
## ########################################
resources: 
  !include lovelace/rescources/resources.yaml

## ########################################
## Compact Custom Header
## ########################################
custom_header:
  header_text: 'My Smarthome'
  compact_mode: true
  hide_help: true
  menu_hide: true
  options_hide: false
  background: 'rgba(0,0,0,0.8)'

## ########################################
## Swipe navigation
## ########################################
swipe_nav:
  wrap: false
  animate: swipe
  prevent_default: true
  swipe_amount: 30
  
## ########################################
## Button card Templates
## ########################################
button_card_templates:  !include lovelace/buttons/button-default-template.yaml

## #########################################
## VIEWS
## The first view is the page 0. In my setup
## the interface defaults to view 1.
## #########################################
title: Home
views:
  - !include lovelace/views/main.yaml
  - !include lovelace/views/systemdata.yaml
  - !include lovelace/views/smartmeter.yaml

  - !include lovelace/views/heizung.yaml
  - !include lovelace/views/wetterstation.yaml
  - !include lovelace/views/security.yaml

  - !include lovelace/views/media-view.yaml
  - !include lovelace/views/network-info.yaml
  - !include lovelace/views/testcases.yaml

## END GUI ################################# 

Spelling mistake ?

you need to take the “resources:” section out of your ui-lovelace.yaml file and put it under the “lovelace:” section in your configuration.yaml.

ui-lovelace.yaml:

## Remove from here
resources: 
  !include lovelace/rescources/resources.yaml
.
.

configuration.yaml:

lovelace:
  ## put here
  resources: !include lovelace/rescources/resources.yaml
5 Likes

@finity
thank you very much, works perfectly. Actually, I should only have read correctly, because the message says that it belongs in the configuration.

1 Like

What is the story behind that change? I always put the resources into the ui-lovelace.yaml and they work. Will there be a change in the future that will break this or is saving the resources in the configuration.yaml somehow advantageous?

ui-lovelace.yaml is no longer necessarily where you will define a yaml lovelace configuration. you can now have multiple dashboards each of which can be generated automatically, managed through the ui or managed through yaml.

moving resources to configuration.yaml makes resources available to all dashboards. You can also managed them through the UI if you use storage mode. NOTE: this does not then preclude you from having one or more yaml dashboards.

lovelace:
  mode: storage
  dashboards:
    db-mobile:
      mode: yaml
      title: Mobile
      icon: mdi:cellphone-android
      show_in_sidebar: true
      filename: db_mobile.yaml
    db-pc:
      mode: yaml
      title: PC
      icon: mdi:laptop-chromebook
      show_in_sidebar: true
      filename: db_pc.yaml

Ahh of course. The multiple dashboards. That makes a lot of sense, didnt think about that. Thank you!

I am unable to configure dashboards.

Systemzustand
arch	x86_64
dev	false
docker	false
hassio	false
installation_type	Home Assistant Core in a Python Virtual Environment
os_name	Linux
os_version	5.3.0-51-generic
python_version	3.7.5
timezone	Europe/Vaduz
version	0.110.0b3
virtualenv	true
Lovelace
dashboards	3
error	/home/homeassistant/.homeassistant/ui-lovelace.yaml not found
mode	yaml
resources	16

I deleted ui-lovelace.yaml and entered the following entries in the configuration.yaml:

lovelace:
  mode: yaml
  resources: !include lovelace/rescources/resources.yaml
  dashboards:
    lovelace-start:
      mode: yaml
      filename: lovelace/dashboards/dashboard1.yaml
      title: Start
      icon: mdi:tools
      show_in_sidebar: true
      require_admin: true

dashboard1.yaml

title: My Awesome Home
badges: []
views:
    # View tab title.
  - title: Example
    cards:
        # The markdown card will render markdown text.
      - type: markdown
        title: Lovelace
        content: >
          Welcome to your **Lovelace UI**.
-rw-r - r-- 1 homeassistant homeassistant 256 May 17 15:48 lovelace / dashboards / dashboard1.yaml


What am I doing wrong ?

I don’t think dashboard files can be in a subfolder. They need to just be in the main config folder where configuration.yaml sits.

Thanks, yes subfolders do not work.