Hook automation to button UI

I’m sure this is a simple question but am not able to find a clear example. I created an automation that turns lights on at 25% when I execute it. I would like to create a button that toggles this automation on and then when I push it again turns the lights off. I’m struggling first with how to hook my automation to a button and then will struggle with how to make it a toggle where it turns on 25% and then turns off on second push. Does anyone have examples of this?

To give more information, I have 2 scenes:

  • OffBarnLights turns all lights off
  • DimBarnLights turns all lights to 25%

I want to create a toggle button that when pushed calls the scene DimBarnLights and when clicked again calls OffBarnLights.

Does anyone have any guidance?