Attribute based condition not working

I can’t seem to get HA to display an entries card if a sensors attribute is true.
I’ve actually tried most of the attributes here and can’t get any of them to show the card.

type: entities
entities:
  - type: attribute
    entity: sensor.rocket_launch_1
    name: launch_target
    attribute: launch_target
title: Next Launch
view_layout:
  position: sidebar
visibility:
  - condition: state
    entity: sensor.rocket_launch_1
    attribute: launch_24h_warning
    state: 'true'

Unlike states, which are always strings, attributes can be other data types. In this case you are conditioning on a string value when the attribute is a boolean. Remove the quote marks from around true.

Gave it a go. Still no dice.

If you review the documentation for the card visibility conditions, you will see that attribute is not an option to state condition.

It is not possible.

Looks like you’ll need to set up a template sensor so you have the data you need as a State which will be accessible for the visibility.