Ideas for turning lights on and off intermittently

Hello,
I’m doing my custom action and I want to create one automation/scripts/blueprint/something that perform turning on and off intermittently the light.

I want to use it for alarm or ringing of the doorbell or telephone… Do you have some idea how to perform it? I have switch already integrated and group… The unique aspect is the action of timers or 2 automation that run accordingly… Mmmh I have no idea of best solution for that, and you?

Did you look at the doc for scripts? Your use case seems to exactly match the example used for counted repeat

I totally missed this part! Thank you very much, I will try with the scripts as you indicated