-
Notifications
You must be signed in to change notification settings - Fork 236
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
icon_adaptive_color always show first color threshold if entity attribute selected #1129
Comments
Retest with this config:
|
I see, there is a problem with attribute. For you - a suggestion: when you will post a code next time for issues: |
@akloeckner
In case of using |
I am not following, which particular my config do you mean? |
Ok, here
With this config It'll set |
Agreed. |
My code is
I just adapted yours for my sensors (changed entities and thresholds values) |
Recheck with 0.12.2-dev.2 |
Yep, in dev.2 it sets color in |
I think, the icon (and also the name) do not use attribute for calculating their colours, see here: Line 241 in 49ca1cd
And here Lines 152 to 156 in 49ca1cd
Does the colour become correct, when you hover over a point? |
yep, it does |
👍 I cannot promise anything right now. But that should be solvable... |
kalkih#1129 Just a quick stub. To be tested still.
Could you check out #1131, please? It seems to work on my end, but I did not thoroughly test it. |
Tested with that js and still an icon uses the 1st color:
|
Hmm... Did you change the URL (HA side caching) and reload the page (browser side caching)? If yes, is it also wrong with soft transition? |
What I usually do is:
|
I believe, HA has a caching mechanism, which will result in the server not serving the changed file to the client, if the URL is unchanged. That's why I always change the resource URL before your step 4. (Edit dashboard -> manage resources -> add some arbitrary digits to the URL: |
@akloeckner Let's release it )))). |
Alright. 👍 |
I have a graph for openmeteo weather:
And it's colors are correct except for the icon.
The text was updated successfully, but these errors were encountered: