Giter VIP home page Giter VIP logo

Comments (18)

thomasloven avatar thomasloven commented on August 10, 2024 1

Load times should be shorter now.

(Monstercard did have a measureable delay, but that doesn't really matter, I'm just nitpicking)

from lovelace-auto-entities.

kmlucy avatar kmlucy commented on August 10, 2024

I have the same issue. I'm on v1.1 until the auto hide bug is resolved, but on Chrome on my Android phone, the auto-entities cards almost freeze the whole site trying to scroll through them. No issues on Chrome on Windows.

from lovelace-auto-entities.

syphernl avatar syphernl commented on August 10, 2024

This is probably a duplicate of #32

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

Looks like this issue is resolved with 1.3 (or 1.2).
Was switching from 1.1 because 1.2 had another issue (cards not showing up).

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

It still seems a little bit slower than monster card. Monster card was just there. Auto entities pops up and takes around a second or two.

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

To those who switched to auto entities.

I noticed something strange, while comparing monster and auto.
I deletet monster card within hacs. HACS successfully deleted the folder in the www/community folder. After that it isn't available in the HACS store any more.
The thing is even after restarting my home assistant instance the "monster card" cards still work.

I double checked it, the .js file isn't there any more but it still works.
@kmlucy could you pls try to reproduce this. You could move the folder somewhere else and try if lovelace still accepts the cards.
Looks like it's saved somewhere else too. Unfortunately we can't open an issue in the monster card repo any more.

from lovelace-auto-entities.

kmlucy avatar kmlucy commented on August 10, 2024

I see the load time, but it's minor enough to not be a nuisance with my cards, probably less than one second.

I can't replicate the behavior you are seeing, but it sounds like it may be a cache issue to me.

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

Monster Card had no delay.

Thanks for trying it out.

I already tried deleting the cache of my browser. Did not help. Is there a way to delete the cache of Home Assistant?

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

Unfortunaltely I have to tell that in my experience auto entities is much slower than monster card. I can't tell why. Maybe it's too much to go through all the automations (see example in first post).I have around 200 automations.

Monstercard did not load, it was just there. When I click the view with the automations now (auto entities) it first loads for seconds (3-4s).

Could you try my view?

  - title: Automations
    icon: mdi:home-automation
    id: automations
    cards:
      - type: custom:auto-entities
        show_empty: false      
        card:
          type: entities
          title: 'Off'
        filter:
          include:
            - entity_id: "automation.*"
              state: "off"  
      - type: custom:auto-entities
        show_empty: false      
        card:
          type: entities
          title: 'On'
        filter:
          include:
            - entity_id: "automation.*"
              state: "on"  

from lovelace-auto-entities.

thomasloven avatar thomasloven commented on August 10, 2024

With the latest release on hacs it's pretty much instant for me on a page with 20 auto-entities cards and approximately 200 entities, so I don't know what to say...

I had some trouble with the release tagging, so it is possible (but unlikely) that you got an in-between version if you're using hacs. In that case, reinstalling might help.

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

Did reinstall it, thanks. Will keep an I on it. Now it almost loaded instantly.

Still weird that monster cards worked instantly for me and you measured a noticeable delay there.

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

@thomasloven do you have an idea why my monster cards still work, although I deinstalled monster card. I even checked that the folder is deleted in the www/community folder.

from lovelace-auto-entities.

thomasloven avatar thomasloven commented on August 10, 2024

I can think of three options.

  • You forgot a reference to it somewhere in your resources section.
  • You didn't really clear your cache (this is harder than you'd think). To make sure, try it in incognito browsing mode.
  • Some other plugin you're using is actually including monster-card via a CDN of some kind. I don't know of anyone actually doing this, but it is possible.

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

Yes, I have the monster card reference still in my resources section.
The thing is this points to a folder that didn't exist any more. The monster card file isn't in that folder any more.

I commented "in" the resources section of monster card again to try it out and even with our incognito mode, the monster card isn't available any more.
Custom element doesn't exist.
This is what I expected from the beginning.

Still had it working on another PC. After clearing my cache like this:

Push F12 to open dev console. Right click refresh button. Select bottom option to clear cache and do a hard reload.

It now also has this "not exist" warning. Did not know that the Browser saves the .js file in it's cache.

Thanks for clearing that up for me!

from lovelace-auto-entities.

thomasloven avatar thomasloven commented on August 10, 2024

Is this resolved then?

from lovelace-auto-entities.

h4nc avatar h4nc commented on August 10, 2024

Well, not really.

For me still monster card worked instantly and auto entities takes a moment to load.
Would like to leave it open to see if other users that switch from monster to auto have this too.

from lovelace-auto-entities.

1SK98 avatar 1SK98 commented on August 10, 2024

Hello everyone,

currently i run into a similar problem. I use a browser-mod popup to control my lights in detail.
Within the popup i use auto-entities to populate a grid layout. Because i want to style the grid-layout i need to nest everything within a custom:mod-card.
With this configuration i get a visible delay until the items in the grid layout appear (about 2 seconds), after i open the popup.
When i remove the custom:mod-card everything is instantly loaded without any delay.

- type: custom:mod-card
  view_layout:
    grid-area: "szenen"
  card_mod:
    style:
      #apply styles here
  card:
    type: custom:auto-entities
    card:
      type: grid
      square: false
      columns: 4
    card_param: cards
    filter:
      include:
        - domain: scene
          entity_id: "*wohnzimmer*"
          options:
            type: "custom:button-card"
            template: hue_scene_circle

Is this behaviour reproducible?

from lovelace-auto-entities.

ildar170975 avatar ildar170975 commented on August 10, 2024

This shows immediately after F5:

image

type: custom:mod-card
card_mod:
  style: |
    ha-card {background-color: lightgreen}
card:
  type: custom:auto-entities
  card:
    type: grid
    square: false
    columns: 4
  card_param: cards
  filter:
    include:
      - domain: light
        options:
          type: custom:button-card

Suggest to test with as minimal amount of code as you can. Start with removing a "layout-card" code & revise your filter to smth easier.

from lovelace-auto-entities.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.