Start and stop sleep tracking without opening Sleep as Android app, in background, only using Tasker

From Anonymous on 2017/07/27 10:05:27 +0000

I use Tasker to start and stop sleep tracking.
Is there a way to start and stop sleep tracking without opening Sleep as Android app, in background, only using Tasker (Tasker intents, maybe?)?
Currently, executing plugins opens Sleep as Android app both when starting and stopping sleep tracking? I’m interested only in registering sleep time, not the quality of sleep.

Thank you.

Copied from original feature request: http://urbandroid.uservoice.com/forums/264867-sleep-as-android/suggestions/20311396-start-and-stop-sleep-tracking-without-opening-slee