Repeat or loop automation overnight for HVAC if outside temp high

I have an automation to set to trigger if the outside temp is above a certain temp and the condition is between 22:00 and 6:00 so that climate.set_temperature is set to my desired temperature range.

How can I have the automation loop so that it runs every 15 minutes between 22:00 and 6:00 so that if someone manually changes the set temperature of the thermostat then the automation will change it back to the climate.set_temperature in the automation within those 15 minutes?

Time trigger,

  trigger:
    - platform: time_pattern
      minutes: '/15'
      seconds: 00
1 Like