Open Krocko opened 4 years ago
looks like this:
templates:
icon: >
if (state === 'on') return 'mdi:sleep';
return 'mdi:sleep-off';
icon_color: >
if (state === 'on') return 'rgb(251, 210, 41)';
return 'rgb(54, 95, 140)';
but it’s not work for me
I want to change the color from an input_datetime if it is activ (the selected time is in the future). Is this possible?