Lovelace : Views appearing as 'Unnamed View'

Gents,

I have installed the irrigation controller module by Klopp and I have done a few changes to my lovelace-ui yaml to split the configs into different yaml files. Unfortunately, after I did that, some of the views have disappeared completely and a blank ‘Unnamed View’ is appearing. Any idea what I got wrong in the configs and codes below?

ui-lovelace.yaml:

title: xxxx
views:
  - !include /config/lovelace/my_view.yaml
  - !include /config/lovelace/view_garden_version2.yaml

my_view.yaml:

views:
  - path: default_view
    title: Home
    cards:
      - type: media-control
        entity: media_player.kdl_50w800c
      - type: entities
        entities:
          - sensor.fronius_ac_power
          - sensor.fronius_day_energy
          - sensor.fronius_total_energy
          - sensor.fronius_year_energy
        title: Solar Power
      - type: entities
        entities:
          - switch.bd1gpo1
          - switch.bd1gpo2
        title: Main Bedroom
      - type: entities
        entities:
          - vacuum.xiaomi_vacuum_cleaner
        title: Vacuum
      - type: entities
        entities:
          - sensor.bathroom_temphum_dht11_temperature
          - sensor.bathroom_temphum_dht11_humidity
          - sensor.bathroom_temphum_dht11_dewpoint
        title: Bathroom
      - type: weather-forecast
        entity: weather.xxxx
      - type: entities
        entities:
          - sensor.tasmota_si7021_temperature
          - sensor.tasmota_si7021_humidity
        title: Living Room
      - type: entities
        entities:
          - sensor.adguard_dns_queries
          - sensor.adguard_safe_browsing_blocked
          - sensor.adguard_average_processing_speed
        title: Cloud
  - badges: []
    cards:
      - entities:
          - entity: sensor.fronius_ac_power
          - entity: sensor.fronius_day_energy
          - entity: sensor.fronius_grid_usage
          - entity: sensor.fronius_house_load
        hours_to_show: 24
        refresh_interval: 0
        type: history-graph
      - entity: sensor.fronius_day_energy
        max: 100
        min: 0
        theme: default
        type: gauge
      - entity: sensor.fronius_ac_power
        max: 100
        min: 0
        theme: default
        type: gauge
      - entity: sensor.fronius_grid_usage
        max: 100
        min: 0
        theme: default
        type: gauge
      - entity: sensor.fronius_house_load
        max: 100
        min: 0
        theme: default
        type: gauge
      - grid_power_entity: sensor.fronius_grid_usage
        home_energy_entity: sensor.fronius_house_load
        production_is_positive: false
        solar_power_entity: sensor.fronius_panel_status
        title: Solar Power
        type: 'custom:power-wheel-card'
      - entities:
          - entity: sensor.fronius_panel_status
          - entity: sensor.fronius_day_energy
          - entity: sensor.fronius_house_load
          - entity: sensor.fronius_grid_usage
          - entity: sensor.fronius_total_energy
          - entity: sensor.fronius_year_energy
        type: entities
      - animate: true
        entities:
          - entity: sensor.fronius_ac_power
            name: Kitchen Temperature
            show_fill: false
            show_state: true
          - entity: sensor.fronius_day_energy
            name: Bedroom Temperature
            show_fill: false
            show_state: true
          - entity: sensor.fronius_grid_usage
            name: Kitchen Temperature
            show_fill: false
            show_state: true
          - entity: sensor.sensor.fronius_house_load
            name: Kitchen Temperature
            show_fill: false
            show_state: true
        hours_to_show: 24
        points_per_hour: 12
        refresh_interval: 0
        title: House Temperatures
        type: 'custom:mini-graph-card'
    path: energy
    title: Energy

view_garden_version2.yaml:

# lovelace_gen

title: Garden
path: garden
# icon: mdi:flower
# icon: mdi:tree
icon: mdi:sprinkler-variant
# theme: irrigation_theme
panel: true
cards:

  - type: custom:layout-card
    layout: horizontal
    cards:

      #==================
      #=== SYSTEM STATUS
      #==================
      - !include templates/garden/status/page_status.yaml


      #==============
      #=== SCHEDULES 
      #==============
      - type: vertical-stack
        cards:
          - type: conditional
            conditions:
              - entity: input_boolean.irrigation_master_control_switch
                state: "on"
            card: 
              !include templates/garden/cycles/page_cycles.yaml

          - type: conditional
            conditions:
              - entity: input_boolean.irrigation_master_control_switch
                state: "on"
            card: 
              type: custom:hui-element
              card_type: custom:state-switch
              entity: sensor.irrigation_ui_selected_cycle
              default: cycle1
              states:
                cycle1:
                  !include
                    - templates/garden/cycles/section_cycle1_2_schedule.yaml
                    - cycle: 1
                cycle2:
                  !include
                    - templates/garden/cycles/section_cycle1_2_schedule.yaml
                    - cycle: 2
                cycle3:
                  !include templates/garden/cycles/section_cycle3_schedule.yaml


      #=============
      #=== SETTINGS
      #=============
      - type: vertical-stack
        cards:
          - type: conditional
            conditions:
              - entity: input_boolean.irrigation_master_control_switch
                state: "on"
            card:
              !include templates/garden/settings/page_settings.yaml

          - type: conditional
            conditions:
              - entity: input_boolean.irrigation_master_control_switch
                state: "on"
            card:
              type: custom:hui-element
              card_type: custom:state-switch
              entity: sensor.irrigation_ui_selected_settings
              default: general
              states:
                general:
                  !include templates/garden/settings/general/section_settings_general.yaml
                rainfall:
                  !include templates/garden/settings/rainfall/section_settings_rainfall.yaml
                temperature:
                  !include templates/garden/settings/temperature/section_settings_temperature.yaml

This is the unnamed view tab that I’m trying to fix:

views:
  - path: default_view
    title: Home
    cards:

In your first view file, you don’t need ‘views:’ or the first ‘-’ as both are in ui-lovelace.yaml before the !include.

In ui-lovelace.yaml you don’t need title as it doesn’t relate to a view.

OK, I have made some changes as per your suggestion, now I have the “Energy” tab and the irrigation views. However, I am missing the “Home” Tab which is the first part of my my_view.yaml file. The new files are as per below:

ui-lovelace.yaml

#title: xxxxxx
views:
  - !include /config/lovelace/my_view.yaml
  - !include /config/lovelace/view_garden_version2.yaml

my_view.yaml:

#views:
   path: default_view
   title: Home
   cards:
     - type: media-control
       entity: media_player.kdl_50w800c
     - type: entities
       entities:
         - sensor.fronius_ac_power
         - sensor.fronius_day_energy
         - sensor.fronius_total_energy
         - sensor.fronius_year_energy
       title: Solar Power
     - type: entities
       entities:
         - switch.bd1gpo1
         - switch.bd1gpo2
       title: Main Bedroom
     - type: entities
       entities:
         - vacuum.xiaomi_vacuum_cleaner
       title: Vacuum
     - type: entities
       entities:
         - sensor.bathroom_temphum_dht11_temperature
         - sensor.bathroom_temphum_dht11_humidity
         - sensor.bathroom_temphum_dht11_dewpoint
       title: Bathroom
     - type: weather-forecast
       entity: weather.xxxx
     - type: entities
       entities:
         - sensor.tasmota_si7021_temperature
         - sensor.tasmota_si7021_humidity
       title: Living Room
     - type: entities
       entities:
         - sensor.adguard_dns_queries
         - sensor.adguard_safe_browsing_blocked
         - sensor.adguard_average_processing_speed
       title: Cloud
   badges: []
   cards:
     - entities:
         - entity: sensor.fronius_ac_power
         - entity: sensor.fronius_day_energy
         - entity: sensor.fronius_grid_usage
         - entity: sensor.fronius_house_load
       hours_to_show: 24
       refresh_interval: 0
       type: history-graph
     - entity: sensor.fronius_day_energy
       max: 100
       min: 0
       theme: default
       type: gauge
     - entity: sensor.fronius_ac_power
       max: 100
       min: 0
       theme: default
       type: gauge
     - entity: sensor.fronius_grid_usage
       max: 100
       min: 0
       theme: default
       type: gauge
     - entity: sensor.fronius_house_load
       max: 100
       min: 0
       theme: default
       type: gauge
     - grid_power_entity: sensor.fronius_grid_usage
       home_energy_entity: sensor.fronius_house_load
       production_is_positive: false
       solar_power_entity: sensor.fronius_panel_status
       title: Solar Power
       type: 'custom:power-wheel-card'
     - entities:
         - entity: sensor.fronius_panel_status
         - entity: sensor.fronius_day_energy
         - entity: sensor.fronius_house_load
         - entity: sensor.fronius_grid_usage
         - entity: sensor.fronius_total_energy
         - entity: sensor.fronius_year_energy
       type: entities
     - animate: true
       entities:
         - entity: sensor.fronius_ac_power
           name: Kitchen Temperature
           show_fill: false
           show_state: true
         - entity: sensor.fronius_day_energy
           name: Bedroom Temperature
           show_fill: false
           show_state: true
         - entity: sensor.fronius_grid_usage
           name: Kitchen Temperature
           show_fill: false
           show_state: true
         - entity: sensor.sensor.fronius_house_load
           name: Kitchen Temperature
           show_fill: false
           show_state: true
       hours_to_show: 24
       points_per_hour: 12
       refresh_interval: 0
       title: House Temperatures
       type: 'custom:mini-graph-card'
   path: energy
   title: Energy

dashboard view:

split your home and energy views into two separate files and include them both.

Thank you! This splitting it into two yaml files has fixed the problem.

cheers

Hi All. Wondering if anyone has an idea on this issue - I have an unnamed view but I can’t click on it to delete it. I’ve tried looking through the config to see if I can find the line but I cant see it.

This is in the default overview dashboard. When clocking on unamed view the dashboard is highlighted but the view stays on another dashboard. As you can see when I click on another dashboard the edit pen does come up.


Any help appreciated. Thanks

1 Like

Did you resolve that issue?