History Graph


The history_graph component will make the UI display a graph similar to the graphs in more-info popups and the history panel.

To use this component in your installation, add the following to your configuration.yaml file:

# Minimal configuration.yaml entry
history_graph:
  gr1:
    entities:
      - light.ceiling.lights
  

Configuration Variables

entities

(string)(Required)List of entities whose history to show as a graph.

name

(string)(Optional)Name to display.

Default value: ID

hours_to_show

(integer)(Optional)Number of hours to show in the graph.

Default value: 24

refresh

(integer)(Optional)Number of seconds between graph refreshes. 0 to disable refreshing.

Default value: 0

Full Example

# Full configuration.yaml entry
history_graph:
  gr1:
    name: Lights Graph
    entities:
      - light.ceiling.lights
      - light.bed_light
    hours_to_show: 240
    refresh: 60
  gr2:
    name: Temperature
    entities:
      - sensor.outside_temperature
      - sensor.inside_temperature
    hours_to_show: 120
    # refresh: 0