Chart card for attributes data

Hi all,
I am using Suez Water integration which gives me an entity with attributes. I would like to show chart with part of attributes. In my case I would like to chart only “history” part. Do I need to use a Template for that ?

attribution: Data provided by toutsurmoneau.fr
this_month_consumption:
  01/08/2021: 0
  02/08/2021: 12
  03/08/2021: 0
  04/08/2021: 0
  05/08/2021: 1
  06/08/2021: 0
  07/08/2021: 0
  08/08/2021: 0
  09/08/2021: 0
  10/08/2021: 0
  11/08/2021: 0
  12/08/2021: 0
  13/08/2021: 0
  14/08/2021: 0
  15/08/2021: 0
  16/08/2021: 0
  17/08/2021: 123
  18/08/2021: 84
  19/08/2021: 116
  20/08/2021: 75
  21/08/2021: 59
  22/08/2021: 0
  23/08/2021: 0
  24/08/2021: 1
  25/08/2021: 0
  26/08/2021: 0
  27/08/2021: 0
  28/08/2021: 0
  29/08/2021: 0
  30/08/2021: 0
  31/08/2021: 0
previous_month_consumption:
  01/07/2021: 0
  02/07/2021: 17
  03/07/2021: 0
  04/07/2021: 0
  05/07/2021: 3
  06/07/2021: 1785
  07/07/2021: 2191
  08/07/2021: 0
  09/07/2021: 0
  10/07/2021: 0
  11/07/2021: 0
  12/07/2021: 0
  13/07/2021: 4
  14/07/2021: 0
  15/07/2021: 1
  16/07/2021: 9
  17/07/2021: 1
  18/07/2021: 0
  19/07/2021: 0
  20/07/2021: 40
  21/07/2021: 4
  22/07/2021: 0
  23/07/2021: 0
  24/07/2021: 0
  25/07/2021: 0
  26/07/2021: 0
  27/07/2021: 0
  28/07/2021: 0
  29/07/2021: 0
  30/07/2021: 0
  31/07/2021: 0
highest_monthly_consumption: 4054
last_year_overall: 0
this_year_overall: 6877
history:
  Mai 2021: 0
  Juin 2021: 2351
  Juillet 2021: 4054
  Août 2021: 471
unit_of_measurement: L
friendly_name: Suez Water Client
icon: mdi:water-pump

You can use apexcharts to generate a graph from this data, see: GitHub - RomRider/apexcharts-card: 📈 A Lovelace card to display advanced graphs and charts base

You will need a template to get the data in the right format.

1 Like