kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.97k stars 232 forks source link

Feature Request: Option so that additional entities do not influence the line display #840

Closed c11umw closed 1 year ago

c11umw commented 1 year ago

Hi I was hoping to change some of my sensors so that it would chart the value of the sensor (temperatures in this case) as well as the battery of the sensor on the same chart, but only the entity state.

When I add the additional entity it influences the information that I do want to see which means I can no longer see the historical charting.

Example. Outside weather sensor showing about 11C and the battery 56% Left is normal charting and right is with the additional battery entity (status only) As you can see, the left shows the temperature rise and fall where the right graph really only shows the current temperature with minimal variation to the charted line.

image

If there was a way to have the second battery entity not influence the chart display, that would be perfect

Before:

type: custom:mini-graph-card
hour24: true
entities:
  - sensor.lumi_weather_abc123456_temperature
name: Outside
align_state: center
font_size: 80
hours_to_show: 24
points_per_hour: 2
color_thresholds:
  - value: 0
    color: '#0000ff'
  - value: 2
    color: '#0000ff'
  - value: 8
    color: '#0066ff'
  - value: 16
    color: '#ad6b0a'
  - value: 28
    color: '#c0392b'
  - value: 29
    color: '#c0392b'

After:

type: custom:mini-graph-card
hour24: true
entities:
  - entity: sensor.lumi_lumi_weather_abc123456_temperature
    show_state: true
  - entity: sensor.lumi_lumi_weather_abc123456_power
    show_state: true
    show_points: false
    show_line: false
    show_fill: false
    fixed_value: false
name: Outside
font_size: 80
hours_to_show: 24
points_per_hour: 2
color_thresholds:
  - value: 0
    color: '#0000ff'
  - value: 2
    color: '#0000ff'
  - value: 8
    color: '#0066ff'
  - value: 16
    color: '#ad6b0a'
  - value: 28
    color: '#c0392b'
  - value: 29
    color: '#c0392b'
show:
  legend: false
c11umw commented 1 year ago

Just spotted the option: "show_graph: false"