⚪ Bubble Card - A minimalist card collection for Home Assistant with a nice pop-up touch

See this link here, create colour sensors to replace the whole line of code. Senors configured in configuration.yaml, insert line of code via template.

See this post confirmed to work on picture elements cards, in css and many other places.

and here for full details