Custom:battery-state-card

Afternoon Team.

Not sure if this is possible. I use the custom:battery-state-card for displaying battery levels but was looking to use the same card to keep things the same with binary_sensor.

As an example i have knocked up the code below but rather than displying on or off its 100% or 0% which i know is getting from the state map section. Is there a way to change this back to On or Off?

type: custom:battery-state-card
title: String values - state map
sort_by_level: asc
icon: mdi:window-closed
entities:
  - entity: binary_sensor.mancave_tuya_window_contact_sensor_contact
    name: Office Window
state_map:
  - from: 'on'
    to: 0
  - from: 'off'
    to: 100

Now i know i can use the code below to display on and off but i am looking to add colour to the status so its easier to see when i have many many sensors.

type: custom:battery-state-card
title: String values - state map
sort_by_level: asc
icon: mdi:window-closed
entities:
  - entity: binary_sensor.mancave_tuya_window_contact_sensor_contact
    name: Office Window