Allow Sleep

Action moon.zzz.fill

action.allow_sleep

Release every active Keep Mac Awake hold and let the Mac sleep normally again. Any pending Keep Mac Awake timeout timers are cancelled at the same time.

This node takes no configuration — it always releases all holds. Releasing is app-wide: it clears every Keep Mac Awake hold, including ones started by other workflows, not just the flow this node lives in. The released output reports how many holds were active, so downstream conditions can branch on whether anything was actually keeping the Mac awake.

Ports

DirectionNameData TypeDescription
InputInputAnyIncoming payload (passed through, with the release result merged in)
OutputOutputAnyPayload with awake and released added

Configuration

This node has no configuration.

Output Variables

VariableTypeDescription
awakeBooleanAlways false — holds have been released
releasedNumberHow many active holds were released

Example

Let the Mac sleep again after a long task finishes: