Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decluttering template card fills two columns in new sections layout #80

Open
2 tasks done
lennon101 opened this issue Apr 18, 2024 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@lennon101
Copy link

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
V1.0.0

Last working release (if known):
N/A

Browser and Operating System:
Behaviour has been testing on both Mac and Windows PC's and on both Safari and Chrome (latest versions for both as of 19Apr24)

Description of problem:
I've been playing around with the Declutter template in the new sections layout (experimental). I understand that this layout is still in the development phase so I'm only raising this issue to prepare for future updates. It seems that the behaviour of the Declutter template card does not follow the grid scheme per layout card. I've tried to make this clearer using screenshots below.

Screenshot Screenshot

How the template is actually rendered:

Expected behaviour is that the template card should have been populated in the empty space beside the other cards. Instead, it has chosen to fill the entire row spreading across two column.

Screenshot 2024-04-19 at 9 10 42 AM

Javascript errors shown in the web inspector (if applicable):


Additional information:

The yaml for the template is below:

decluttering_templates:
  window_template:
    default:
      - primary: window
      - entity: ''
    card:
      type: custom:mushroom-template-card
      entity: '[[entity]]'
      primary: '[[primary]]'
      secondary: |-
        {% if is_state(entity, 'off') %}
          Closed
        {% else %}
          Open
        {% endif %}
      icon: |-
        {% if is_state(entity, 'off') %}
          mdi:window-closed-variant
        {% else %}
          mdi:window-open-variant
        {% endif %}
      icon_color: |-
        {% if is_state(entity, 'off') %}
          green
        {% else %}
          amber
        {% endif %}
      tap_action:
        action: more-info
      double_tap_action:
        action: none
      hold_action:
        action: none
@lennon101 lennon101 added the bug Something isn't working label Apr 18, 2024
@glibg10b

This comment was marked as off-topic.

@cloudbr34k84
Copy link

adding to this thread, now that new dashboard has sections and even more granular control over cards ,the same card
right card is using decluter and left is using normal tile card. would be great to have this card enhanced to support the new sections dashboard layouts
image

@webmediart-github
Copy link

Does it help to define the grid for the tile-card in the template?

layout_options:
        grid_columns: 2
        grid_rows: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants