this worked before, my costomize.yaml file:
binary_sensor.water:
friendly_name: Warm water
templates:
icon: if (state === 'on') return 'mdi:water'; else return 'mdi:water';
icon_color: if (state === 'on') return 'rgb(255, 0, 0)'; else return 'rgb(65, 65, 94)';
binary_sensor.vlam:
friendly_name: Vlam status
templates:
icon: if (state === 'on') return 'mdi:fire'; else return 'mdi:fire';
icon_color: if (state === 'on') return 'rgb(255, 0, 0)'; else return 'rgb(65, 65, 94)';
binary_sensor.verwarming:
friendly_name: Verwarming status
templates:
icon: if (state === 'on') return 'mdi:radiator'; else return 'mdi:radiator-off';
icon_color: if (state === 'on') return 'rgb(255, 0, 0)'; else return 'rgb(65, 65, 94)';
sensor.woonkamertemp:
friendly_name: woonkamer
only when the flame is on the icon changes, labels are shown correct
when all is in rest the wrong icon for the flame is shown: