Hi
I have the TotalPowerIn reading from my electricity meter (total_increasing), and a number of smart plugs with power monitoring (which also has total_increasing sensors).
I would like to be able to track the cost of the consumption for each smart-plug using the energy dashboard- and the only way to do this is probably through some kind of template sensor, where the consumption from the smartplugs are subtracted from the 3ph electricity meter. But this will not make sense when the smartplugs sensors are total_increasing as well .- or will it ?
The plan would then be to add the smartplugs - and then subtract the smartplug consumption from the TotalPowerIn - and add that as the template sensor for the power meter…
Any suggestions how to handle this ?
Or is it straightforward - just to sum the total_increasing from all smartplugs - and subtract that result from the TotalPowerIn from my electricity meter ?
NB: Just foudn a catch - two plugs are Sheely Plug S - which have their kWh counter reset on power loss… I gues sthis requires some sort of extra work (perhaps Riemann Sum Integral), which I have no clue how to configure …