-
Notifications
You must be signed in to change notification settings - Fork 97
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_color don‘t work anymore with ha 0.110 #184
Comments
no sure about the format you use, (and not in 110 yet) but did you try
assuming this is an entity being either 'on' or 'off' (and you did have custom-ui working before ?) if not that would be a huge breaking change on HA.... Hope this isn't true. |
It was working with ha version 0.109.
|
seems core HA changes the way it treats icons, so all custom cards using icons the 'old' way are touched by this. Since @andrey-git is no longer here, it seems this deprecates custom-ui even further, (was still only using icon and icon_color templates myself)... |
Yes, your template is shorter. But if the entity is 'unavailable' it is also '#00FF00'. |
this is now solved, Ive created a PR, but the fix is explained here: hurray! |
I have tried to replace my state-card-custom-ui.html with the one in your branch but the icon_color is still not functioning correctly. Do i need to do anything else other than replace the file with the edited one and clear the cache on my browsers ? |
not really.... only issue I have found just a few moments ago is with the iPhone Safari browser. Unless you're talking about that, the other installs should work. Hope it to be a cache issue. Fear it is a iOS thing though, as there are other issues reported also concerning HA on iPhone. |
No problem for me with iPhone safari browser. |
good the hear... edit: something else: do you also notice a certain lag for the icon change? On 109 when toggling a switch, the icon and icon_color change was immediate. on Ha 110, this is happening significantly slower. |
same problem
|
@Mariusthvdb do you mean a lag if you open homeassistant in safari? Edit: tested on safari. There is also no lag or delay. |
Did you edit the state-card-custom-ui.html? |
Yes,i did. |
any errors in inspector? |
I have resolved my issue. |
0.110.1 is ok thanks all. |
Making the changes in 5892 and 6028 fixed everything for me Steps:
7 - RESTART your HA EDIT - Just tried it on my second HA installation and works flawlessly too |
I did the exact same thing before, asked to do so by Thomas, (see link) and kept receiving errors in inspector about this home-assistant/frontend#6028 (comment) Nope: and proof it loaded the correct file: Are you sure your cache isn't still loading (took more than a few restarts in my setup to get the edited custom-ui card to work..) btw you're missing a step 1a2: comment the configuration section in configuration.yaml.... need to do that before restart.... edit duh, I had tested with the old version html before my own edits...... works now indeed, so thanks for reminding me to try again ;-) ! see here for more info: home-assistant/frontend#6028 (comment) |
Checklist
Browser + Version:
Safari, Chrome
CustomUI version:
20190518
Home Assistant release (
hass --version
):0.110.0b0
Problem-relevant
configuration.yaml
entries:Problem-relevant Home Assistant log entries:
Any errors from browser Javascript console:
The text was updated successfully, but these errors were encountered: