Time switch/clock timer automation to toggle entity on/off in defined time frames

You might also take a look at schedy, might cover your needs.

May I ask why you prefer to use HA for automations?