From 65c4e8a2db3ef6fdc9a22aa5cf56b7fb5186624e Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Tue, 8 Feb 2022 13:52:18 +0100 Subject: [PATCH] ha: changed state_class to 'total_increasing' for energy --- homeassistant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"