#energy-devices-graph does not honor upstream meter data - shows wrong data

1 messages · Page 1 of 1 (latest)

craggy jacinth
#

It cames to my attention that the hirarchy of upstream energy meters seems not to be honored in the energy-devices-graph card.

Because i am not very familiar with the project: Is this rather an UI issue (to create github task) or somewhere in the backend for the energy data?

#

energy-devices-graph does not honor upstream meter data - shows wrong data

stuck haven
#

That's correct, the hierarchy information is not used there.

craggy jacinth
stuck haven
#

I did at one point kinda float a PR for that but the maintainers seemed disinterested.

craggy jacinth
#

Oh this PR looks nice. I have the impression the maintainers would accept a PR that would change the bar size to the untracked part only.

~~How did you develop your approach @stuck haven ? are they testdata available for this? I see you only changed the .ts file.

Its a lot of logic there to follow ... or do you have a tip for me to get starting?~~

sorry for asking, answer is here: https://developers.home-assistant.io/docs/frontend/development/

The Home Assistant frontend is built using web components. For more background about our technology choices, see this blog post.

stuck haven
#

I'm not sure if it makes more sense to show the whole part, or only the untracked part. I think you're going to make someone unhappy either way.

#

There's not a whole lot of test data by default, I ended up just making some of my own with templates and inserting external statistics.

craggy jacinth
stuck haven
#

Yeah a little bit inconsistent is true. It's necessary in the upper card because all the columns are implicitly summed together to get a total, which should be the correct total.

craggy jacinth
#

In my head and my example above, i had difficulties wraping my head around why the basement light should have used 4.17 kWh when just visually i could confirm from the upper chart that it must be way less

stuck haven
#

Your basement light has downstream devices? Kind of odd for a light.

craggy jacinth
#

That's the name inside of the fusebox for the fuse for all of the basement.
And yes i have downstream devices from that fuse: f.e. freezer, air dryer, tumbler, washing mashine and a server rack

stuck haven
#

Yeah that makes sense. I would have just named it basement circuit or something, and then it would be clear that it's for everything.
But I see what you're saying.

#

Like if you had named it basement circuit, it might be a little unexpected that the bar was showing only the power for the light.

#

But I don't have all the answers, and it's not my call to make anyway 😁

craggy jacinth
#

🙂 good to talk this through with someone to have another perspective.

I'd be cool actually with the basement circuit to be small, when i see the freezer, the server etc. listed seperately as their own bars as well

stuck haven
#

If you like to try to make a PR, go for it. Can't say how it will go though.
Or you can make a feature request, try to solicit some more opinions. There may be one already.