maxwroc / battery-state-card

Battery state card for Home Assistant
MIT License
848 stars 38 forks source link

Default attribute #730

Open ZyberSE opened 2 months ago

ZyberSE commented 2 months ago

It would be nice support for a default battery level attribute was added so it could be used in conjunction with filters.

For example: SensorPush sensors do not have battery %, instead they have a battery_voltage attribute. Right now I need to specify every single sensor in a list as I need to specify the attribute from where to get the battery value.

A better solution would be to have attribute in the common object and use an include filter.