Use timer property from Entities card in Entity card

When I add a timer to an Entities card, it will show “Idle” when idle:
image
and the duration when it is active:
image

However, when I add a timer to an Entity card by default it shows “Idle” and “Active” as the state:

image

I can change the property to “Duration”, then it will show the duration, but it will not show “Idle” when it is inactive.

Mostly out of curiosity I’d like to know if it is possible to configure an Entity card so that is will also show “Idle” when idle and the duration when active.

You could create a template sensor

something like this:

#Make the single bay sensor show Closed or Open
  - platform: template
    sensors:
      singlebay_sensor:
        friendly_name: "1 Bay Garage Door Open/Closed"
        unique_id: "single_garage_door_open_closed_sensor"
        value_template: >-
          {% if is_state('switch.single_bay_open_close', 'off') %}
            closed
          {% elif is_state('switch.single_bay_open_close', 'on') %}
            open
          {% else %}
            Unavailable
          {% endif %}