No image in button-card

Hello, I’m trying to make a button-card in order to get an image, like this:

type: custom:button-card
custom_fields:
  person: |
    [[[ 
      return '<img src="/homeassistant/www/467715.png"/>'; 
    ]]]
styles:
  card:
    - height: 300px
    - width: 300px

But I get the following:

image

I installed button-card and card-mod, but it does not read the image.

I dont think that is the way to show a person image.
This works tho:

type: custom:button-card
entity: person.yourperson
show_icon: false
show_entity_picture: true

/local/467715.png

1 Like

Thank you guys, it worked.