Automation/Template Switch?

Hello and welcome.

Please share what you have already tried, correctly formatted for the forum.