I noticed the intents API has a mechanism for pausing sleep tracking for 5 minutes by sending the intent com.urbandroid.sleep.ACTION_PAUSE_TRACKING
but doesn’t seem to have a way to resume sleep tracking afterwards. I tried sending com.urbandroid.sleep.alarmclock.START_SLEEP_TRACK
again but that didn’t seem to have any effect.
I really like it that my automation can pause sleep tracking when I leave bed during the night, would be great it it could automatically resume tracking when I return to bed.