Splitting files yaml with triggers in it

Hi i try to split me configuration.yaml using !include option but for trigger.
but it doesn’t seem to work, can you help me? thanks in advance.
for exemple export to “trigger boeler: !include triggers-boeler.yaml”
here the part i want to split:

  ########## increment du compteur a l'allumage du Boeler ############
  - trigger:
      - platform: state
        entity_id: switch.boeler_2
        from: "off"
        to: "on"
    action:
      - service: counter.increment
        target:
          entity_id: counter.boeler_n_start_today
        data: {}

Probably a better option than !include for your use case:

1 Like

thanks for your reply , try it now :grinning: