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

Automatic grouping by device #758

Open
sikraemer opened this issue Jan 14, 2025 · 1 comment
Open

Automatic grouping by device #758

sikraemer opened this issue Jan 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@sikraemer
Copy link

Is your feature request related to a problem? Please describe.
Hey,

I have some devices that provide both a percentage value as well as a battery low state.
(e.g. using the Battery Notes integration).
For other devices I only have the battery low state.

In cases where both values are available the current solution does not allow to exclude one of them, which makes the same device appear twice.

Describe the solution you'd like
It would be nice to automatically group entities by the device they are part of.

Additional context
image
image

type: custom:battery-state-card
title: Battery States
secondary_info: "{attributes.battery_type_and_quantity}"
round: 0
filter:
  include:
    - name: entity_id
      value: "*_battery_plus"
    - name: entity_id
      value: "*_battery_plus_low"
bulk_rename:
  - from: Battery+
  - from: Battery low
state_map:
  - from: "off"
    to: 100%
  - from: "on"
    to: 10%
collapse: 5
sort:
  - state
  - name

image:
image

@sikraemer sikraemer added the enhancement New feature or request label Jan 14, 2025
@sikraemer
Copy link
Author

One can work around this by setting the binary sensor entity to "hidden".
image

Unfortunately this hides it everywhere and not only as part of the card

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

1 participant