Villhellm / custom-sidebar

Custom Sidebar for Home Assistant
115 stars 23 forks source link

Sideside bar selections doubling up only on home screen #35

Open oneseventhree opened 3 years ago

oneseventhree commented 3 years ago

Hi,

On https://xxx.xxx.x.xxx:8123/lovelace/default_view my side bar doubles up items and looks like:

Screen Shot 2021-06-24 at 10 38 33 am

but on every other page (eg. https://xxx.xxx.x.xxx:8123/hassio/dashboard) it shows up right:

Screen Shot 2021-06-24 at 10 38 20 am

What's causing this?

This is my sidebar-order.yaml:

order:
  - item: Overview      # Overview
  - item: map
    hide: true
  - item: Logbook       # Logbook
  - item: history
    hide: true
  - item: HACS          # HACS
    href: /hacs/entry  
  - item: File Editor  # File Editor
    name: File Editor
    href: /core_configurator/dashboard
  - new_item: true
    item: Automations    # Automations
    href: /config/automation/dashboard
    icon: "mdi:robot"
  - new_item: true
    item: Scripts      # Scripts
    href: /config/script/dashboard
    icon: "mdi:script-text"
  - item: Media Browser # Media Browser
    hide: true
  - item: deCONZ          #deCONZ
    href: /core_deconz/dashboard
    bottom: true 
  - item: Developer Tools # Developer Tools
    href: /developer-tools/state
    bottom: true
  - item: Supervisor      # Supervisor
    href: /hassio/dashboard
    bottom: true
  - new_item: true
    item: Snapshots        # Snapshots
    href: /hassio/snapshots
    icon: "mdi:camera-plus"
    bottom: true
  - item: configuration   # Configuration
    href: /config/dashboard
    bottom: true
  - new_item: true
    item: Server Controls # Server Controls
    href: /config/server_control
    icon: "mdi:server"
    bottom: true  

Thanks!

Broekman commented 3 years ago

Same problem for me - all "new_item" double when on the main overview.

oneseventhree commented 3 years ago

Same problem for me - all "new_item" double when on the main overview.

did you find a fix? Mines doing it on all pages now

aquamarsmg commented 3 years ago

I got it working, and it was quite .... sad. If you add the .js to the configuration.yaml AND the lovelace resources, it gets doubled in the overview page.

Solved

oneseventhree commented 3 years ago

I got it working, and it was quite .... sad. If you add the .js to the configuration.yaml AND the lovelace resources, it gets doubled in the overview page.

Solved

I don't get what you mean? Are you able to run me through it?

aquamarsmg commented 3 years ago

Sure! So, if you installed it with HACS, or manually but did both the declaration in the configuration.yaml, AND the resources in Lovelave (gets done automatically when HACStalled...), you get duplicated items in your "dashboards", overview, whatever. I just kept the one from the configuration.yaml

frontend: themes: !include_dir_merge_named themes extra_module_url:

hope it works for you :D