Further to
The above “segments” yaml works beautifully, but you have to duplicate the code for each of your gauges depending on the range they might cover.
Is there a way to define a “template” gauge card that (for example) goes from green to red in 20 steps over a 0-100% range, and then you send an entity to it along with a simple scaling factor? Would save all that yaml duplication of all those color codes in every gauge card you need.