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

Issue with thomasloven/lovelace-layout-card in Grid layout #135

Closed
4 tasks done
woodmj74 opened this issue Mar 17, 2021 · 3 comments
Closed
4 tasks done

Issue with thomasloven/lovelace-layout-card in Grid layout #135

woodmj74 opened this issue Mar 17, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@woodmj74
Copy link

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser
  • I verified that I'm really running the lastest version in my browser console
  • I checked if there is another issue opened with the same problem

Describe the bug
When using thomasloven/lovelace-layout-card in grid layout the following parameters are added to the lovelace cards to position it in the defined grid:

layout:
  grid-area: [position]

When using this with ApexCharts an error is thrown.

There appears to be some conversation around layout-card here: #121 but don't think this is the same issue

Version of the card
Version: 1.8.2

To Reproduce
This is the configuration I used:

Card Configuration:

      - type: 'custom:apexcharts-card'
        header:
          show: true
          title: Temperature
          show_states: true
          colorize_states: true
        all_series_config:
          show:
            legend_value: false
        series:
          - entity: sensor.lounge_temperature
          - entity: sensor.landing_temperature
          - entity: sensor.roof_temperature
        layout:
          grid-area: p22

View Configuration:

  - title: People Places
    path: people-places
    background: center / cover no-repeat url("/local/blue-back2.jpg") fixed
    icon: 'mdi:motion-sensor'
    panel: false
    type: 'custom:grid-layout'
    layout:
      grid-template-columns: 20px 1fr 20px 1fr 20px 1fr 20px
      grid-template-rows: auto
      grid-template-areas: |
        ". p11 . p12 . p13 ."
        ". p21 . p22 . p23 ."
      mediaquery:
        '(max-width: 800px)':
          grid-template-columns: 95%
          grid-template-areas: |
            "p11"
            "p12"
            "p13"
            "p21"
            "p22"
            "p23"
    badges: []
    cards:

Screenshots

image

Expected behavior
To be able to place an apexchart-card in my chosen layout-card grid location

Desktop (please complete the following information):

  • Chrome
  • Version 89.0.4389.90 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Appreciate this is probably not an apexchard-card specific issue and a result of using layout-card, specifically the Grid option. Raising it see if there is anything could be done but happily accept an answer that this isn't in scope.

@woodmj74 woodmj74 added the bug Something isn't working label Mar 17, 2021
@woodmj74
Copy link
Author

woodmj74 commented Mar 17, 2021

@thomasloven
Copy link

This will be fixed in layout-card.

@woodmj74
Copy link
Author

Closed as per Thomas comment

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

2 participants