thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.24k stars 113 forks source link

"grid-area" under "view_layout" is not working #276

Closed rgogada closed 1 year ago

rgogada commented 2 years ago

"grid-area" under "view_layout" is not working . its just ignoring this setting and rendering a 2 column grid

here is the code

  - type: 'custom:auto-entities'
    filter:
      include:
        - domain: camera
          options:
            type: custom:webrtc-camera
            entity: this.entity_id
            view_layout:
              grid-area: '{{ states.this.entity_id.entity_id.split(".")[1] }}'
    card:
      type: 'custom:layout-card'
      layout_type: custom:grid-layout
      layout:
        grid-template-columns: repeat(2, minmax(auto, 400px))
        grid-template-rows: auto
        grid-template-areas: '"frontyard frontyard" "entrance sideyard" "study stairs" "lounge backyard" "porch garage"'
        margin: auto
      cards: []
ildar170975 commented 2 years ago

I doubt that someone can repeat your conditions to help you. Create a simple MWE (which may be tested by someone else as well) and check if the problem occurs.

thomasloven commented 1 year ago

Templates only work i template.