ha: changed state_class to 'total_increasing' for energy

This commit is contained in:
Gilles Grandou 2022-02-08 13:52:18 +01:00
parent fab20bdb7f
commit 65c4e8a2db

View File

@ -22,8 +22,8 @@ typedef struct {
static ha_config_desc ha_config_descs[] = { static ha_config_desc ha_config_descs[] = {
{ "PAPP", "measurement", "power", "Puissance Apparente", "VA", }, { "PAPP", "measurement", "power", "Puissance Apparente", "VA", },
{ "IINST", "measurement", "current", "Intensité Instantanée", "A", }, { "IINST", "measurement", "current", "Intensité Instantanée", "A", },
{ "HCHP", "measurement", "energy", "Energie Heures Pleines", "kWh", true, "{{ (value | float) / 1000 }}" }, { "HCHP", "total_increasing", "energy", "Energie Heures Pleines", "kWh", true, "{{ (value | float) / 1000 }}" },
{ "HCHC", "measurement", "energy", "Energie Heures Creuses", "kWh", true, "{{ (value | float) / 1000 }}" }, { "HCHC", "total_increasing", "energy", "Energie Heures Creuses", "kWh", true, "{{ (value | float) / 1000 }}" },
{ "PTEC", NULL, NULL, "Période Tarifaire en cours", NULL, false, { "PTEC", NULL, NULL, "Période Tarifaire en cours", NULL, false,
"{% if value == \"TH..\" %}Toutes les Heures" "{% if value == \"TH..\" %}Toutes les Heures"
"{% elif value == \"HC..\" %}Heures Creuses" "{% elif value == \"HC..\" %}Heures Creuses"