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

Are the examples checked for bad indentation? #56

Open
houser42 opened this issue Aug 12, 2024 · 3 comments
Open

Are the examples checked for bad indentation? #56

houser42 opened this issue Aug 12, 2024 · 3 comments

Comments

@houser42
Copy link

houser42 commented Aug 12, 2024

Hello,
Having another go at this useful card.
When attempting to use the example yamls I get "configuration errors detected: bad indentation of a mapping entry"

Question: Is this formatting ok?

- type: custom:apexcharts-card
  header:
    title: Förbrukning/timme & elpris
    show: true
  graph_span: 24h
  span:
    start: day
    offset: '-1d'
  yaxis:
    - id: first
      apex_config:
        tickAmount: 10
      min: 0
      max: 2
    - id: second
      opposite: true
      apex_config:
        tickAmount: 5
      min: 0
      decimals: 0
  apex_config:
    dataLabels:
      enabled: false
    stroke:
      width: 4
  series:
    - entity: sensor.greenely_hourly_usage
      name: Förbrukning
      yaxis_id: first
      type: column
      color: red
      show:
        legend_value: false
      data_generator: |
        return entity.attributes.data.map((entry) => {
          return [new Date(entry.localtime), entry.usage];
        }); 
    - entity: sensor.greenely_prices
      data_generator: |
          return entity.attributes.previous_day.map((entry) => {
            return [new Date(entry.date + 'T' + entry.time), entry.price];
          }); 
      yaxis_id: second
      type: line
      color: blue
      name: Elpris
      show:
        legend_value: false
@houser42 houser42 changed the title Are the examples cjhecked for bad indentation? Are the examples checked for bad indentation? Aug 12, 2024
@TSA3000
Copy link

TSA3000 commented Aug 13, 2024

Fattar du vad han menar med UI där man ska konfa

@houser42 houser42 reopened this Aug 16, 2024
@houser42
Copy link
Author

houser42 commented Aug 16, 2024

Fattar du vad han menar med UI där man ska konfa

Hej,
Jag är iofs svensk så kan ta det på svenska.
Har bara uppfattat det som att det artiga är att skriva på engelska på GitHub.

@houser42
Copy link
Author

Har fått igång något i ett Apex card genom att rätta formatteringen, men får inte igång prisprognos för kommande dag. Är det möjligt att se kommande priser i denna med en blå kurva?
Amvänder yaml enl. ovan.

Screenshot 2024-08-16 at 11 34 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants