Snooze (play for XX minutes, then pause / stop)

Is there a Snooze function being developped / part of a plugin?
Thinking about a motion sensor which triggers snooze (when someone walks into room, music plays for x minutes, then stops)

Any ideas?

Someone seems to be looking at something similar in - but not sure if how or if this will be added in core, or if it will be left to extensions to solve.