CustomUI - discussion thread

What i mean is the following:
when i go to the customization ui and want to change the attributes for an entity i can see between other options the following:

Schermata 2020-05-29 alle 11.55.10

That, i think, is related to the old custom_ui or am i wrong? In case it is, how to delete those entries as i don’t have anymore nothing related in the various configs?
Hope to be clear now… :pray:

must confess I have never used the configuration option for customization at /config/customize

as I have stated in the readme, there will be remnants of states ui.

You seem to ask everything I described in the Repo…

Yes, you’re right and please pardon me… :pray:
How we will be informed about updates?

‘Watch’ the repo…

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 :wink:

releases aren’t necessary. It will still work, it just wont have a nice rev number.

@Mariusthvdb your custom-ui fork supports badge(s) in state cards?

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 :wink:

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