Wait
Category: Logic
Pauses the automation until a specific device changes or a timeout is reached. Unlike Delay (which always waits the full duration), Wait is conditional — it can be interrupted early by a device state change.
When to use
- Wait for a door to close before arming security
- Pause until motion clears before turning off lights
- Wait for user confirmation (e.g. a button press) before proceeding
- Add a "wait with timeout" — proceed after 30 seconds even if the device doesn't change
Configuration
- Timeout — Maximum time to wait in seconds (default: 30s)
- Continue on timeout — If enabled (default), the automation continues down the "timeout" path when the timer expires. If disabled, the automation stops.
Handles
The Wait node has two output handles:
- Triggered (green, left) — the device changed before the timeout
- Timeout (red, right) — the timeout expired without a device change
Output data
{{ nodes['<id>'].data.triggered }}—trueif the device changed,falseif timed out{{ nodes['<id>'].data.triggerData }}— If triggered, contains the trigger data (from_value, to_value, etc.)
Difference from Delay
| Delay | Wait | |
|---|---|---|
| Duration | Fixed, always waits the full time | Variable, interrupted by device change |
| Output handles | 1 (continues after timer) | 2 (triggered or timeout) |
| Use case | "Pause for 5 minutes" | "Wait up to 5 minutes for the door to close" |
Examples
Wait for door to close before locking:
- Device Changed → front door opened
- Wait → timeout 60s
- Triggered path → Set Device → lock the door
- Timeout path → Notify → "Front door still open after 1 minute!"
Motion-activated light with auto-off:
- Device Changed → motion detected
- Set Device → light on
- Wait → timeout 300s (5 min)
- Timeout path → Set Device → light off (motion cleared)
- Triggered path → (motion again, restart the wait)
Tips
- Wait listens for any registered trigger — configure the trigger conditions to be specific
- If the automation is in "restart" mode and a new trigger fires, the Wait is cancelled
- Use Wait + IF to implement complex conditional sequences