Compteur HP HC suivant tarif du linky

Et voici le bon code pour l’automatisation :

alias: conso pompe piscine Tarif
description: ""
trigger:
  - platform: time
    at: "15:24:00"
    variables:
      tariff: hc
  - platform: time
    at: "17:24:00"
    variables:
      tariff: hp
  - platform: time
    at: "20:54:00"
    variables:
      tariff: hc
  - platform: time
    at: "02:54:00"
    variables:
      tariff: hp
condition: []
action:
  - service: select.select_option
    target:
      entity_id:
        - select.conso_pompe_piscine_an
    data:
      option: "{{ tariff }}"
mode: single

Encore merci @WarC0zes