J’ai installé le « add-on » MyElectricalData et je peux voir les informations sur la web-UI. C’est très bien. J’ai également installé « statistics-importer » et il fonctionne correctement - aucune erreur. (Je n’utilise pas Influx ou une autre base de données externe, seulement MQTT et Home Assistant).
Mais je ne peux pas configurer le tableau de bord de l’énergie. Il n’y a pas de choix disponible dans le configurateur qui montre la consommation d’énergie.
J’ai découvert que l’entité sensor.linky_xxx_consumption n’a pas l’attribut state_class : total (ou total_increasing).
stdout: >-
-- Sat 09-12-2023 12:39:13 --
Connecting to websocket at ws://localhost:8123/api/websocket
Authenticating with Home Assistant
authenticate: received response {'type': 'auth_required', 'ha_version':
'2023.12.0'}
authenticate: received response {'type': 'auth_ok', 'ha_version': '2023.12.0'}
# 21152243110863
HC ENERGY CONSUMPTION
Getting the last statistic data point from Home Assistant, up to 10 days back from now
Previous statistic data point found
Exporting statistics from cache since 2023-12-08 00:00:00, with a sum offset of 1736.77 kWh
Importing 9 statistic data points into Home Assistant
recorder_import_statistics: received response {'id': 2, 'type': 'result',
'success': True, 'result': None}
HC CONSUMPTION COST
Price: 0.1828 EUR/kWh
Getting the last statistic data point from Home Assistant, up to 10 days back from now
Previous statistic data point found
Exporting statistics from cache since 2023-12-08 00:00:00, with a sum offset of 317.48 EUR
Importing 9 statistic data points into Home Assistant
recorder_import_statistics: received response {'id': 4, 'type': 'result',
'success': True, 'result': None}
HP ENERGY CONSUMPTION
Getting the last statistic data point from Home Assistant, up to 10 days back from now
Previous statistic data point found
Exporting statistics from cache since 2023-12-07 23:00:00, with a sum offset of 4559.39 kWh
Importing 17 statistic data points into Home Assistant
recorder_import_statistics: received response {'id': 6, 'type': 'result',
'success': True, 'result': None}
HP CONSUMPTION COST
Price: 0.246 EUR/kWh
Getting the last statistic data point from Home Assistant, up to 10 days back from now
Previous statistic data point found
Exporting statistics from cache since 2023-12-07 23:00:00, with a sum offset of 1121.61 EUR
Importing 17 statistic data points into Home Assistant
recorder_import_statistics: received response {'id': 8, 'type': 'result',
'success': True, 'result': None}
production_detail not enabled, skipping
Elapsed time: 0.64 seconds
stderr: ""
returncode: 0