Change color from another entity

I would like to change the color of an icon by taking the color from another entity, I searched and the code should be this, which works alone, but in the code no, the icon does not change color, why? what am I doing wrong?

Custom button cards use JavaScript templates, not jinja. Check the documentation.

oh my god, it finally works now, what a fool I am. A thousand thanks!