Routine Stops Mid-Execution: Truncation Causes and Fixes

When a routine starts but stops partway through, the engine truncated. Here is how to identify what caused the truncation and recover.

Routine Stops Mid-Execution: Truncation Causes and Fixes
Difficulty Intermediate
Estimated time 30 minutes
Last tested May 2026
Verified on Alexa, Google Home, SmartThings +1

Your goodnight routine starts. The lights dim. The thermostat lowers. The music starts to play. Then nothing else. The doors do not lock. The security system does not arm. The routine just stopped halfway. Different routines truncate in different ways, but the underlying cause is usually one of a handful of engine behaviors.

The action timeout

Each action in a routine has a timeout. If an action does not complete in the configured time, the engine moves on, sometimes by abandoning the rest of the routine.

Common reasons an action might time out:

  • The target device is slow or offline
  • The manufacturer cloud is slow
  • The routine’s action queue has backed up due to many simultaneous routines

To check: was the truncated action calling a device that you know is slow or unreliable? Often the action that hung is the last action that successfully executed plus the one immediately after.

The total routine timeout

Some engines have a total routine timeout, typically 30-60 seconds. If your routine has many actions and each takes a couple of seconds, the total can exceed this.

Symptoms: the routine truncates at a similar point each time, regardless of which specific actions are involved.

Fix: split the routine into smaller routines that chain. Routine A runs the first 10 actions then triggers routine B which runs the next 10. Each individual routine fits within the timeout.

The conditional action skip

Some actions have implicit conditions. “Turn on the kitchen light” may silently skip if the kitchen light is already on, depending on the engine. “Set thermostat to 72” may skip if it is already 72.

This is not really truncation; it is correct behavior the user did not expect. Verify each “skipped” action would have changed something.

The exception that stops processing

If an action encounters an exception (network error, invalid parameter), some engines stop the routine entirely. Others continue with the next action.

  • Alexa: stops on exception
  • Google Home: continues
  • HomeKit: continues
  • SmartThings (Edge): continues
  • Home Assistant: configurable per automation

If your Alexa routine truncates after a specific action, that action is throwing an exception. Either fix the underlying issue or move the action to the end so its failure does not block other actions.

The hub overload

If your routine triggers many actions on one hub simultaneously (turn off all 15 kitchen lights), the hub may have a per-second action limit. Actions beyond the limit are queued or dropped.

The Hue Bridge specifically has rate limits. Sending more than 10 commands per second to it can result in dropped commands.

Fix: use Hue scenes instead of individual light commands. One scene command sets all the lights in a single message, well under any rate limit.

The cloud throttle

If your routine triggers many cloud-relayed actions (each going through a manufacturer cloud), the manufacturer cloud may rate-limit your account. Actions beyond the limit are delayed or dropped.

Symptoms: works fine for simple routines, breaks for complex ones; works fine at off-peak, breaks at peak.

Fix: reduce the number of cloud-dependent actions in a single routine. Spread them across multiple chained routines with delays.

The device-level retry exhaustion

Some devices retry failed commands internally. If a Hue bulb does not acknowledge a turn-on command, the bridge retries up to 3 times. The retries take time. If the retry budget exhausts and the bulb still does not respond, the action ultimately fails.

This can cascade: a routine has 5 actions, the second one’s target is offline, the second action burns through its retry budget for 6 seconds, the rest of the routine times out waiting.

Fix: identify and remove the offline device from your routines until it is healthy.

The voice trigger truncation

If your routine is voice-triggered and the voice response speaks while the routine is still executing, the voice response can sometimes preempt the rest of the routine. This is rare but documented.

Fix: put silent actions first, voice actions last in the routine. Or remove voice responses from routines that have many subsequent actions.

The hub firmware bug

If your hub recently updated firmware and routines started truncating, the firmware may have a bug. Check the hub’s release notes and community forums for similar reports.

Sometimes the fix is to wait for a patch. Sometimes there is a workaround posted by the community.

The action conflict

If two actions in the same routine target the same device with conflicting commands (turn on, then turn off, then dim), the engine may execute them out of order or skip some.

Fix: use the final intended state. Instead of “turn on, then dim to 50%”, just “set to 50%”. Removes the conflict.

The notification bottleneck

Routines that include push notifications can stall if the notification service is slow. The routine cannot proceed until the notification action returns success.

Fix: put notifications last in the routine. If the notification stalls, only it is affected, not the rest of the routine.

Test with a stripped-down version

If your routine truncates and you cannot figure out where, build a minimal version with only the first 3 actions. If that runs to completion, add the next 3. Continue until you identify which addition causes truncation.

This is bisection debugging. Slow but reliable.

When truncation is silent versus loud

Some platforms report truncation in their interfaces (Home Assistant shows action failure in traces). Others (Alexa, Google) are silent. Use the more transparent platform for diagnosis if you have access to one.

The action order matters

If you cannot prevent truncation, order actions by importance. Critical actions first, less critical actions last. This way truncation costs you the less important actions rather than the safety-critical ones.

For a goodnight routine: lock doors first, dim lights second, set thermostat third, play music last.

The ordering lesson worth internalizing

Order automation actions by criticality. If something fails midway through a routine, you want the most important actions to have already completed. Lock the doors first, lower the thermostat second, turn off lights third, play goodnight music last.

The user-facing experience is identical when the routine completes successfully, but resilient when it does not. The wider pattern is in our resilient routines guide.

Works with
AlexaGoogle HomeSmartThingsHomeKit

Frequently asked questions

Does my routine retry after truncation?

No. Once truncated, the routine does not auto-retry. You would need to manually trigger it again or wait for the next scheduled invocation.

Can I see exactly where my routine stopped?

On Home Assistant via traces, yes. On Alexa, Google, and most consumer platforms, no. You infer from which actions completed by observing the devices.

Will adding a wait step help with truncation?

Sometimes. Wait steps give devices time to respond before the next action fires. This can reduce timeouts that cause truncation. Add 1-3 second waits between actions that target slow devices.

What is the maximum routine duration?

Varies. Alexa: about 30 seconds total. Google: 60 seconds. HomeKit: longer. Home Assistant: configurable. Beyond your platform's limit, split into chained routines.

Why does my routine truncate at different points each time?

Variable truncation usually points to network or device timing issues. The device that times out varies based on which is slowest at that moment.

Can I exempt a critical routine from truncation?

Not exactly. You can configure higher action timeouts or split actions across multiple routines. There is no "never truncate" flag for routines.