Customize sensor icon and icon color not set

Hi,

I use some examples seen here to change dynamically the icons and color of binary_sensor like this configuration in customize.yaml.

binary_sensor.bureau:
  templates:
    icon: >
      if (state === 'on') return 'mdi:door-open';
      return 'mdi:door';
    icon_color: >
      if (state === 'on') return 'rgb(251, 210, 41)';
      return 'rgb(54, 95, 140)';
 
binary_sensor.porte_garage:
  templates:
    icon: >
      if (state === 'on') return 'mdi:garage-open'; else return 'mdi:garage';
    icon_color: >
      if (state === 'on') return 'rgb(251, 210, 41)'; else return 'rgb(54, 95, 140)';

      
binary_sensor.porte_dentree:
  icon: 'mdi:door-open'
 
binary_sensor.portail:
  icon: 'mdi:gate'
  icon_color: 'rgb(251, 210, 41)'

but there is no change for template of binary_sensor.bureau and binary_sensor.porte_garage:

Screenshot_20181113_182751

Did I forget something?

thank,