Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to allow low/zero energy consumers to be [automatically] hidden #17

Open
kzajac83 opened this issue Nov 3, 2024 · 8 comments

Comments

@kzajac83
Copy link

kzajac83 commented Nov 3, 2024

Have added some collectors of energy that working only temporary, few time per quarter or even rare and mostly will show zero like 3 top positions on picture below How to disable entity with 0 kWh ?

image

@davet2001
Copy link
Owner

Ok, that would be a new feature.

I understand what you say to mean you would like the ability to hide energy consumers when the consumption is very small or zero. Is that correct?

@kzajac83
Copy link
Author

kzajac83 commented Nov 5, 2024

Yes, you are correct.

But maybe to be more universe and flexible functionality propose add global filter option as edit field where you put minimum value of energy assigned to entice that will be showed. By default should "0" that nothing change relating to current solution. When you put eg. "0.001" (in my cause UoM kWh) then all below 0.001 kWh will be not displayed.

I see also more complex solution where:
a) list all counted into energy Sankey Energy chart entices and next to each item add enable / disable checkbox determining use (display) or not the entice
b) optionally as extend point a) add for each item individual minimum edit field box or just one global filter for all enabled

General any filtering possibility (limit global / individual or just disabling entices or both or other idea) is more than welcome from my perspective.

@davet2001
Copy link
Owner

Ok, thanks for the quick feedback.

I think this makes sense for the energy graph. For the power graph, that could cause flows to disappear/reappear which could be confusing to the user.

If removing individual flows is needed, that will come anyway in future when the ability to modify the automatic config is added.

@davet2001 davet2001 changed the title No consumption not showing Add feature to allow low/zero energy consumers to be [automatically] hidden Nov 5, 2024
@kzajac83
Copy link
Author

kzajac83 commented Nov 5, 2024

of course I propose for energy only, not power.

@davet2001
Copy link
Owner

Hi @kzajac83, I'm looking at this one now.

One option I'm considering is to have a max number of consumer branches on the chart, which would be user configurable. I think for the most part, people want to see what the big consumers are.

So for example, if you configured to show max 8 branches, you'd get the 6 biggest consumers showing, the remaining ones grouped into 'other', and the last one would be for 'untracked'.

One of the primary goals with this card is to make it as easy as possible to set up and use. So lots of options to turn things on or off, configure thresholds etc, is not really what I'm aiming for

Would value your thoughts on this.

@davet2001
Copy link
Owner

Here's how it looks so far, when I set the max branches to 5:
image

@kzajac83
Copy link
Author

kzajac83 commented Jan 6, 2025

Hi @davet2001

Agree with your idea where most people want to see top 5 (or top 10 or other) most consumption devices. In this scenario un-tracked and remaining must be in that solution by default.

However please consider enhance your idea (as OR or AND condition??) as add minimum value to display. Hard to me imagine how your solution will behavior, my idea is just not display devices with some minimum power, you are propose add such devices to "other", seems OK.
But what happened when the "0 W" devices I will turn on and will not display in top power display? If good understood appear in "others" but my idea is appear when they work.

Another question - clicking on "others" will display list excluded top display devices?

PS. Sorry for mixing, another topic, are you thinking about auto prefix of UoM? Probably now UoM is constant Watt [W] and is OK but only theoretically thinking, if power is more than 1000 W then can display as 1 kW? So not 4,850 W but 4,85 kW or even add max places after decimal separator?

@davet2001
Copy link
Owner

Ok, I think I see what you mean. You want small values to disappear from the graph, then reappear when they are bigger.

I think that can be done.

PS. Sorry for mixing, another topic, are you thinking about auto prefix of UoM? Probably now UoM is constant Watt [W] and is OK but only theoretically thinking, if power is more than 1000 W then can display as 1 kW? So not 4,850 W but 4,85 kW or even add max places after decimal separator?

I think it's very rarely helpful to display different units of measure on the same graph.

i.e. I think seeing branches labelled like this would be confusing:
999kWh
123.4Wh
12MWh

So we'd probably want to change the scaling for the whole chart.

Feel free to add as a feature request, but I suggest this is only included if HA entity cards start adopting that behaviour (they don't currently as far as I can tell).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants