Customize Templates not working?

Excellent detailed step by step explanations Marius, thanks! I think only thing missing is

customizer:
  custom_ui: hosted

in configuration.yaml

With your help, I got CustomUI working (I upgraded to 0.81.6 and I had the customization_glob wrong). Not sure, which one solved it.

However, unfortunately neither icons nor colors are changing still. So sad.
Do you have to be on the default template to have it working? I’m on dark orange.

Thanks again!

No, I dont use that. You only need to use 1 setup method of the possible ones. I use the automatic setup using the .update.sh and download the custom-ui files locally. If you use the hosted setup, the files are read from the custom-ui server.

Not sure at you mean here, but I take it you’re referring to a theme? That shouldn’t have to do anything with custom-ui.

One thing important: if the sensors are template sensors, most of the customizing is done in the sensor declaration, and not via custom-ui.

Not sure if you posted that already, but what type of sensor are you trying to customize, please show (make a screenshot) the sensor on the dev-state page?

Heya Marius, it finally works!
I have tried so many things and installed, uninstalled and reinstalled CustomID, upgraded Hassio and various addons that I’m not sure why or how it started to work. But finally it does. Very happy indeed.
Thanks for all your help and patience!

1 Like

Hi all

is this a valid customization?

person.me:
  icon: mdi:human-male
  templates:
    icon_color: >
       if (state === 'home') return 'rgb(255, 0, 0)';
       return 'rgb(0, 255, 0)';
    _stateDisplay: >
       if (state === 'home') return 'A casa';
       return 'Fuori casa';

Only the icon: is working, the icon_color: and _stateDisplay: aren’t.

Any advice?

Thanks

depending on your version of HA, at least _stateDisplay isn supported any longer.

For these customizations to work you have to have custom-ui installed, did you?

also, person.me probably isn’t a correct entity_id? make that person_me.

My version is latest, 0.88

I have custom-ui installed, but I don’t know which version is since I’m not upgrading from a long time.

This is my config

  extra_html_url:
    - /local/custom_ui/state-card-custom-ui.html
    - /local/custom_ui/custom-weather-card.html
    - /local/custom_ui/hass-fontawesome-solid.html
    - /local/custom_ui/hass-fontawesome-brands.html
  extra_html_url_es5:
    - /local/custom_ui/state-card-custom-ui-es5.html
    - /local/custom_ui/custom-weather-card.html
customizer:
  custom_ui: local

Is there any other way to change color and state ?

person is the new entity with 0.88 and person.me is what I’ve defined in configuration.yaml

Thanks

ok.
I don’t know about person yet, so best ask others about that.
State won’t be customizable any longer, until a new way has been developed.

icon and icon_color still work, at least in 87.1

again, if person is customizable I wouldn’t know. Have seen issues in Lovelace with state filters on sensors and device_trackers too, so I could very well be Not Yet…

1 Like

Only icon: seems to work.

I’ve removed the _stateDisplay and leaved the icon_color, but it does not work.
The person state is like device_tracker, home or not_home.

Really strange…

Have same issue in 0.88 - works in 0.87.0

the base card type was changed in 88. IT could be related to that.

if so, please file an issue at @andrey s repo for custom-ui https://github.com/andrey-git/home-assistant-custom-ui/issues

icon_color is rather essential in the setup both Lovelace and non lovelace, can’t imagine that too being deprecated.

I can’t file the issue, since Im on 87.1 and icon_color is still working

Issue created: https://github.com/andrey-git/home-assistant-custom-ui/issues/168