Can HA Android widget, control an automation?

I figured out how to make a widget on my android phone to make a button the activates a light but is there a way to have a widget activate an automation?
Thanks

Trigger?

or turn the automation on/off (ie: enable/disable) ?

Either way, the answer is yes.

Create a toggle as a trigger, add that as a widget

That would work definitely but no need for an extra entity (toggle)

There is a widget type called action trigger. You can call action/service automation.trigger, set the interested automation id and it is done.

To be able to activate the “Then” part of a program. Example, when i push the widget button i would like to temporarily turn off motion notifications on my Reolink cameras. Thanks for the replies

Lots of ways to do it. If you want to turn off the notifications, either turn the automation off or create a toggle which you include as a Condition and turn that on/off as required.

Are you talking about an android widget?

sounds like you want to use

https://companion.home-assistant.io/docs/integrations/android-widgets#action-button

That is what I am referring to, yes

Not sure how to create a toggle as a trigger and will this show up in the widget list because all I see are devices.
Thanks

Nevermind, I finally figured it out. Thanks to all for the help.