kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.89k stars 233 forks source link

Issue with rendering graphs #988

Closed joshsalvi closed 11 months ago

joshsalvi commented 1 year ago

See screenshot here IMG_0927

This occurs periodically and rerenders appropriately if I change just one setting in the configuration.

cards:
  - type: horizontal-stack
    title: Temperature and Humidity
    cards:
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.temperature_sensor_bedroom
            name: Aqara
            color: '#FEDB81'
            show_points: false
            show_legend: true
        line_color: orange
        line_width: 4
        lower_bound: 50
        upper_bound: 80
        font_size: 75
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        show:
          average: false
          extrema: false
        name: Bedroom Temp
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.temperature_sensor_humidity_sensor_bedroom
            name: Aqara
            color: '#FEDB81'
            show_points: false
            show_legend: true
        line_color: orange
        line_width: 4
        font_size: 75
        lower_bound: 30
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        show:
          average: false
          extrema: false
        name: Humidity
  - type: horizontal-stack
    cards:
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.nursery_temperature
            name: Sensibo
            color: '#ADD8E6'
          - entity: sensor.temperature_and_humidity_sensor_nursery_2
            name: Aqara
            color: '#48aaad'
          - entity: sensor.nursery_temperature_average
            name: Average
            color: '#0492c2'
            show_points: false
            show_legend: true
        line_color: '#ADD8E6'
        line_width: 4
        font_size: 75
        lower_bound: 50
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        show:
          average: false
          extrema: false
        name: Nursery Temp
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.nursery_humidity
            name: Sensibo
            color: '#ADD8E6'
          - entity: sensor.temperature_and_humidity_sensor_nursery_humidity_sensor_2
            name: Aqara
            color: '#48aaad'
          - entity: sensor.nursery_humidity_average
            name: Average
            color: '#0492c2'
            show_legend: false
            show_points: false
        line_width: 4
        line_color: '#ADD8E6'
        font_size: 75
        lower_bound: 30
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        show:
          average: false
          extrema: false
        name: Humidity
        icon: mdi:water-percent
  - type: horizontal-stack
    cards:
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.living_room_temperature
            show_legend: true
            show_points: false
        line_color: '#af69ed'
        line_width: 4
        font_size: 75
        lower_bound: 50
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        name: Living Room Temp
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.living_room_humidity
            show_legend: true
            show_points: false
        line_color: '#af69ed'
        line_width: 4
        font_size: 75
        lower_bound: 30
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        name: Humidity
        icon: mdi:water-percent
  - type: horizontal-stack
    cards:
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.temperature_and_humidity_sensor_basement
            name: Aqara
            color: '#03c04a'
            y_axis: secondary
          - entity: sensor.basement_temperature_feels_like
            name: Sensibo
            color: '#74b72e'
            show_legend: true
            show_points: false
        line_color: '#e74c3c'
        line_width: 4
        font_size: 75
        lower_bound: 50
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        name: Basement Temp
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.temperature_and_humidity_sensor_basement_humidity_sensor
            name: Aqara
            y_axis: secondary
            color: '#03c04a'
            show_legend: true
            show_points: false
        line_color: '#e74c3c'
        line_width: 4
        font_size: 75
        lower_bound: 30
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        name: Humidity
  - type: horizontal-stack
    cards:
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.bedroom_temperature_average
            name: Bedroom
            color: '#ff4f00'
            y_axis: secondary
          - entity: sensor.nursery_temperature_average
            name: Nursery
            color: '#0492c2'
          - entity: sensor.living_room_temperature
            color: '#af69ed'
            name: Living Room
            show_points: false
            show_legend: true
        line_width: 3
        font_size: 75
        lower_bound: 50
        upper_bound: 80
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        show:
          state: false
          labels: true
        name: Temperature
        icon: mdi:thermometer
      - type: custom:mini-graph-card
        entities:
          - entity: sensor.bedroom_humidity_average
            name: Bedroom
            color: '#ff4f00'
            y_axis: secondary
          - entity: sensor.nursery_humidity_average
            name: Nursery
            color: '#0492c2'
          - entity: sensor.living_room_humidity
            color: '#af69ed'
            name: Living Room
            show_points: false
            show_legend: true
        line_width: 3
        font_size: 75
        lower_bound: 30
        upper_bound: 70
        hours_to_show: 24
        points_per_hour: 1
        smoothing: true
        show:
          state: false
          labels: true
        name: Humidity
        icon: mdi:water-percent
ildar170975 commented 12 months ago

@joshsalvi Do you still have the issue? If yes - please re-test with a MINIMAL reproducible code (here you posted 219 lines). If not - please close the issue.