yep very wel possible.
Keep it all together nice and tidy.
just beware to have the proper headers in place, along with careful indenting.
strange behavior might occur though. Groups declared in the packages aren’t shown after one clicks the reload groups button in configuration. Also, in my setup, script behave unreliably when declared in the packages, so I always put these in their dedicated /config/scripts folders.
Other than that, packages are very nice to have. very easy to take out also when testing and debugging…
Mariusthvdb:
Keep it all together nice and tidy.
just beware to have the proper headers in place, along with careful indenting.
I already use packages, but never with
homeassistant:
customize:
wondering if in packages do I have to put homeassistant: or not?
for sure, if you want to customize, it should be under homeassistant:
Just follow the order of your configuration.yaml
It does not work with Badges in state cards
Have you an idea for this ?
# 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
I have try all these properties:
primary-text-color
label-badge
ha-label-badge-color
label-badge-blue
Bu no one works.
The color of text and icon are been modified only in detail card.
andrey
(Andrey)
March 30, 2018, 8:59am
27
Yes i am having the same problem it does not work it just stays red.
sensor.window_eliott_top:
friendly_name: Eliott
templates:
theme: >
if (state = 'Open') {
return red_badge;
} else (state = 'Closed' ) {
return green_badge;
}
If I do this the Badge goes green.
sensor.window_eliott_top:
friendly_name: Eliott
theme: green_badge
This is the frontend stuff
frontend:
themes:
green_badge:
label-badge-red: green
label-badge-border-color: lightgrey
label-badge-background-color: white
label-badge-text-color: green
red_badge:
label-badge-red: grey
label-badge-border-color: lightgrey
label-badge-background-color: white
label-badge-text-color: red
1 Like
arsaboo
(Arsaboo)
April 2, 2018, 3:31pm
29
Is rgb_color
working anymore with custom_ui
for you all? Looks like we need to switch to hs_color
2 Likes
homeassistant:
customize:
sensor.central:
templates:
rgb_color: [255,0,0]
is this expected to work for example ?
I am getting this :
Vlad
(Vladislav)
April 2, 2018, 11:50pm
31
primary-text-color: works to change a text color.
But rgb_color, label-badge-red and any other combination not working to change badge color.
bachoo786
(Bachoo786)
April 3, 2018, 12:00am
32
Hi @anon57099626
What transport sensor are you using for your tube I.e. central line ?
PianSom
(Pian Som)
April 3, 2018, 2:04pm
34
Even though I was the OP, can I suggest that this issue is moved to CustomUI - discussion thread . That way you can be more sure hat @andrey is aware.
Ok Got the Custon_ui badges colour to work.
Had to use customize_glob.yaml
"*":
custom_ui_state_card: state-card-custom-ui
"sensor.window_*":
state_card_mode: badges
templates:
theme: >
if (state === 'Open') return 'red_badge'; else return 'green_badge';
"sensor.door_*":
state_card_mode: badges
templates:
theme: >
if (state === 'Open') return 'red_badge'; else return 'green_badge';
"*_temperature":
state_card_mode: badges
templates:
theme: >
if (state > 21) return 'hot'; else if (state >= 19 ) return 'comfortable'; else return 'cold';
"*_humidity":
state_card_mode: badges
templates:
theme: >
if (state > 65) return 'hot'; else if (state >= 55 ) return 'comfortable'; else return 'cold';
Ali_Az
(Ali Az)
April 5, 2018, 9:09am
36
Hi
can you please explain what you did (step by step)?
Guys, do you know if I could spread the badges a bit more or put them in center?
1 Like
Good evening. The customize for icon color change used to work but now doesn’t. My custom ui version is CustomUI: 20180330
Please kindly advice.
customize:
binary_sensor.door_back_sensor:
templates:
rgb_color: "if (state === 'on') return [200, 100, 30]; else return [10, 20, 30];"
PianSom
(Pian Som)
April 25, 2018, 2:22pm
39
See CustomUI - discussion thread - there has been a change in HA colour usage
2 Likes
Rhoos
(Ricardo Hoos)
June 16, 2018, 4:45pm
41
Regards Norick, could you share the “script” of this group, to learn how it is done for my system? Thank you.
Hey @Rhoos , what exactly you want me to share?