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

Please fix compatibility with HA-Battery-Notes action buttons #751

Open
cniry opened this issue Dec 3, 2024 · 1 comment
Open

Please fix compatibility with HA-Battery-Notes action buttons #751

cniry opened this issue Dec 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cniry
Copy link

cniry commented Dec 3, 2024

Your battery state card is awesome, but in my use-case I need to use it with HA-Battery-Notes entities.

HA-Battery-Notes creates entities with manual buttons "Battery replaced".

In HA entity card, it renders an action buttons correctly:
image

In battery-state-card, it renders only static values instead of buttons:
image

Is possible to render these action buttons?

@cniry cniry added the enhancement New feature or request label Dec 3, 2024
@cniry
Copy link
Author

cniry commented Dec 3, 2024

For Anybody searching for an example of how to set filters to use battery-state-card with HA-battery-notes like this:
image

First column:

type: custom:battery-state-card
title: Replaced at
sort:
  by: name
filter:
  include:
    - name: entity_id
      value: "*_replaced"
  exclude:
    - name: entity_id
      value: "*_battery_replaced"

Second column:

type: custom:battery-state-card
title: Mark as replaced
sort:
  by: name
filter:
  include:
    - name: entity_id
      value: "*_battery_replaced"

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