So I have been trying to configure energy monitoring in my house, I’m using shelly 1pm and shelly 2.5 and since they report energy in Watt-Min, I decided to use the integration sensor with the power consumption measured in Watts my shelly.
All in all, this seems fine, but when I created a sensor called sensor.total_energy and used template sensor to map and sum all sensors with KWh unit_of_measurement, home-assistant seems to be failing to load it.
When I type the exact same template_value on the template_value tester, it works fine, any tips anyone?
Template sensor total_energy has no entity ids configured to track nor were we able to extract the entities to track from the value template(s). This entity will only be able to be updated manually.
Sorry I’m not more helpful but when I had to change mine I had to play with the location of float and round a little to get it to calculate properly. I’m sure someone here knows the proper way but it would take me a little fooling around to get it.
If there are a large number of sensors and you don’t want to list them all you can use the time sensor (if you have that defined) so it updates every minute.