Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sideside bar selections doubling up only on home screen #35

Open
oneseventhree opened this issue Jun 24, 2021 · 5 comments
Open

Sideside bar selections doubling up only on home screen #35

oneseventhree opened this issue Jun 24, 2021 · 5 comments

Comments

@oneseventhree
Copy link

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
Copy link

Broekman commented Jun 29, 2021

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

@oneseventhree
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link

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:
- /hacsfiles/custom-sidebar/custom-sidebar.js

hope it works for you :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants