add max_devices and name: option to Energy panel #19983
Replies: 11 comments 8 replies
-
I'll think about this. It will be more difficult than adding options to regular cards, since we can't just add any old unstructured options to a yaml file like we can do for a regular dashboard. We will have to have changes in both frontend, and changes in core to have an API that we can communicate the setting to the backend, a place for the backend to store the setting, and a way for the backend to return the setting to the frontend when loading the panel. I feel like I remember seeing somewhere some maintainers saying that the energy panel was not really intended to be configurable, so we might get pushback if we start trying to add all kinds of extra configuration options like for regular cards. But maybe one tiny setting can be ok. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Instead of adding some limit - why not just enable hide/show a legend? |
Beta Was this translation helpful? Give feedback.
-
Some other options that do not require a setting are:
The values 10 or mean could be different but I think could be a fixed value so no setting is needed. I think it is always important to include 'All Other'. |
Beta Was this translation helpful? Give feedback.
-
+1 on the request to add custom entity names for the legend, please. Similar to the optional "name" attribute on the statistics-graph card. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This thread started with the request to limit the number of devices in the Detailed devices energy graph. Agreed, good solution for the default card in the standard energy dashboard. Background: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Please keep this discussion ‘on’ topic and not divert from the actual feature request. |
Beta Was this translation helpful? Give feedback.
-
That is my intention. I'm in favour of a generic solution, where the cards entities can be specified. So similar to the statistics-graph and many other cards:
That solves both the request to specify a short name, and limiting the number of entries per card. |
Beta Was this translation helpful? Give feedback.
-
Custom names for individual energy devices merged for 2024.5 (#20033) Hopefully this will mitigate some of the large legend issues. |
Beta Was this translation helpful? Give feedback.
-
like we now (2024.3) will have for the user dashboard cards set in yaml by:
having many (over 20/30) individual energy entities configured, the individual panel is so crammed it barely is usable, as the card first shows all of those entities, many with longer names, and next graphing them in a single bar....
Allowing the max_devices in the Energy panel would mean a huge difference.
Beta Was this translation helpful? Give feedback.
All reactions