battery-state-card
battery-state-card copied to clipboard
Automatic grouping by device
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
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
: