Low battery level detection & notification for all battery sensors

I use the auto-entities card along with the battery notes integration. I just target the Battery+ entities.

Has anyone managed to get this doing TTS notifications? I have tried and keep getting errors.

Here is my config, which does exactly what you want.

type: custom:vertical-stack-in-card
title: Batteries
cards:
  - type: custom:auto-entities
    card:
      type: custom:battery-state-card
      secondary_info: "{attributes.battery_type_and_quantity}"
      bulk_rename:
        - from: " Battery+"
        - from: " Batterie+"
      card_mod:
        style: "ha-card {border: none !important}"
    filter:
      include:
        - integration: battery_notes
          domain: sensor
          attributes:
            device_class: battery
          state: < 50
      exclude:
        - integration: mobile_app
        - name: Kostal-*
    sort:
      method: state
      numeric: true
  - type: custom:auto-entities
    card:
      type: custom:battery-state-card
      secondary_info: >-
        {attributes.battery_type_and_quantity} (Last known level:
        {attributes.battery_last_reported_level}%)
      bulk_rename:
        - from: " Battery+"
        - from: " Batterie+"
      card_mod:
        style: "ha-card {border: none !important}"
    filter:
      include:
        - integration: battery_notes
          domain: sensor
          attributes:
            device_class: battery
          state: unknown
        - integration: battery_notes
          domain: sensor
          attributes:
            device_class: battery
          state: unavailable
      exclude:
        - integration: mobile_app
        - name: Kostal-*
    sort:
      method: state
      numeric: true
  - type: custom:auto-entities
    card:
      type: custom:battery-state-card
      secondary_info: "{attributes.battery_type_and_quantity}"
      bulk_rename:
        - from: " Battery+"
        - from: " Batterie+"
      card_mod:
        style: "ha-card {border: none !important}"
    filter:
      include:
        - integration: battery_notes
          domain: sensor
          attributes:
            device_class: battery
          state: ">= 50"
      exclude:
        - integration: mobile_app
        - name: Kostal-*
    sort:
      method: state
      numeric: true
1 Like