Battery State Card | secondary_info | capitalize

Today I tried to integrate the Battery State Card. So far, it’s working pretty well. I’d like to display the floor and room in the second row. To do this, I’ve configured the card as follows:

type: custom:battery-state-card
secondary_info: "{area.floor_id} | {area.name} | {attributes.battery_type_and_quantity}"
title: Batterien aufladen
round: 0
filter:
  include:
    - name: entity_id
      value: "*_battery_plus"
  exclude:
    - name: state
      value: 20
      operator: ">"
bulk_rename:
  - from: Batterie+
sort:
  - state
  - name

Although all the data is displayed as desired, the floor is shown only as an ID and therefore in lowercase. How can I capitalize the first letter in the secondary_info row? Unfortunately, {area.floor_id|capitalize()} didn’t work.