Dashboard and counters

Hello,
I collect the indexes of my electric meter which arrive well in HA with off-peak hours and peak hours.
I created a first “peak hours” energy meter that goes up well for the energy dashboard.
I created the 2nd counter for “off-peak hours” and it was impossible to add it to the dashboard even though I configured it exactly like the other, with the difference near the sensor which is obviously different.
I created a “test” counter with another sensor => it appears.
I created a counter with a different name but with the same sensor => it does not appear.
It’s as if it came from the sensor but I have absolutely no idea why…
Do you know where it could come from?
Thanks

teleinfo_energyhc:
      friendly_name: "Heures creuses"
      value_template: '{{ (state_attr("sensor.teleinfo_linky","TIC").HCHC)/1000 |float }}'
      unit_of_measurement: "kWh"
      device_class: energy

    teleinfo_energyhp:
      friendly_name: "Heures pleines"
      value_template: '{{ (state_attr("sensor.teleinfo_linky","TIC").HCHP)/1000 |float }}'
      unit_of_measurement: "kWh"
      device_class: energy