by Rik van den Reijen
This is a private safe / online backup will edit in the future
Set a calendar containing events during which you want to have your device muted (except priority) and it will automatically set your sound profile based on contained events.
Fixed version as Andreas Gustavsson pointed out some mistakes. Hope it works better now.
If you cancel/delete an event during the event, the flow will not correct itself until another event is reached. I might add a fix to that in the future aswell. Until then, just add a dummy event in the next few minutes to fix the thing.