ha: remove last_reset attribute for energy

This commit is contained in:
Gilles Grandou 2022-02-08 13:58:28 +01:00
parent 65c4e8a2db
commit 4828f31e2f

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", "total_increasing", "energy", "Energie Heures Pleines", "kWh", true, "{{ (value | float) / 1000 }}" }, { "HCHP", "total_increasing", "energy", "Energie Heures Pleines", "kWh", false, "{{ (value | float) / 1000 }}" },
{ "HCHC", "total_increasing", "energy", "Energie Heures Creuses", "kWh", true, "{{ (value | float) / 1000 }}" }, { "HCHC", "total_increasing", "energy", "Energie Heures Creuses", "kWh", false, "{{ (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"