Can widget extensions be used in automations?
Yes. The same APIs used for widgets are also available to themes and automations.