By using two separate automations, one handles the Fri/Sat schedule and the other handles the other days. Otherwise, you’ll require a complex template; not worth the effort when two automations simplify life.
Hello, for controlling days you can use “turnoffon”
your config will be simple:
turnoffon:
my_auto:
action_entity_id: automation.id # put here id of automation (not alias)
# you will find it in automations.yaml
timers: { "6:00":"23:59" } # from the mornig to the rest of the day
weekdays: ['mon', 'thu'] # the days you want
Automation will be turned-on on Monday, and Thursday.