Closed horacecar closed 2 years ago
No you can't. But you can easily create a button-card-template for that. Even better, you can use yaml anchors in your button-card-templates
Button card is magic.
So that mean i need to enable the yaml mode in ha, then put the code in xxx.yaml in config path, but cannot use ha UI editor anymore? @Mariusthvdb
Owner
Mariusthvdb
Well, tbh, I don't use the HA editor, so I cant help you with that. But can you enter the above in any editor?
btw, I dont think there's any difference in using custom-ui or that code in Lovelace. It is all done in the frontend, so I would think no difference at all.
all you'd need is to set this template on all entities you need it for, it is so terribly simple in button-card.
closing
I got something like this can use in button card template , it will shows a animation icon when the device on / off. i would like to know if i can use this kind with all the animation svg code/path template inside customize.yaml instead of inside lovelace's button card template , otherwise every icon almost 100 lines code, and put all the animation in lovelace, every time refresh or loading the ha will slow.