Need help with switches

I am trying to setup an automation for a switch that turns on every hour for one minute then turns off and repeat. I have not been able to find any examples. Any help would be greatly appreciated.
Thank you

 - alias: Switch on every hr then switch off
   initial_state: 'on'
   trigger:
     platform: time
     hours: '/1'
     minutes: '00'
     seconds: '00'
   action:
     - service: homeassistant.turn_on
       entity_id: switch.anyswitch
     - delay: '00:01:00'
     - service: homeassistant.turn_off
       entity_id: switch.anyswitch