Lovelace: Usercard

Hi i will take a “home” / “not_home” entry like this;
Example

i try it with this:

  - title: Test
    id: Test
    theme: dark-mode
    cards:
    
      - type: picture-entity
        entity: device_tracker.00089bbb9518
        show_name: false
        show_state: false
        state_image:
        "home": /local/image/Kevin.png
        "not_home": /local/image/Kevin_sw.png

But i receive this error:
image

i look at his code. he has the same…

You may need to indent the image detail

  - type: picture-entity
    entity: device_tracker.00089bbb9518
    show_name: false
    show_state: false
    state_image:
      "home": /local/image/Kevin.png
      "not_home": /local/image/Kevin_sw.png
2 Likes

… thanks :slight_smile: that was the problem!