If I use the "Store Audio Volumes" action when the phone is set to silent Automagic sets the variable global_volume_ring to 0.
That seems to be ok, but when I then do a "Restore Audio Volumes" action my phone is set to "vibrate" and not to "silent"

"Store/Restore Audio Volumes" should correctly store and restore the ringer mode and vibrate on ring settings.