Merci pour ta réponse cela m’a bien aidé.
Voici ma conf qui semble super bien fonctionner :
Sachant que j’ai défini un Calendar de type helper avec les bon créneaux.
Pour que tout fonctionne j’ai fait un package :
configuration.yaml :
homeassistant:
packages: !include_dir_named packages
packages/edf.yaml :
utility_meter:
daily_energy:
source: sensor.shellyem_production_consommation_channel_1_energy
name: Consommation EDF - J
cycle: daily
tariffs:
- HP
- HC
monthly_energy:
source: sensor.shellyem_production_consommation_channel_1_energy
name: Consommation EDF - M
cycle: monthly
tariffs:
- HP
- HC
automation:
alias: "Heures Creuses - Heures Pleines"
trigger:
- platform: calendar
event: start
offset: 0:0:0
entity_id: schedule.hc_schedule
variables:
tariff: "HC"
- platform: calendar
event: stop
offset: 0:0:0
entity_id: schedule.hc_schedule
variables:
tariff: "HP"
action:
- service: select.select_option
target:
entity_id: select.daily_energy
data:
option: "{{ tariff }}"
- service: select.select_option
target:
entity_id: select.monthly_energy
data:
option: "{{ tariff }}"