#Group Devices

1 messages · Page 1 of 1 (latest)

gusty jungle
#

Is there a way to group these items? It would be great if the group could be expanded to see the contents. In this case these are all solar panels.

white sorrel
#

Hi, you could create an helper to group all values in one value

#

so instead of having X values showing Y watts you'd have a single value showing Z watts

#

or an average or whatever you'd like

#

you can use the "combine the state of several sensors"

heady sparrow
#

While the helper entity would be useful, I don't think that's what the OP is looking for.

It would be great if the group could be expanded to see the contents.
There's nothing really built in to HA to do that, but you do have two options.

  1. Using a toggle helper entity, you could set up a conditional that would show the list when the helper is toggle. You'd have to use a combination of cards to get it to look right but it is doable.
  2. Another option is the custom:epander-card. Forum link Be sure to follow the installation instructions, preferably the HACS method. You'll need to add the card as a custom repository and not just search for the card.
#

I have an example posted in the Forum thread. LINK

#

I think for the OP, having the helper entity at the first line showing the combined solar power and then the card expands to show the individual panels/inverters would probably work.

heady sparrow
#

This is an example of the first method (with the toggle helper). It may not look like much from the screenshot, but it uses a stack-in-card, a layout-card, a gap-card, two mushroom-template-cards, a conditional card, a Markdown card and some card_mod is used. (Can post the entire code if you're interested; it's about 60 lines.)