Custom configCustom element doesn't exist: picture-entity

I am trying to get a state value as name on a picture entity card. Someone mentioned to use the config-template-card option.

type: 'custom:config-template-card'
variables:
  - 'states[''sensor.trash_first_next_item''].state'
entities:
  - sensor.trash_first_next_item
  - sensor.trash_first_next_date
card:
  type: 'custom:picture-entity'
  entities:
    - entity: sensor.trash_first_next_item
      name: '${states[''sensor.trash_first_next_date''].state}'
      state_image:
        Geen: /local/afvalwijzer/geen.png
        gft: /local/afvalwijzer/gft.png
        papier: /local/afvalwijzer/papier.png
        plastic: /local/afvalwijzer/plastic.png
        restafval: /local/afvalwijzer/grijs.png

With the config above I get the error:
Custom element doesn’t exist: picture-entity.

Is it possible to the custom-config-template with the custom-config-template addon?

It’s not a custom card, so you have to use the hui card trick:

type: 'custom:config-template-card'
variables:
  - 'states[''sensor.trash_first_next_item''].state'
entities:
  - sensor.trash_first_next_item
  - sensor.trash_first_next_date
card:
  type: 'custom:hui-picture-entity'
  entities:
    - entity: sensor.trash_first_next_item
      name: '${states[''sensor.trash_first_next_date''].state}'
      state_image:
        Geen: /local/afvalwijzer/geen.png
        gft: /local/afvalwijzer/gft.png
        papier: /local/afvalwijzer/papier.png
        plastic: /local/afvalwijzer/plastic.png
        restafval: /local/afvalwijzer/grijs.png

However, since v0.107 this also requires you to preload the card:

thank you for the options I tried it but didnt work. Now the error is:
Custom element doesn’t exist: hui-picture-entity.

I a running 0.107.5

It should be:

card:
  type: 'custom:hui-picture-entity-card'

And you will have to preload it as mentioned.