Software Switch to use for Condition in Automation

I would like to have a switch entity which I can add o my dashboard and then use as a condition for an automation. For example: If my switch Entity is “on” the condition is “true” and automation will run when triggered and if it is “off” the condition is “false” then the automation will not run if triggered.

Do I do this with a Template??? If not, how? I have MQTT and Zigbee2Mqtt in my system if that helps?

Input Boolean (Toggle) helper.

Here is one of mine in an Entities card:

image

…and in an automation (first condition under And if):

Awesome. Thanks so much!