I “created” two horizontal temperature gauges for my dashboard. I honestly tried to find a solution out of the box, but I never found anything. Forgive me if this already exists somewhere else or if there is an easier way to do this. I could not find it.
I say “created” as I relied heavily on chatgpt. I first created an image (using powerpoint) of what I wanted and then shared it with chatgpt and then took it step by step.
This gauge above shows a background bar of a “full” range of temperatures that are typical outside temperatures in my part of the world. The black outlined pill inside the temperature band, and the labels below, indicate the forecast high and low temp for the day. The white vertical bar is the current temperature, also in the top righthand corner.
This gauge shows another range of temperatures, suitable for the highs and lows temperatures that would be seen inside our house. The Upstairs marker/label on the top, Downstairs marker/label on the bottom, and the Garage marker/label on the bottom indicate the temperature at the thermostat for three different HVAC units. The marker will turn red when in heat mode and blue for cool mode. The middle labels of 65-degrees and 77-degrees indicate what I consider to be a comfort zone - HVAC is not required - put on a jacket or put on shorts…but don’t turn the HVAC on.
They are not intended to be interactive, and if clicked, they show the temperature of the lead entity. I have other buttons for the control of the HVAC units.
I’m happy to share the YAML code for each. They may appear to have extraneous code but it was a back-and-forth process and I tried several different avenues before arriving at where I ended up.
Great suggestion., thank you. It took a bit, but each marker and title are now interactive and they will launch a bubble-card/pop-up for the thermostat.
Looks good, would be great if you could share your code on here. Chat GPT is a good tool when used in the right way, with a reasonable understanding of where to steer it.
Happy to share the code. I did make a slight formatting adjustment as the title for the Garage, at a higher temperature, slide off the card, so the label and temperature are now stacked. ChatGPT suggested that it could work on dynamic positioning, but I’m going to work with this thru the summare and make adjustments if needed,
The labels are actionable and will open a thermostat pop-up card.
ChatGPT is wrong…a lot. And you’re right. When it is wrong, you need to know enough to suggest an alternative approach to solve the problems.