that syntax is really oddā¦
take out the keyframe from the condition, and do:
card_mod:
style:
mushroom-entity-chip:nth-child(2)$: |
ha-state-icon {
animation: {{'fountain 1.5s ease infinite' if is_state('switch.fontein','on') else 'none' }}
};
@keyframes fountain {
0%, 100 { clip-path: polygon(0 100%, 0 0, 100% 0, 100% 100%); }
50% { clip-path: polygon(0 100%, 0 47%, 100% 47%, 100% 100%); }
60% { clip-path: polygon(0 100%, 100% 100%, 100% 37%, 79% 36%, 71% 21%, 56% 25%, 44% 25%, 31% 20%, 20% 36%, 0 36%); }
70% { clip-path: polygon(0 100%, 100% 100%, 100% 36%, 79% 36%, 71% 22%, 81% 1%, 24% 0, 31% 21%, 20% 36%, 0 36%); }
80% { clip-path: polygon(0 100%, 100% 100%, 100% 36%, 79% 36%, 76% 28%, 100% 0, 0 0, 23% 28%, 20% 36%, 0 36%); }
I didnt check if that actually works in the card because as Arganto says there are more than a few other syntax issues or, whether you target the correct element, not using mushroom myself.
Try with a minimal failing config and fix that step by step
also, since this is UIX thread, move to use that ![]()