Multiple trigger for template sensor

Hello All!

I have a template sensor, which shows me the house today’s energy consumption:

- trigger:
    - platform: state
      entity_id: sensor.solaredge_energy_today
  sensor:
    - unique_id: "today_energy_consumption"
      name: "Today Energy Consumption"
      state: "{{ (states('sensor.solaredge_energy_today') | float /1000 ) - 
states('sensor.shellyem3_channel_a_energy_returned') | float + 
states('sensor.shellyem3_channel_a_energy') | float }}"
      unit_of_measurement: "kWh"

I need the trigger solaredge_energy_today, because this entity changes slowly (~5min), and the shelly entity is changing faster (~30sec), and I get some incorrect values. In this way is perfect, because if the solaredge_energy_today is changing, the shelly entity is almost correct in time.

That works well until I have some sun outside, because if the sun goes down, the entity solaredge_energy_today is not changing and triggering.

So is there any option to use multiple triggers? If entity solaredge_current_power is bigger than 0 (=there is some change in solaredge_energy_today entity), i can use the upper trigger, and after if isn’t any change in solaredge_energy_today, I can use for example a time based trigger (like 15 min)?

Thanks in advance,
Attila

Yes, you can use multiple triggers. Second example in this section of the docs has two: