diff --git a/homeassistant.c b/homeassistant.c index 754d2cc..c26af52 100644 --- a/homeassistant.c +++ b/homeassistant.c @@ -22,8 +22,8 @@ typedef struct { static ha_config_desc ha_config_descs[] = { { "PAPP", "measurement", "power", "Puissance Apparente", "VA", }, { "IINST", "measurement", "current", "Intensité Instantanée", "A", }, - { "HCHP", "measurement", "energy", "Energie Heures Pleines", "kWh", true, "{{ (value | float) / 1000 }}" }, - { "HCHC", "measurement", "energy", "Energie Heures Creuses", "kWh", true, "{{ (value | float) / 1000 }}" }, + { "HCHP", "total_increasing", "energy", "Energie Heures Pleines", "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, "{% if value == \"TH..\" %}Toutes les Heures" "{% elif value == \"HC..\" %}Heures Creuses"