maurizio53
(Maurizio Fabiani)
May 29, 2020, 9:58am
363
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:
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…
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…
maurizio53
(Maurizio Fabiani)
May 29, 2020, 11:22am
365
Yes, you’re right and please pardon me…
How we will be informed about updates?
thanks, added it to the readme
stray
June 1, 2020, 3:25am
368
@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.
stray:
HACS and click install.
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
petro
(Petro)
June 3, 2020, 12:30pm
371
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
My goal is to display badges in a card like;
# CustomUI Features
* [Customizer component](#customizer-component)
* [CustomUI panel](#customui-panel)
* [Global Features](#global-features)
+ [Hiding entities from default view tab (HA 0.62+)](#hiding-entities-from-default-view-tab)
+ [Template attributes [New in 20170927]](#template-attributes)
+ [Icon Color](#icon-color)
+ [Action name](#action-name)
* [Features available for all domains](#features-available-for-all-domains)
+ [Context-aware attributes](#context-aware-attributes)
+ [Badges in state cards](#badges-in-state-cards)
+ [Per entity theming (Requires HA 0.50+)](#per-entity-theming)
+ [Secondary custom UI](#secondary-customui)
* [Features available for almost all domains](#features-available-for-almost-all-domains)
+ [You can always show the last-changed text](#you-can-always-show-the-last-changed-text)
* [Features available for light, cover, climate, "plain", and "toggle" cards](#features-available-for-light-cover-climate-plain-and-toggle-cards)
- [You can hide the control altogether](#you-can-hide-the-control-altogether)
- [You can add extra data below the entity name](#you-can-add-extra-data-below-the-entity-name)
- [Add badge to the state card](#add-badge-to-the-state-card)
This file has been truncated. show original
this isnt supported anymore in Lovelace, see this thread about a year ago …
You could replace it with multiple-entity-row though:
maurizio53
(Maurizio Fabiani)
June 12, 2020, 12:44pm
376
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.
maurizio53
(Maurizio Fabiani)
June 13, 2020, 6:08pm
378
Sorry, i read about issues in the forum and was thinking you were not able to answer me…
NiMa008
(nick)
September 14, 2020, 2:55pm
379
Did you ever get this to work?
NiMa008
(nick)
September 14, 2020, 2:57pm
380
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.
walaj
(Jon Waland)
September 15, 2020, 10:01pm
381
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)
NiMa008
(nick)
September 16, 2020, 4:22pm
382
that’s a shame, alright thanks for the answer