Lovelace is very laggy / none responsive

My frontend Lovelace seems to be very laggy, and at times, it just doesn’t work…meaning I cant interact with any entities.
For example a light card, I cant toggle the light on or off from the main lovelace view, but if click the 3 dots overflow menu, and toggle the light from there it works.
Same problem with switches, and sensors do not seem to update ‘real time’
If I refresh lovelace, I can maybe use it ‘normally’ once, but then back to the same problem(s)
I can see nothing obvious in log file apart from this:

2019-02-24 23:45:57 ERROR (MainThread) [frontend.js.es5.201902200] http://hassbian.local:8123/lovelace/0:0:0 Uncaught 
2019-02-24 23:45:57 ERROR (MainThread) [frontend.js.es5.201902200] http://hassbian.local:8123/local/button-card.js?v=0.0.5:1:39 Uncaught TypeError: Cannot convert undefined or null to object

My setup is really not very complicated, and I don’t have much hardware…just some mi-light bulbs and a couple of nodemcu sensors running tasmota, and a couple of sonoffs flashed with tasmota.

HA version 0.88.1 running on a Pi

Do you have another card in lovelace? The error is about a button card.

No, I have no button cards displayed.
I do have it listed in my resources though
Frontend JavaScript is set to latest
Just updated some custom cards…

2019-02-25 11:43:59 ERROR (MainThread) [frontend.js.es5.201902200] http://hassbian.local:8123/lovelace/5:0:0 Uncaught 
2019-02-25 11:43:59 ERROR (MainThread) [frontend.js.es5.201902200] http://hassbian.local:8123/local/tracker-card.js?v=1.2.5:1:1 Uncaught SyntaxError: Identifier 'TrackerCard' has already been declared
2019-02-25 11:43:59 ERROR (MainThread) [frontend.js.es5.201902200] http://hassbian.local:8123/local/card-tools.js?v=deb8e3:1:16 Uncaught NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry
2019-02-25 11:44:00 ERROR (MainThread) [frontend.js.es5.201902200] http://hassbian.local:8123/lovelace/5:0:0 Uncaught 

hmmm, might be it.
in the www folder, did you do any changes to the tracker-card?

If you remove (#) the cards from the config. Do you get the error?

clear you cache and refresh the page. Make sure your resources have a question mark at the end. Also, make sure your resources are up to date.

All resources upto date, cache cleared, and OS updated.
Still problem persists.
I’ll try another reboot of the pi…ya never know… although this will be the umpteenth boot

What browser? Chrome? Also, do you have that question mark at the end of the resource? Some browsers won’t update without it (Well, they will, it’s just a pain sometimes).

                                         |
                                         V
  - url: /local/custom_ui/weather-card.js?
    type: js

EDIT: Like the iOS app for example. Without that ?, it takes an act of god to get it to use the new version of a card if you replace it.

I’m actually on Samsung internet browser.
But yes, I have the ?

did you update card-tools and tracker-card? If it’s not too much trouble, try HA on another browser.

Hi,

I detected some issue with light card after 86.4 (this work very good!), sometime if we push at different lights the component don’t responsive and the light not change the state… this issue I detected with 87.0 version and now with 88.0 version…

Antoni.

Hi…

If we push in the center of the bulbs my lights don’t work!!, but if we push in a top, bottom, or in some corners of the lights now its right!! and the light change correctly.

The problem you are reporting isn’t at all related to this issue. You probably ought to start another thread.

I initially though this, but…

It seems there may be some truth to this.
If you are referring to the entity card in the lovelace frontend…I have noticed that there does indeed appear to be different areas of the bulb image registering touches.
So if I touch the top of the image, works OK, if I touch the centre not so much.
Is this one for a bug report perhaps?

Just a question, does it not work where the Icon is located? I would assume that’s in the center. If that’s the case, this would be a bug IMO.

It’s hard to explain…if I click right at the top of the bulb icon, it will toggle, if I click at the centre it does not.
I’ll attempt to capture this later when I’m home

I think the icon is capturing the click event, which can happen in UI’s. So instead of the click event getting registered to the card (and firing the correct action), it’s getting registered to the icon (which does not have a callback to do anything).

If that is the case, it’s definitely a bug.

I’m really sorry, you’re absolutely right I think it’s a bug.

Hi All,

With 0.109.2 same. When I want add a new card using the UI it freeze… nothing that you can do then close browser, reopen browser do it again.