ha: changed state_class to 'total_increasing' for energy
This commit is contained in:
parent
fab20bdb7f
commit
65c4e8a2db
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user