I am tracking energy costs from a Shelly 3EM which gives me the power draw from three different channels (a, b, c). In order to track the total power draw I use this template code:
Thanks definitely solved my issue.
For others, please not that the legacy sensor format uses availability_template: while the new version just uses availability:, see Template - Home Assistant