Utility meter automation

Hi all

Just installed the aeotec home energy meter with succes. Now I have checked my energy company and seems that they split the billing like this:
Daily peak tariff from 07:00:00 to 22:00:00 and off-peak from 22:00:00 to 07:00:00 on weekdays.
For the weekend its off-peak tariff starts at Friday from 22:00:00 and ends on Sunday at 22:00:00.
So can I make just one automation to split the meter value in peak tariff and off-peak kWh?
Can someone lead me on this?

Thanks

utility_meter:
  daily_energy:
    source: sensor.energy
    cycle: daily
    tariffs:
      - peak
      - offpeak
  monthly_energy:
    source: sensor.energy
    cycle: monthly
    tariffs:
      - peak
      - offpeak


automation:
  trigger:
    - platform: time
      at: '07:00:00'
    - platform: time
      at: '22:00:00'
 
    
  action:
    - service: utility_meter.next_tariff
      entity_id: utility_meter.daily_energy
    - service: utility_meter.next_tariff
      entity_id: utility_meter.monthly_energy

Searching in the forum for multiple conditions and came up with this:
Could this work?

utility_meter:
  daily_energy:
    source: sensor.energy
    cycle: daily
    tariffs:
      - peak
      - offpeak
  monthly_energy:
    source: sensor.energy
    cycle: monthly
    tariffs:
      - peak
      - offpeak


automation:
  alias: utility meter 
  trigger:
    - platform: time
      at: '07:00:00'
    - platform: time
      at: '22:00:00'
  condition:
      - condition: time
        weekday:
        - mon
        - tue
        - wed
        - thu
        - fri
  trigger:
    - platform: time
      at: ’22:00:00'
    - platform: time
      at: ’07:00:00'
  condition:  
      - condition: time
        weekday:
        - fri
        - sat
        - sun        
   


  action:
    - service: utility_meter.next_tariff
      entity_id: utility_meter.daily_energy
    - service: utility_meter.next_tariff
      entity_id: utility_meter.monthly_energy