Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106272

Water Cost Sliding Scale

$
0
0

In South Africa our water is billed on a sliding scale based on consumption.
0 - 10kl - $1 per kl
10kl - 20kl $2 per kl (plus the $1 per kl fr the first 10kl)
20kl - 30kl 4# per kl (plus the $110kl and 210kl)

And so on. I’m pretty sure there’s no mechanism in HA to support this calculation natively. What’s my best option to caclulate water costs? I figure I could write a script, using helper variables to contain the cost for each usage bucket, but not sure how to elegantly call the script and write a value back that can be used by the built in dashboards.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106272

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>