I’ve been trying to get a bar graph from nordpool electricity prices, but for some reason the graph style won’t change no matter how I try to configure it.

I’m running Home assistant OS (or whatever that was called) on a raspberry pi 3:

  • Home Assistant 2023.10.1
  • Supervisor 2023.10.0
  • Operating System 10.5
  • Frontend 20231005.0 - latest

Currently my configuration for the card is like this:

type: custom:mini-graph-card
name: Pörssisähkö
entities:
  - entity: sensor.nordpool
    name: Pörssisähkö
    group-by: hour
    color: '#00ff00'
    show:
      graph: bar

But no matter how I try to change that the graph doesn’t change and there’s also other variables, like line graph with/without fill which doesn’t work as expected. Granted, I’m not that familiar with yaml nor home assistant itself, but this is something I’d expect to “just work” as the configuration for mini-graph-card is quite simple. It displays correct data from the sensor, but only in a line format.

Is this something that recent update broke or am I doing something wrong? I can’t see anything immediately wrong on any logs nor javascript console

  • EagleStClair@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    Very difficult to say with the formatting of your example. Here is one that I’m using and it produces a bar chart just fine.

    type: custom:mini-graph-card
    entities:
      - sensor.tibber_future_statistics
    font_size: 70
    height: 120
    hours_to_show: 10
    icon: mdi:flash
    line_width: 2
    line_color: var(--primary-color)
    name: Elpris
    points_per_hour: 1
    hour24: true
    lower_bound: 0
    show:
      fill: true
      graph: bar
      average: true
      state: false
    
    
    • IsoKiero@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      For whatever reason formatting broke, it looked fine with preview before posting, but it’s now fixed.

      Your configuration works just fine, thank you for that, I modified it for my sensor, but it would be nice to know why the previous attempt didn’t work.