Struggle with a template in a conditional card

Hi
I’m struggling with the following conditional card. I’m trying to add a template without luck so far.
Every time I get the error: invalid conditions…

the code:

type: vertical-stack
cards:
  - type: conditional
    conditions:
      - condition: template
        value_template: >-
          {{ state_attr('media_player.androidtvwoonkamer', 'entity_picture') is
          none }}
    card:
      type: custom:mini-media-player
      entity: media_player.androidtvwoonkamer
      name: Chromecast woonkamer beeld
      icon: mdi:television
      artwork: full-cover
      hide:
        name: true

the template works:

value_template: >-
          True

any ideas?


edit: I guess the conditional card doesn’t support template… is there any workaround ? :frowning:

Create a Template binary sensor and use a State condition based on that entity.

Thanks for the suggestion! Works now