Skip to content

[Bug] Adaptive state doesn't change the state color according to the line color #163

@Gunth

Description

@Gunth

1. Is it related to Long Term Statistics (LTS)?

No

1a. If it is related to Long Term Statistics (LTS) then please attach your CSV file(s) of entities

I did

2. Your YAML Code

type: custom:statistics-graph-chart-card
card_header: Voltage phase 1
card_header_size: 14px
show_now_line: false
card_icon_size: 20px
show_grid: false
show_y_axis: false
show_y2_axis: false
show_x_axis: false
animate_graph: true
brush_zoom: false
points_per_hour: 10
height: 70
graph_start_hour: 0
datetime_format: HH:mm
x_grid_style: solid
y_grid_style: solid
align_header: center
entities:
  - entity: sensor.p1_meter_voltage_phase_1
    statistic_id: null
    name: " "
    color: "#ffffff"
    line_width: 1.5
    decimals: 2
    aggregate_func: last
    color_thresholds:
      enabled: true
      values:
        - value: 210
          color: "#03a9f4"
        - value: 220
          color: "#4caf50"
        - value: 240
          color: "#ff9800"
        - value: 250
          color: "#f44336"
    lower_bound: "215"
    state_size: 15px
    show_in_legend: true
    gradient: false
    tap_action:
      action: more-info
    state_adaptive_color: true
    align_state: center
    name_position: below
    legend_stats:
      - min
      - max
annotations: []
grid_options:
  columns: 6
  rows: auto

3. Bug Description

Hey @cataseven ,
It seems that the Adaptive Color doesn't change the color of the state based on the line color, it still take the state based color defined .

Image

Thnaks,
G.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions