Hello.
I had been running Home Assistant in VirtualBox VM on my Win10 PC for a couple of years (using VBoxVMservice). It decided to crash couple of weeks ago, so I am now running Home Assistant as a VM on unRAID after starting from fresh (didn’t use a backup to transfer to the new instance because there were some integrations and entities that really just took up resources). I did open the backup so I could pick and choose from the different YAML files. Most things work just like I needed them too, except my customized icons based on state (like garage doors)
In configuration.yaml, I included
homeassistant:
customize: !include customize.yaml'
In customize.yaml, I have
cover.2_car_garage_door_opener:
friendly_name: '2-Car Garage Door Opener'
templates:
icon: >
if (state == 'open') return 'mdi:garage-open-variant';
if (state == 'closed') return 'mdi:garage-variant';
return 'mdi:garage-alert-variant';
icon_color: >
if (state == 'open') return 'red';
if (state == 'closed') return 'green';
return 'yellow';
This used to work perfectly on my old system (was a little out of date with updates), so I’m not sure if any recent changes in the OS are changing how the customizations must be written.
Any help is appreciated.