Skip to content

Using Conditional Cards to Hide NOT_FOUND Status

David edited this page Jan 7, 2023 · 1 revision

There are three sensors set up for Barcalona. One for there La Liga games, one for their Champion League games, and one for friendlies.

Here is sample YAML that uses a combination of a Vertical Stack Card and a Conditional Card to Hide any card with a status of NOT_FOUND so your Dashboard doesn't get cluttered with NOT_FOUND cards.

type: vertical-stack
cards:
  - type: conditional
    conditions:
      - entity: sensor.tt_liga_bar
        state_not: NOT_FOUND
    card:
      type: custom:teamtracker-card
      entity: sensor.tt_liga_bar
      outline: true
      outline_color: lightgray
      show_league: true
  - type: conditional
    conditions:
      - entity: sensor.tt_cl_bar
        state_not: NOT_FOUND
    card:
      type: custom:teamtracker-card
      entity: sensor.tt_cl_bar
      outline: true
      outline_color: lightgray
      show_league: true
  - type: conditional
    conditions:
      - entity: sensor.tt_friendly_bar
        state_not: NOT_FOUND
    card:
      type: custom:teamtracker-card
      entity: sensor.tt_friendly_bar
      outline: true
      outline_color: lightgray
      show_league: true