Closed ildar170975 closed 2 years ago
Probably related to https://github.com/thomasloven/lovelace-card-mod/issues/165
This should be better now.
Unfortunately, the flickering still present.
May be a bit less but still there.
Since states for these entities on the card are not changing (only attributes may change - like for that device_tracker
entity) - I wonder why the card is redrawing itself?
Let's check this card:
type: glance
entities:
- entity: sensor.cleargrass_1_pm25
The sensor.cleargrass_1_pm25
sensor is updated and may be changed every 30 sec.
I see that the card redraws itself when the state is changed (i.e. the card "flickers").
But the previous card does not contain changing sensors....
HA 2022.6.4, card-mod 3.1.5 - do not see the flickering! Even with a frequently changing entity. Probably was solved in 3.1.3 .. 3.1.5. Thank you, Thomas!
My Home Assistant version: 2021.12.9 card-mod 3.1.1
My lovelace configuration method (GUI or yaml): storage/yaml
What I am doing: Applying a card-mod-theme for glance element.
What I expected to happen: Style is working stable.
What happened instead: The card's contents is flickering.
Minimal steps to reproduce:
Create a Glance card:
The card must contain an entity whose attributes may change - I use a
device_tracker
(ASUSWRT integration) which may be alwayshome
ornot_home
but has a changing attributelast_time_reachable
.See that the card is displayed stable:![image](https://user-images.githubusercontent.com/71872483/149799670-798c1fa4-5fe2-4c98-aaae-c2ffcbfeb2fd.png)
Add a card-mod style to the card:
See that the card is displayed stable, the style is applied:![image](https://user-images.githubusercontent.com/71872483/149799944-978122ba-6313-4b64-b2ec-561a04860196.png)
Remove the added card-mod style from the card.
Add a card-mod-theme:
Activate this theme.
See that the card is flickering sometimes (at least 1..2 times a minute), the style is applied (check the gif below):![Untitled Project345678](https://user-images.githubusercontent.com/71872483/149802922-d83adfb8-5394-4f8b-af24-e2a2eb8a1c50.gif)
I guess that the flickering occurs when some entity is changed internally (here -
device_tracker
).Error messages from the browser console: none
By putting an X in the boxes ([x]) below, I indicate that I:
[x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[x] Have made sure I am using the latest version of the plugin.
[x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.