Actions

Allow Sleep

Release every Keep Mac Awake hold and let the Mac sleep again.

action.allow_sleep
ACTIONAllow Sleep

At a glance

Emits
awake, released
Configuration
None — it always releases everything
Safe anywhere
Releasing nothing is not an error — released comes back 0

Set it up

Put it after the work that needed the Mac up. There is nothing to configure.

The Allow Sleep inspector. No fields — the node does one thing.
The Allow Sleep inspector. No fields — the node does one thing.

Output

KeyTypeValue
awakeBooleanAlways false — the holds are gone
releasedNumberHow many holds were active when it ran

Example: let it sleep when the export finishes

Keep Mac Awake holds, the script runs, Allow Sleep releases, and {{released}} says whether anything was actually holding.

Keep awake, work, allow sleep.
Keep awake, work, allow sleep.

Paste this into the Flow Builder to get the same flow:

Keep my Mac awake, run an export script, then allow sleep and log how many holds were released.

Good to know

Releasing is app-wide. It clears every Keep Mac Awake hold in Watchflows, including ones taken by other flows.