New 2022.12 helper problem - Combine the state of several sensors

Hi there,

I was using this new helper for adding up all power from some sensors (with the statistic set to “Sum”) and it works fine.
Then made a second one for adding up all power saved in some sensors (all of them show some value for energy, no sensor is bad, tested all in DeveloperTools->Template) and after some seconds giving me a number it gives me unknown and never gets any value again.
Some ideas on this? It’s a new feature, could it be some bug?

Pedro.

Fixed!

  1. Some MQTT lights were missing the unit_of_measurement: "kWh in the sensor coonfiguration
  2. Afterwards, because they were shellys dimmer2 i had to add value_template: "{{ value|float / 60000 }}" to the MQTT configuration because shelly energy is watt/min and not kWh.

Pedro.