Change Default State Names of Cover Template

I have made a Cover Template that I am showing on a Tile card in the dashboard. However, I would like the state to say “Up” / “Down” instead of “Open” / “Closed”. How can I accomplish this.

image

- platform: template
  covers:
    family_room_projector_screen:
      friendly_name: "Family Room Projector Screen"
      unique_id: family_room_projector_screen
      open_cover:
        service: button.press 
        target:
          entity_id: button.projector_screen_up
      close_cover:
        service: button.press 
        target:
          entity_id: button.projector_screen_down
      stop_cover:
        service: button.press 
        target:
          entity_id: button.projector_screen_stop

Have you considered using the HACs Mushroom card? It is based off the tile card and is very customizable.

An example using my entities so it will need adjustments.

type: custom:stack-in-card
cards:
  - type: custom:mushroom-template-card
    entity: light.pc_lights
    icon: mdi:projector
    icon_color: purple
    primary: Family Room Projector Screen
    secondary: |
      {{ 'Up' if states(entity, 'open') else 'Down' }}
    card_mod:
      style: |
        ha-card {
          padding-bottom: 0px !important;
          border: none;
        }
  - type: custom:mushroom-cover-card
    entity: cover.bed_curtains
    show_buttons_control: true
    card_mod:
      style: |
        mushroom-state-item {
          display: none;
        }
        ha-card {
          border: none;
        }

If you stick with the Tile card., this is an option

type: tile
entity: cover.bed_curtains
features:
  - type: cover-open-close
card_mod:
  style:
    ha-tile-info$: |
      .secondary {
        color: transparent !important;
       }
      .secondary:after {
        content: "{{ 'Up' if states('light.pc_lights', 'on') else 'Down' }}";
        margin-left: -42px;
        color: lime !important;
         }
             
1 Like

Has anyone found a way to do this using the “standard” Cover Template?