
Ive tried above to show you what custom-ui can do. the 'problem' is that the new way of treating icons has caused the 'old' custom-ui to stop being functional in setting the attribute icon_color on entities. Well, not really sure what you are saying here, sorry. I am asking for a way to have core Lovelace set icon and icon_color globally.Ī simple entities card without modding in style = Lovelace? So the problem isn't Lovelace then? I dont ask to re-enable custom-ui (though wouldn't mind, maybe that's easily feasible with the change of 1 or 2 lines). I was merely illustrating what custom-ui can do, and what the feature request is about. This is a feature request to allow for setting icon_color on a HA global way, so whenever an entity is used in which ever Lovelace card, core or custom, it shows that color.Īnd yes the shown templates are JS, of course, since custom-ui uses that. HA changed the way icons are used from 110 on, which kills the custom-ui functionality for that. I know HA didn't deprecate custom-ui actively, that's why I started out saying: I wouldn't have asked if it were already possible. Which is the whole point of this feature request of course. This can be done in a custom card, on an entity level, on state change, the templates are javascript templates and not Jinja templates.Įxactly, not globally. It's only about changing 1 file, so must be doable.? Of course, if at all possible, and a change/edit of the current custom-ui files would be possible, I'd be glad to try and help realizing that. Or be satisfied with/ use a rather pale Homeassistant Lovelace interface.Ĭolor is a most striking aspect of system feedback. Without functional Custom-ui and no core Lovelace alternative for customizing these entities and properties users are forced to create terribly complex configs. # įorgive me the complexity of this, but that is really the purpose of the post: Even if we could, these stylings are only refreshed upon reload of the page, and not of the state of the entity. Be it core or custom.Įxample of an issue the now defunct custom-ui throws at the user:Ī mere custom:auto-entities card with all temp sensors in the system will become a flat and meaningless card, since without a lot of trouble, and yet again another custom card, like card-mod, we can't style these.

Makes it dead easy to have these entities show with a meaningful icon and icon_color in the frontend, and doesn't enforce styling these entities individually in the Lovelace card configs. Return '/local/weather/icons/' + state + '.png' Var quadrant = Math.round(Number(state)/45) 'mdi:arrow-right','mdi:arrow-bottom-right'] 'mdi:arrow-top-left','mdi:arrow-up','mdi:arrow-top-right', Var icons = ['mdi:arrow-down','mdi:arrow-bottom-left','mdi:arrow-left', If (state = 'home') return 'mdi:bluetooth' If (state = 'on') return 'mdi:toggle-switch'
