Cover as State Badge

I can’t have a cover as a state badge. It would be great to use as badge.

Why not use a template sensor to get your badge?

I want to open and close using the state badge. I’ve created a custom ui.
04