Problem with utility meter template (for Emporia Vue data)

Please share the template you are using.

Likely needs this: Why an availability template is important for energy template sensors