kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.06k stars 238 forks source link

show_state: false wont work for the first entity #489

Closed bachy closed 2 years ago

bachy commented 4 years ago

like this one

type: 'custom:mini-graph-card'
hours_to_show: 168
points_per_hour: 0.25
name: Sdb rdc
icon: 'mdi:shower-head'
entities:
  - entity: sensor.temp_dixhuit
    name: 18°C
    color: dimgrey
    show_points: false
    fixed_value: true
    show_indicator: false
    show_fill: false
    show_legend: false
    show_state: false
  - entity: sensor.lumi_lumi_weather_a52d8704_temperature
    name: Temp
    show_state: true
    state_adaptive_color: true
    color: darkorange
  - entity: sensor.lumi_lumi_weather_a52d8704_humidity
    name: Humidity
    y_axis: secondary
    show_state: true
    state_adaptive_color: true
    color: lightseagreen
show:
  labels: true
  labels_secondary: true
  legend: false
  fill: false
line_width: 2
bojanpotocnik commented 3 years ago

I can confirm that. I moved entity on the first place to make its line appear as "Behind all", but that causes its state impossible to disable

type: 'custom:mini-graph-card'
name: Box
hours_to_show: 24
points_per_hour: 12
line_width: 2
hour24: true
smoothing: true
decimals: 1
entities:
  - entity: sensor.aqara_temperature_humidity_and_pressure_sensor_wsdcgq11lm_humidity
    name: RH in
    show_state: false
    y_axis: secondary
    color: lightgray
  - entity: >-
      sensor.aqara_temperature_humidity_and_pressure_sensor_wsdcgq11lm_temperature
    name: T in
    show_state: true
    show_indicator: true
    color: red
  - entity: sensor.outside_temperature
    name: T out
    show_state: true
    show_indicator: true
    color: blue
show:
  icon: false
  fill: false
  labels: true
  labels_secondary: hover

image If I place it on any other place, show_state: false works as expected image however in this case show_indicator: true does not show for first 2 entities.

derkommutator commented 3 years ago

I am seeing this problem as well. Besides not being able to set the state display to false, it's also impossible to apply state_adaptive_color to it, so the only way to get an adaptive color state is to put it onto a secondary entity, leading to an unwanted, un-colour-coded state display for the primary entity.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

mxwi commented 2 years ago

Hi,

any progress on that?

stale[bot] commented 2 years ago

Still an active issue, got it! Removing stale label.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!