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

Support groups created via UI/Helpers #529

Open
loocd opened this issue Feb 11, 2023 · 4 comments
Open

Support groups created via UI/Helpers #529

loocd opened this issue Feb 11, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@loocd
Copy link

loocd commented Feb 11, 2023

I just stumbled upon this card and it looks amazing. Just one little thing about the groups functionality.

Describe what is wrong
Using existing HA groups to populate the individual entities would be amazing, as this would spare me from adding the same entities in multiple places.
My understanding is: I add the group as the only entity and this would populate all individual devices, according to group.switches_batteries in this explanation: https://github.com/maxwroc/battery-state-card#battery-groups

However, the new UI groups in HomeAssistant no longer follow the groups.* terminology but are added as a sensor.*
Adding this sensor results in a single sensor being added, rather than all the containing entities.

How can I get this to work using the new UI groups from HomeAssistant?

Card configuration

type: custom:battery-state-card
sort_by_level: asc
color_gradient:
  - '#ff0000'
  - '#ffff00'
  - '#00ff00'
entities:
  - entity: sensor.hue_motion_sensor_1_battery_2
    name: Bewegungsmelder Esszimmer
  - sensor.batterien_sensoren_aktoren

Screenshot
Unbenannt

Version
v2.1.1

@loocd loocd added the question Further information is requested label Feb 11, 2023
@maxwroc
Copy link
Owner

maxwroc commented Feb 14, 2023

I have the most recent HA v2023.2.4 and group entities are present and they work with the card
image

@loocd
Copy link
Author

loocd commented Feb 16, 2023

The difference, in my opinion, is that you are using group.*
In my opinion, the UI groups don't let me grate any group.* groups, but, as mentioned in my initial question, lead to an actual sensor.* (see my entities list, the last entity is a group).

Or is there a way to create a group via the HA UI that is an actual group.*?

@maxwroc
Copy link
Owner

maxwroc commented Feb 17, 2023

Or is there a way to create a group via the HA UI that is an actual group.*?

I don't see such option unfortunately. I don't know why when you create a group via helpers it doesn't create an entity in the group domain but a regular sensor.

I have a mixed feelings regarding adding the support to "unpack" such groups. What if someone wants to actually see it as a single entity in the card?

I will think about this more. I'm open as well for suggestions

@maxwroc maxwroc added the enhancement New feature or request label Feb 17, 2023
@maxwroc maxwroc changed the title Issue with using new HA groups functionality Support groups created via UI/Helpers Feb 17, 2023
@loocd
Copy link
Author

loocd commented Feb 17, 2023

Fully understand your concerns. Maybe this can be implemented as an optional parameter unpack - depending on whether you'd like to unpack the grouped sensor or not.

@maxwroc maxwroc added this to the v3.1 milestone Nov 14, 2023
@maxwroc maxwroc removed this from the v3.1 milestone Dec 29, 2023
@maxwroc maxwroc removed the question Further information is requested label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants