Customize Entities

Hello Every Body, I recently change my configuration from a raspberry pi4 to my NAS on docker and I migrate integration et configuration.
I have some problem with Customize, In my configuration.yaml I have
customize: !include customize.yaml
In my Customize.yaml

binary_sensor.rpi4_garage_open:
  friendly_name: Porte de Garage
  templates:
    icon: "if (state === 'on') return 'mdi:garage-open';  \t return 'mdi:garage';\
      \        "
    icon_color: 'if (state === ''on'') return ''#e25f67''; return ''#00b300'';'

When i check the status in tools of dev. I have
[binary_sensor.rpi4_garage_open]
on
friendly_name: Porte de Garage
device_class: opening
templates:
icon: "if (state === ‘on’) return ‘mdi:garage-open’; \t return ‘mdi:garage’; "
icon_color: ‘if (state === ‘‘on’’) return ‘’#e25f67’’; return ‘’#00b300’’;’

In Home assistant
I have the icon for a deviceclass opening and not garage and the color is the color of theme and not wanted color
Something change between configuration ?

The templates are not part of home assistant.

You forgot to install custom-UI.

However you don’t need to. There is a garage_door device class. Use that instead of the custom UI templates.

Exact, I have forgotten the custom_ui
But after install it
Configuration.yaml

frontend:
 themes: !include_dir_merge_named themes/
 extra_html_url:
    - /local/custom_ui/state-card-floorplan.html
    - https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui.html
 extra_html_url_es5:
    - /https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui-es5.html

Add 2 files in custom_components/customizer/ init.py and services.yaml

and reboot

nothing change