WTH can't easily calculate things based on area's?

I’d ilke to easily create a sensor that displays things like nr of lights on per area, energy consumption per area, average temperature per area, min max battery states per area etc. I’m sure that this can be achieved through some sort of template, but WTH isn’t there an option to set this up easily or through the ui?