Gauge Card with inverted Levels - 0 starting at the Right Side

Is there a Way to let the Gauge Card start with Value “0” from the Right?

Example for Usecases: I have a Waterfilter that regulary needs to get changed. After Changed, its zero Days, full green, Tank is full :wink: The Needle should gradually decrease, and after e.g. 30 Days should be on the left Side, Red.
I can make the the Needle behave like wanted by configuring the Value as a “Countdown” (Freshly changed = 30 Days, Needle on the Right side, Green Segment).
But it should Display how many Days passed since last Change. And, while it should be changed after 30 Days, it may happen that it gets changed later :stuck_out_tongue_winking_eye:

I think of other Situations i would want to use it that Way - Empty the Trash, Refill Salt in the Washer,…

So - is there a Way to Invert / mirror the Gauge-Card, to have lower Values starting right?

Have you tried using negative values for from -30 to 0 using a template sensor that is 0 - days_elapsed?

…I’ve never done this, so not sure if it will work.

1 Like

Nice Idea, haven’t thought of that! While it is not perfect, it is a giant Leap forward:
grafik

Sure, the Negative Value triggers me a bit :smiley:
Maybe it ain’t a big Thing to implement a Right-To-Left Switch and will find its Way into HA Someday.
But, by now your Idea is a quite good Starting Point. Thanks!

yes, the negative value would annoy me as well.
…perhaps rename it to a rocket launch “T minus…” style?

Also, you could change the unit to - so it would look like “- 10 days -” (at least that’s less like a negative sign now)

type: gauge
name: Water Filter
unit: '-'
...

[edited for typos]

Hehe… now it gets really dirty :smiley:
Yes, that works. I will see what i prefer.
That Card would generally deserve a little bit Love / get more Options (Swap Name <> Value, Define fixed Textsize,…)

But for now thats okayish, and a sweet Workaround :slight_smile:

1 Like