MyElectricalData et Energy Dashboard

Bonjour,

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).

Où me suis-je trompé dans ma configuration ?

Ma configuration

version core-2023.12.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.59
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.33.0
Stage running
Available Repositories 1347
Downloaded Repositories 18
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.1
update_channel stable
supervisor_version supervisor-2023.11.6
agent_version 1.6.0
docker_version 24.0.6
disk_total 30.8 GB
disk_used 7.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.7.0), Terminal & SSH (9.8.1), MyElectricalData (0.9.2-6), Mosquitto broker (6.4.0)
Dashboards
dashboards 3
resources 12
views 7
mode storage
Recorder
oldest_recorder_run 5 December 2023 at 12:23
current_recorder_run 8 December 2023 at 14:08
estimated_db_size 162.06 MiB
database_engine sqlite
database_version 3.41.2

sensor.linky_xxx_consumption

yesterdayDate: "2023-12-08"
yesterday: 17.23
serviceEnedis: myElectricalData
yesterdayLastYearDate: "2022-12-09"
yesterdayLastYear: 24.15
daily:
  - 17.23
  - 17.37
  - 20.82
  - 15.95
  - 16.41
  - 32.39
  - 26.07
current_week: 146.27
last_week: 152.69
day_1: 17.23
day_2: 17.37
day_3: 20.82
day_4: 15.95
day_5: 16.41
day_6: 32.39
day_7: 26.07
current_week_last_year: 177.65
last_month: 536.54
current_month: 172.86
current_month_last_year: 196.19
last_month_last_year: 507.9
last_year: 0
current_year: 4806.31
current_year_last_year: 1074.52
dailyweek:
  - "2023-12-08"
  - "2023-12-07"
  - "2023-12-06"
  - "2023-12-05"
  - "2023-12-04"
  - "2023-12-03"
  - "2023-12-02"
dailyweek_cost:
  - 4
  - 3.8
  - 4.7
  - 3.6
  - 3.7
  - 7.4
  - 6
dailyweek_costHP:
  - 3.2
  - 2.7
  - 3.7
  - 2.7
  - 2.5
  - 6
  - 4.7
dailyweek_HP:
  - 12.93
  - 11.16
  - 15.22
  - 10.94
  - 10.05
  - 24.54
  - 19.01
dailyweek_costHC:
  - 0.8
  - 1.1
  - 1
  - 0.9
  - 1.2
  - 1.4
  - 1.3
dailyweek_HC:
  - 4.3
  - 6.2
  - 5.59
  - 5.01
  - 6.36
  - 7.84
  - 7.06
daily_cost: 4
yesterday_HP_cost: 2.7
yesterday_HP: 12.93
day_1_HP: 12932
day_2_HP: 11168
day_3_HP: 15222
day_4_HP: 10943
day_5_HP: 10053
day_6_HP: 24547
day_7_HP: 19013
yesterday_HC_cost: 0.8
yesterday_HC: 4.3
day_1_HC: 4308
day_2_HC: 6208
day_3_HC: 5598
day_4_HC: 5013
day_5_HC: 6366
day_6_HC: 7843
day_7_HC: 7064
peak_offpeak_percent: 61.2
yesterdayConsumptionMaxPower: 5410
dailyweek_MP:
  - 5.41
  - 3.91
  - 8.31
  - 5.13
  - 3.67
  - 7.02
  - 5.57
dailyweek_MP_time:
  - "2023-12-08 16:21:53"
  - "2023-12-07 22:26:36"
  - "2023-12-06 21:19:18"
  - "2023-12-05 19:29:00"
  - "2023-12-04 05:05:12"
  - "2023-12-03 19:06:21"
  - "2023-12-02 17:58:31"
dailyweek_MP_over:
  - "false"
  - "false"
  - "false"
  - "false"
  - "false"
  - "false"
  - "false"
monthly_evolution: 5.64
current_week_evolution: -4.2
current_month_evolution: -11.89
yesterday_evolution: -0.78
yearly_evolution: 347.3
friendly_name: Linky xxx consumption
errorLastCall: ""
errorLastCallInterne: ""
current_week_number: "49"
offpeak_hours_enedis: >-
  Lundi (22H56-6H56);Mardi (22H56-6H56);Mercredi (22H56-6H56);Jeudi
  (22H56-6H56);Vendredi (22H56-6H56);Samedi (22H56-6H56);Dimanche (22H56-6H56);
offpeak_hours:
  - - - 22H56
      - 6H56
  - - - 22H56
      - 6H56
  - - - 22H56
      - 6H56
  - - - 22H56
      - 6H56
  - - - 22H56
      - 6H56
  - - - 22H56
      - 6H56
  - - - 22H56
      - 6H56
subscribed_power: 9 kVA
version: 0.9.2
activationDate: "2022-09-30 00:00:00"
lastUpdate: "2023-12-09 13:18:50"
timeLastCall: "2023-12-09 13:18:50"
unit_of_measurement: kWh
device_class: energy

statistics_importer :

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

J’ai trouvée mon « erreur ».

Il est inutile regarder aujourd’hui