History Graph Card


History graph is a basic card, allowing you to display a graph for each of the entities in the list specified as config.

Screenshot of the history graph card Screenshot of the history graph card.

Configuration Variables

type

(string)(Required)history-graph

entities

(list)(Required)A list of entity IDs or entity objects, see below.

hours_to_show

(integer)(Optional)Hours to show.

Default value: 24

refresh_interval

(integer)(Optional)Refresh interval in seconds.

Default value: 0

title

(string)(Optional)The card title.

Options For Entities

If you define entities as objects instead of strings, you can add more customization and configuration:

Configuration Variables

entity

(string)(Required)Home Assistant entity ID.

name

(string)(Optional)Overwrites friendly name.

Example

- type: history-graph
  title: 'My Graph'
  entities:
    - sensor.outside_temperature
    - entity: media_player.lounge_room
      name: Main player