Good evening everyone, I included the customize.yaml in the configutation.yaml as per the description, until a few weeks ago it worked perfectly I saw all the sensors modified with the chosen icons, now it no longer shows anything, but the standard icon has changed something?
Please share the entity configuration and customization configuration for an entity that no longer has it’s icon customized.
binary_sensor.esp32_sensor_door_frigo_door_frigo:
templates:
icon: >
if (state === 'on') return 'mdi:fridge-outline';
return 'mdi:fridge';
icon_color: >
if (state === 'on') return 'red';
return 'grey';
homeassistant:
packages: !include_dir_named packages
customize: !include customize.yaml
Up until a week ago the config worked
What is this, JavaScript?
Two things:
- Home assistant uses jinja for templates.
- Customize does not support templates.
Are you using something like custom_ui?
I included the customize .yaml in the config .yaml and created the customize .yaml file and inserted all the customizations as I showed you, but before it worked, now it hasn’t worked for some time.
And as I said:
You must be using a third party tool:
So whatever third party tool you are using has the issue.
thanks I solved the problem, I installed custom.ui added the resource in lovelace and now it works
Obviously you did something a week ago that caused the problem.
The first few lines of what you posted belong in the customize
section of your configuration.yaml
file. You have customize
split off into a separate file named customize.yaml
so that’s where those lines belong.
In addition, your customization includes things (JS code) that are not supported by Home Assistant natively. They require the installation of a custom component called custom_ui.
It worked before you changed things. How many things did you change to cause the failure? For example, you said you had install custom_ui. That doesn’t disappear on its own so what changes did you make recently?
I don’t know what could have happened, but I didn’t make any changes, the custom.ui was already installed, now what I did was uninstall it and then install it again and added the string in resources, but it suddenly stopped working, now with this that I have done it has started to make me see the icons again
The way you have described it sounds like you installed and configured it twice. Is that correct?
I don’t know what happened, I uninstalled it anyway and then reinstalled it