So I have a water tank that I added a sensor to that tells me the water level as a percentage. I have that on the Kiosk dashboard I have. What I would like to add next to it is the number of gallons left in the tank, which is simply ((Water Tank Leve)/100)*165. What is the best way to do that math and put it on my dashboard?
Right now for the current tank water level I’m displaying it with the “mini-graph-card”
I was thinking of using a helper and then an automation to set it but how to build the automation is not clear to me.
If you want to to use the result of that calculation throughout HA or see the history of your “Water Tank Volume” over time then you should do what Didgeridrew showed above.
If you just want to show the current result of that calculation in the one dashboard and have no plans to use it anywhere else then alternatively you can use a markdown card like this:
type: markdown
title: Water Tank Volume
content: "{{ (states('sensor.water_tank_level') | float(0) / 100) * 165 }} gal"