automate.onAutomationStateChanged emits whenever the selected automation’s enabled state changes. Use a semantic trigger when only one direction matters.
automations/watch-automation-state.automation.ts
Configuration
Trigger data
Returns the selected automation and its project and organization, pluspreviousEnabled, enabled, and transitionedAt. The automation includes id, identityKey, and deployed description.
Automate.ax stores this event in the same transaction as the state change. An action does not wake the automation that performed that action, but other subscribed automations still receive it.