Skip to content

Add a charging status attribute to the battery+ entity #4088

@uvjim

Description

@uvjim

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

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

Would it be possible to add a charging status attribute to the battery+ attribute (assuming that the original device has such an entity)?

Use case: using a heading card with entities in it. When adding the battery+ entity to show the battery level (in this case a remote control) it correctly shows the percentage and an icon. However the icon does not reflect the charging state and as there is no attribute I can't add it alongside the status percentage.

Describe the solution you'd like

To add the charging status entity value as an attribute to the battery+ entity (assuming that there is a charging status entity).

Describe alternatives you've considered

In the above use case I have tried putting the charging status entity alongside the battery+ entity but the spacing is off and I don't want to get into using card_mod to handle that.

Additional context

I have a dashboard that shows activity status, sleep timers etc for the media playing in particular rooms. The remote control is an Unfolded Circle and the integration for that exposed a charging status entity.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions