Frontend: Ability to set History Graph colors

Created on 20 Jul 2019  路  3Comments  路  Source: home-assistant/frontend

It would be nice to be able to change the default colors applied to Lovelace history graph cards. The default colors seem somewhat arbitrary and can clash with other elements in the UI.

Or perhaps to select from a different palette if setting each entity and potential value is too troublesome?

history_graph

    type: history-graph
    title: 'Lighting History'
    entities:
      - entity: light.counter_switch
        name: 'Counter'
      - entity: light.bedroom_lights
        name: 'Bedroom'
      - entity: light.office_lights
        name: 'Office'            
      - entity: light.bathroom_lights
        name: 'Bathroom'
      - entity: light.basement_lights
        name: 'Basement'
      - entity: light.utilityroom_lights
        name: 'Utility'
      - entity: light.garage_lights
        name: 'Garage'
      - entity: light.porch_switch
        name: 'Porch'
      - entity: light.deck_switch
        name: 'Deck'
      - entity: light.landscape_lights
        name: 'Landscape'
chart history feature-request

Most helpful comment

All 3 comments

While I don't think that this old issue will get attention anymore 馃槩 there are two additional issues with these colors:

  1. When using history-graph with an binary_sensor for doors and windows, closed is red, while open is green which is the opposite you want, if you have these sensors for security reasons (then open doors or windows are bad and should be red).
  2. When history_graph is used with an regular sensor, you get different colors for the same state (depending on which state comes first). So in this case, I can't see at a glance, which door is unlocked at which times, because the colors are not consistent:
    barcard-color

8% of human males and 0.6% of females of Northern European ancestry are red-green color-blind.

Was this page helpful?
0 / 5 - 0 ratings