Sound Mode

Only works correctly on some devices (like Samsung for example)

Do not disturb settings on the phone may override this in some situations

Important Note: if you use this action while DND is enabled on your phone, DND will be turned off and on again by Tasker, so your phone will report that it was Tasker that changed DND last.