Crear un ciclo de On/off

I am very new and I am looking for some automation that allows to perform a repetitive on/off cycle to program a freezer that I see that is malfunctioning. It is constantly turning on and off. I would like to regulate it with Home assistance.

Hi Jokin, have a look at this: Timer Automation with Toggle