WTH: Why can't I nest energy consumption

I should be able to create a tree of which devices use energy from each other as to not double up energy consumption.

For example I believe I should be able to set up this tree whole home energy consumption => energy usage on a circuit => to a smart switch => to a set of smart lights. All energy is tracked and can be reported as a percentage of the parent energy device. Can also be used to help remember which breaker is which device, and to see if there are any discrepancies.

I have an outlet power meter (A) that connect multiple devices (B, C, D). Some of these devices (B, C) have their own integration reporting their power usage.

In the energy dashboard I can add individual devices (A, B, C) but if I add all the information then the power meter is added with the devices on the same power meter (A+B+C).

There should be a way that
A = B+C+D

Where D= A-B-C which is everything connected to A that isn’t metered

Duplicate of WTH does Energy Dashboard not support nesting energy sensors? ?

This WTH is a little more generic in that it doesn’t specifically call out the dashboard, just consumption. Solving this one would probably solve the other, but not vice versa.

My recommendation would be to add support for an entity_ids field to the YAML config of the Utility Meter Integration. While input_sensor would still be the meter’s definitive value, you could optionally specify some of the meters feeding that meter, either kWh sensors or other meter entities, that won’t necessarily add up to the total input_sensor but clue the system not to double-count anything already added to the “tree” in rollups.

Utility Meter entities that define entity_ids would be ideal candidates to show a pie graph when you click on them, to show the percentage contributed by each sub-meter (and a pie slice for “other” to make 100%). Historical graphs could be 100% stacked area graphs.

This would be even more helpful if they take our suggestion to add a “Helpers” box on the device page so you can see that an entity is participating in a helper, i.e. see what utility meters use the sensor(s) on a page.