thanks, added it to the readme
@TriStone You can also just add the repo to HACS and click install.
@Mariusthvdb Great work! Iām not sure why this functionality isnāt just available out of the box, but here we are.
should be HACS compatible right now?
It is.
I tried to install and it works.
But I guess Releases will have to be handled to let HACS find potential updates
releases arenāt necessary. It will still work, it just wont have a nice rev number.
what exactly are you asking? The āoldā custom-ui supported state-card_mode: badge, but Modern Lovelace has its own definition of badges, and card-mod knows how to customize thoseā¦
badges:
- entity: person.marijn
style:
ha-state-label-badge:
$:
ha-label-badge:
$: |
.label-badge .label span{
{% if is_state('person.marijn','home') %} color: red;
{% else %} color: black;
{% endif %}
}
.: |
:host {
{% if is_state('person.marijn','home') %} --label-badge-red: green;
{% else %} --label-badge-red: grey;
{% endif %}
}
so depending on your specific goals, the answer may vary
My goal is to display badges in a card like;
this isnt supported anymore in Lovelace, see this thread about a year agoā¦
You could replace it with multiple-entity-row though:
After upgrading to 0.111.1 i get tons of these errors.
2020-06-12 14:41:45 ERROR (MainThread) [frontend.js.latest.202006032] https://192.168.1.24:8123/local/custom-ui/custom-ui.js?v=20200528:31:16122 Uncaught TypeError: Cannot read property 'state' of undefined
I noticed you updated custom-ui.js 3 days ago and installed latest releaseā¦
Why do you keep copying the exact same posts?
Iāve answered on my repo.
Sorry, i read about issues in the forum and was thinking you were not able to answer meā¦
Did you ever get this to work?
Is this still possible? Ive been trying forever now to get this slider and control to work in one line, but it just doesnāt show up.
see this post - CustomUI - discussion thread
short answer - most of CustomUI doesnāt work with Lovelace - only some limited functions such as icon colouring (which is I think the only reason this thread is still live)
thatās a shame, alright thanks for the answer