With the plugin ha_toyota you can integrate nice statistics from Toyota. Here is an example and the code.

YAML
type: entities
entities:
- entity: sensor.toyota_kilometerzahler
name: KM
- entity: sensor.toyota_aktuelle_jahresstatistiken
name: Jahr
secondary_info: none
- entity: sensor.toyota_aktuelle_monatsstatistiken
name: Monat
- entity: sensor.toyota_aktuelle_wochenstatistiken
name: Woche
- entity: sensor.toyota_aktuelle_tagesstatistiken
name: Tag
secondary_info: none
title: Statistik
state_color: falseYAMLYAML
type: vertical-stack
cards:
- type: entities
title: Aktuelle Jahresstatistiken
entities:
- type: attribute
entity: sensor.toyota_aktuelle_jahresstatistiken
attribute: Average_speed
name: Durchschnittsgeschwindigkeit
- type: attribute
entity: sensor.toyota_aktuelle_jahresstatistiken
attribute: Countries
name: Länder
- type: attribute
entity: sensor.toyota_aktuelle_jahresstatistiken
attribute: Total_fuel_consumed
name: Gesamtkraftstoffverbrauch
- type: attribute
entity: sensor.toyota_aktuelle_jahresstatistiken
attribute: Average_fuel_consumed
name: Durchschnittsverbrauch
- type: attribute
entity: sensor.toyota_aktuelle_jahresstatistiken
attribute: EV_distance
name: EV-Strecke
- type: attribute
entity: sensor.toyota_aktuelle_jahresstatistiken
attribute: EV_duration
name: EV-DauerYAML