I’m trying to create a template sensor to monitor kWh for my air conditioner. I’m monitoring one leg of the 240v circuit for the heat pump and air handler, so I must duplicate and combine two values: duplicate the heat pump and duplicate the air handler, and then combine the two.
When I try to create a template sensor to do this, I get an error stating the number is not numeric, despite it being numeric.
The code returns a numeric value in the developer tools.
what version of home assistant are you running? my template sensor dialog looks slightly different. your template works fine for me. so i’m wondering if there’s a version issue.
i don’t see anything really wrong with your template but i suppose you could try to force the whole thing to a number with: