-
Notifications
You must be signed in to change notification settings - Fork 29
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
Row/card inside config-template-card is flickering if entity is customized by Custom UI #59
Comments
well, I am not sure just yet which causes what. to start with: my person entities only use the mobile_app device_tracker, so it only updates when those update. Having said that: I have a set of person entities with customized entity_pictures showing dynamically on several Maps (see below), and they are rock solid. however, the HA Frontend changed quite a bit, and now 'subscribes' to the entities. config-tmeplate-card always was a card in my configs that caused some serious lag/performance, thats why I was very cautious in using it. It might be that all has come together now, and the flickering you experience is cause by the Congo-template-card updating the frontend. Did you test without it? (in other words: is it config-template-card or is it something else...) fwiw, this is an example config:
and it doesnt suffer the frequent updating @bratanon suffers in the linked frontend issue either. As said, rock solid currently. and customizations:
for all person entities.... |
btw @ildar170975 Ildar, please try if rewriting your template in a better way helps:
|
Surely I may rewrite the code.
vs
The same approach is in C/C++ (using it from 1997).
I noticed a flickering in the Map card when the The same was with entities inside Currently I only keep using Custom UI for:
|
there are so many variables in this post, it is hard to track tbh. I didnt say the template was wrong, I just asked you to try the cleaner method. It is what is working in my 3 test setups, so I can compare. as for the multiple-entity-row: I have several card setup with that where custom:auto-entities is filled with eg switches, (and their power and energy) or lights: and none of them blink at all, and have customized icons and/or color. so hard for me to reproduce that person entities are spot on, no blinking at all, and customized in rather an extensive way in my config. config-template-card is a hard one for the system, and I do feel we need to keep it at a minimum, as it seems to recalculate anything in the card when the variable changes. this can truly become cumbersome depending on the embedded card config. So if we want to get this further, I feel we need to break down in a single problem issue, and go from there |
@ildar170975 I have tested your config now (for the first icon flickering problem you mentioned), and I can not reproduce the issue you having with config-template-card. This got me thinking. As we are doing this on the client side (browser), in some cases, the browser could be the failing point. Could this be the case here? |
Same with the |
Could be.
a) was happening in Chrome (cache cleared many times within these last week), It's OK that someone do not see it. I will continue testing Custom UI. |
closing as this can not be reproduced. |
please be nice, and help us help you. no need to be so personally involving. I guess what I was saying is we need more to be able to boil it down to custom-ui |
No need to be offended. We tested this in a clean install of HA, and it works like it should for us. Why its not working for you in your setup is impossible for us to tell when we dont have access to your whole setup. When not testing on a clean installation, there are so many other possibilities of failure and things that could cause the issues you are seeing, but we are unfortunately not able to investigate your specific setup. I did test this with the cards you mentioned, and the result was fine. That why we concluded that custom-ui works when no other things interfere with it, so it has to be something special in your setup. |
This issue appeared after updating to some of the latest version of Custom UI.
Currently using Custom UI 20220419.1 (Win10x64, Chrome).
When a customized entity is inside a
config-template-card
it may loose it's color.The code:
The entity is customized by Custom UI:
The icon is flickering:
A similar case - when the customized entity is used inside
multiple-entity-row
insideconfig-template-card
:Customization is just setting an
entity_picture
value (not dynamically changing value).Probably a similar case - a customized
person
entity placed inside a map card WITHOUTconfig-template-card
- then the whole map is flickering and restoring it's scale (described here - home-assistant/frontend#12357).The text was updated successfully, but these errors were encountered: