Icon colour not changing

I have a sensor set up in my yaml. all works fine…

  - name: "Hall Automations"
    unique_id: 24023050
    state: >-
        {% if is_state('input_boolean.eh_automation_status', 'off') %}
        Not Running
        {% else %}
        {% endif %}

Now I want to change the icon colour depending on if it’s on or off… Now this is where I am new territory…

Added a customize file.

  packages: !include_dir_named packages
  customize: !include customize.yaml

and added the actual file under config folder.

in the customize file added.

  friendly_name: Hall Automations
    icon_color: >
      if (state == 'Running') return 'rgb(255, 0, 0)';
      return 'rgb(0, 0, 0)';

Tried so many of the suggestion on here and nothing… No colour change to the icon at all.

Any help would be great, thanks.

do you have GitHub - andrey-git/home-assistant-custom-ui: Custom UI elements for https://home-assistant.io installed?