Inspired by the idea to be able to recreate the Home Assistant native Energy Gauge Cards I created Gauge Card Pro. Built on top of the Home Assistant Gauge card, but with many more features and beautiful look-and-feel!
Native gradient support for segments and severity
Two gauges in one
Use templates for the majority of the fields
Every element in the card can have its colour defined. This can be a single colour or two colours for light- or darkmode. Of course, allows templating!
This release introduces the color_interpolation option for both the main and inner gauge. This setting will take over all the color magic you had to do by hand by interpolating a color between your segment steps!
Yeah! Thanks for that! Iāve been looking for a decent gauge card for ages⦠all existing cards (canvas, horseshoeā¦) are old and not maintained anymore, so itās only a matter of time when they will ādieā. What i miss most on HAās built-in card is templates, and lack of them makes it pretty much useless (for me).
A couple of suggestions, if they are doable:
is it possible to change text size?
some sort of scale implementation would be good perhaps ?
Would you mind making an issue at GitHub Ā· Where software is built for the text size? The texts inside the gauges already have auto-scaling, so I guess itās the texts below the gauges you are after right?
Also for āsome sort of scale implementation would be good perhapsā, could you also make an issue explaining your wish? Right now I donāt really understand what you are after
My current Work-In-Progress already adds some extra content to the card. I feel itās quite packed now and shouldnāt >add< too much information more to it. Thatās why Iām thinking about using the value_text (the 19°C and maybe the 55%) field for icons, not adding them somewhere else. Unless you/somehow finds a way to convince me
Thatās some changed/new config for v0.8.0 which I hope to release somewhere soon. Iām merging some attributes into groups for better clarity of the config. I ended up with something like:
Just downloaded and had my first play around and am very impressed! Itās available in the HACS store now BTW - no need to copy the custom URL
Unfortunately my card hasnāt been added yet ā This is my PR. It currently takes about 6 months. I think you added my repo as custom repo to HACS. Once thatās done, youāll receive updates as if it was a normal repo.
Iām trying to understand the colours:
In your examples you use colour names, eg
Itās just a personal preference to use āHAā-colors. RGB should definitely work, formatted as hex and probably quoted: "#ff0000".
Loving your work! This is what Iāve made myself so far & love how it looks
Thanks a lot for your lovely feedback, goes a long way! Love to see what people built using my card, thanks for sharing
Iām just wondering⦠is it possible to adjust/limit gradient width? Say, to make yellow and red part narrower? Right now itās pretty wide when i set green, yellow and red severity, which is perfect for majority of uses, but perhaos it could be the case when narrower gradient would be nice (just a thought)
Iād just limit transition width from green to yellow, for example (and from yellow to redā¦). Now itās pretty wide, even if i set limits near max. green starts to transition to yellow at appr. middle of the gauge.
I might understand what you are talking about. You are specifically talking about the severity option right? With the green, yellow andred parameters right?
In v0.8.0 I dropped support for severity in favour of generic segments use. If everything works as I expect, once you update to the current release your severity-config will be converted to segments in your editor.
segments also give you the power to control the way the gradient is created. For example, letās say you had the following severity-config:
severity:
green: 0
yellow: 50
red: 100
This is converted to the following segments-config
segments:
- from: 0
color: green
- from: 50
color: yellow
- from: 100
color: red
That is indeed correct. My current issue is that in your green part, the gradient-engine of my card still creates green parts (itās not 1 element, although itās all the same colour). I could increase the resolution for high or add and extra ultra option. This however impacts performance I think. Will give it a thought ā¦
Well, i donāt mind resolution⦠anything is better than built-in gauge card without it.
As i said in my first post, it was more or less just a thought. After all i use it for monitoring my HA and proxmox (ram, data, space, temperatureā¦), and itās way more beautiful as built-in gauge card.
Thanks!