home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.8k stars 2.6k forks source link

error /config/ui-lovelace.yaml not found #11981

Closed Mariusthvdb closed 1 year ago

Mariusthvdb commented 2 years ago

Checklist

Describe the issue you are experiencing

an error is displayed in the System Health panel for the Lovelace config.

Schermafbeelding 2022-03-08 om 13 50 05

I dont use the default ui-lovelace view and have set my dashboards in a yaml file

Schermafbeelding 2022-03-08 om 13 50 27

Describe the behavior you expected

show no error. Maybe indicate a 'manual yaml configuration' is used?

Steps to reproduce the issue

  1. check config/info
  2. ...

What version of Home Assistant Core has the issue?

2022.4.0.dev20220308

What was the last working version of Home Assistant Core?

dk

In which browser are you experiencing the issue with?

any

Which operating system are you using to run this browser?

MacOS Monterey 12.2.1

State of relevant entities

No response

Problem-relevant frontend configuration

lovelace:
  mode: yaml
  resources: !include /config/lovelace/resources.yaml
  dashboards:

    ui-overview:
      mode: yaml
      filename: lovelace/dashboards/ui-overview.yaml
      title: Overview
      icon: mdi:view-dashboard

    ui-settings:
      mode: yaml
      filename: lovelace/dashboards/ui-settings.yaml
      title: Change settings
      icon: mdi:tools

    ui-data:
      mode: yaml
      filename: lovelace/dashboards/ui-data.yaml
      title: Home data
      icon: mdi:home-analytics
      require_admin: true

    ui-develop:
      mode: yaml
      filename: lovelace/dashboards/ui-develop.yaml
      title: Develop
      icon: mdi:remote-desktop
      require_admin: true

    ui-test:
      mode: yaml
      filename: lovelace/dashboards/ui-test.yaml
      title: Test
      icon: mdi:test-tube
      require_admin: true

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

Mariusthvdb commented 2 years ago

just to feed back this is still happening:

Schermafbeelding 2022-04-21 om 14 29 26

in frontend 20220420.0 - latest

Mariusthvdb commented 2 years ago

keeping alive

2022.8 still showing this as error, while it most certainly is Not.

Mariusthvdb commented 1 year ago

Since this remains unsolved I decided to fix another nuisance (the auto created all entities view upon re-login) by adding a ui-lovelace.yaml with the following content:


  - type: markdown
    content: >
      Hi {{user}}, you need to reset the auto-selected 'Overview (default)' View upon login.
      Go to your profile picture in the left side menu and select 'Overview'.
      Or click the image below 😉

  - type: picture
    image: /local/various/select_dashboard.png
    tap_action:
      action: navigate
      navigation_path: /profile

this not only removes the silly Error in System Health, but also guides the user to re-set the default View to something useful

Besides that, on a system with many entities the auto default view would practically hang the system. This is now very swift:

3F600CDE-D7C3-411A-B6C4-2485EEB6C772