Compteur HP HC suivant tarif du linky

En fait j’ai copié en Yaml et en mode UI j’ai :

La c’est bon :wink:
ta la bonne entité, ca va basculer maintenant.
normal que tu sois en mode YAML dans l’automatisation, car tu utilise un template qui est pas supporter en mode UI. Pareil chez moi.

J’ai un soucis avec mes automatisation

Elles sont toute comme ca !!
Je suis pas à la maison.
Je vais redémarrer le RPI en rentrant du boulot

Ta fais t’es automation que par le UI ?
ou ta toucher au fichier automations.yaml ?

Bonsoir,
J’ai donc refait le paramétrage et cela fonctionne bien maintenant avec « select ».
Merci pour ton aide @WarC0zes.
Bonne soirée
Stéphane

1 « J'aime »

Pense a mettre ton sujet en résolu.

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