OK, aftersome messing around I think I have figured out both how to get DnD to work on a schedule, and also how to get all three sound modes (normal, silent, vibrate) out of the OP5Guys who use tasker, care to share your Profile for it?
Initial setup: Settings->Alert Slider->Silent: Enable Vibration=OFF
This is essential in order to get all three sound modes with Tasker. The other modes in the Alerts Slider can get set you your liking.
To turn DnD on/off
Code:
Condition: from 10:00PM till 7:00AM (you can change this as well as add days of the week as you need)
Entrance action: Do not disturb=Priority
Exit action: Do not disturb=All
To toggle through sound modes download the Sound Mode Plugin and then define a new task
Code:
If (%SILENT eq off)
Sound Mode: Configuration=Silent
Flash "Silent"
Else If (%SILENT eq on)
Sound Mode: Configuration=Vibrate
Flash "Vibrate"
Else
Sound Mode: Configuration=Normal
Flash "Normal"
End if