Use eightctl for sleep/wake automation. Start with:
eightctl
eightctl --help
Confirm before scheduling disruptive actions.