maxwroc / battery-state-card

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

Bulk rename not being applied #729

Closed parautenbach closed 2 months ago

parautenbach commented 2 months ago

Describe the bug bulk_rename isn't being applied.

How to reproduce Use the problematic YAML below.

Expected behavior

Here, the "Battery" text is removed:

Screenshot 2024-07-05 at 16 08 45
        - type: custom:battery-state-card
          title: Battery Charge Levels
          filter:
            include:
              - name: "attributes.monitor"
                value: True
          bulk_rename:
            rules:
              - from: "Battery"
          sort:
            - "name"

YAML configuration

This doesn't work:

Screenshot 2024-07-05 at 16 08 54
        - type: custom:auto-entities
          debug: true
          card:
            type: entities
            title: Battery Maintenance
          filter:
            include:
              - entity_id: "button.*_battery_replaced"
          bulk_rename:
            rules:
              - from: "Battery"
          sort:
            - "name"

Entity debug data

There's no debug output (see the debug setting being set in the YAML above):

Screenshot 2024-07-05 at 16 08 36

Dev console errors None.

Screenshots See above.

Version 1.13.0

parautenbach commented 2 months ago

Apologies! PEBKAC issue: I'm using two different cards.

You're welcome to delete the issue. It's just noise.