#Group Energy Consumption

1 messages · Page 1 of 1 (latest)

soft dome
#

Hey all!

I'm looking for ideas of the "best" way to group energy consumption so that, on my Energy Dashboard, I have like "Lighting", "Appliances", etc rather than each specific device consumption.

Some things that occured me were:

  • Tag Entity with a "Lighting" tag and then a Template Sensor that loops all devices with said tag and sums the W ?
  • Add Entity to groups and create template as above?
carmine estuary
#

Personally I use labels for this

soft dome
#

OK so I just realised that Groups are way better than what they used to be.

If I simply create a Sensor Group and add the Energy Entities I want, that's it. All done.

carmine estuary
#

Yep, I just cba to change over. The summation groups are nice

soft dome
#

Indeed

sand rapids
#

If any of those entities ever reset their value you're gonna have a bad time. There's no good way to combine total_increasing sensors... but it can be done in very limited situations.

carmine estuary
#

He's summing power, not energy

#

Maybe

#

Used W in the initial post

sand rapids
#

yeah not clear. Summing power is 👌

soft dome
#

yeah that, I'm summing W

#

all I need is a quick overlook of how much energy I'm using on lighting and such

#

if I ever need the details I'll just look at each entity one per one

soft dome
#

well that certainly didn't go as planned

#

I don't get that 71.79 though

#

worst case it should be 14.46 no?

soft dome
#

OK so I reckon this thing is doing a sum of each individual measurement

#

What am I missing here!?

#

My entity stats seem to be correct but the energy dashboard is going crazy

sand rapids
#

You sound a bit confused and I'm guessing you are mixing up power (W) /energy (Wh) in some way. They don't mean the same thing and cannot be used interchangeably.

Please give exact details on what entities you created, what they were sourced from, and be specific about the state and attributes of each source, and any customizations you have done.

soft dome
#

OK so they're all Shelly modules and I'm using the Energy entity (kWh).

Using the UI I've created a Group Helper - Sensor, added all the required modules "*_energy" entity (again, in kWh) and set it Type = sum

sand rapids
#

Power can never be kWh

#

something is wrong there

#

power is W or kW

soft dome
#

yeah sorry my bad, it was a typo!

#

I mean _energy

#

you can see on all screenshots, everything is in energy (kWh)

sand rapids
#

ok, as I said above, summing energy entities has a lot of pitfalls

#

if any of the entities reset to 0, it will break the sum, and probably cause a huge consumption spike

soft dome
#

yeah and I get that (and probably will end up giving up going on this route and do some sort of template instead) but for me the weird thing is if you look at the helper entity stats it looks fine

#

But when you look at the same interval on the Energy dashboard it's all over the palce

#

Simple math seems to imply the Dashboard is summing each individual statistic value:

sand rapids
#

afaik those numbers are change values.

#

so your statistics believes it is increasing by 14.4 with each datapoint

#

that's how it's supposed to work, but you have bad data

#

Make a plot with a statistics graph card and you will see the same thing.

soft dome
#

I have to say I'm super confused by now @sand rapids

#

If I "have bad data" what am I supposed to do then?

#

And how?

sand rapids
#

The best advice I can give is just don't try to sum energy sensors.

soft dome
#

Allright then

#

any idea how I can achive my goal though?