Cant get trigger with minutes to work

Hey guys
i found this automation and wanted to try it out
because i need something for anot automation to do an action every 2 min.

when check my config i get an error

invalid config for [automation]: [minutes] is an invalid option for [automation]. Check: automation->trigger->0->minutes.

- alias: turn on fans
  trigger:
    platform: time
    minutes: '/1'
    seconds: 00
  action:
    - service: switch.turn_on
      entity_id: switch.sonoff01
    - delay:
        minutes: 1
    - service: switch.turn_off
      entity_id: switch.sonoff01

i think the automation might be abit older so maybe the trigger has changed ?
i have tried to find something to replace it with but i dont know what else to search for.

i hope you can help me out.

Change platform to time_pattern

You might also need to take off the padded zero for seconds… May not even need seconds.

Thanks alot! :slight_smile: