Option not valid for daily_energy

Hi everyone,

I have a problem using the utility meter function,

I can’t understand a part of the example in the doc.

I try to switch the consumption of my linky in full or off-peak depending on the time of day, and the price should follow, but when I do my tests nothing works.

My error is “Option not valid for daily_energy”

My code file configuration.yaml:

utility_meter:
  daily_energy:
    source: sensor.linky_consommation
    name: Daily Energy
    cycle: daily
    tariffs:
      - 'peak 0,1963'
      - 'offpeak 0,1457'
  monthly_energy:
    source: sensor.linky_consommation
    name: Monthly Energy
    cycle: monthly
    tariffs:
      - 'peak 0,1963'
      - 'offpeak 0,1457'

My code file automation:

alias: Energy
trigger:
  - platform: time
    at: '06:36:00'
    variables:
      tariff: 'peak 0,1963 '
  - platform: time
    at: '22:36:00'
    variables:
      tariff: 'offpeak 0,1457 '
action:
  - service: select.select_option
    target:
      entity_id: select.daily_energy_2
    data:
      option: '{{ tariff }}'
  - service: select.select_option
    target:
      entity_id: select.monthly_energy_2
    data:
      option: '{{ tariff }}'

Link of the doc here

Another question, can’t we modify a helper file?

Could you help me ?

Same problem here, similar yaml, just sun as trigger…
Any help?

anyone get to the bottom of this?