Thank you for your comment, I have the item set as you suggested.
I will try to do something like this, so that the volume will gradually increase, does the volume need to be hard coded in your example as a string or can it be in a variable like my example?
That should work I think, but sleeping for only 70 milliseconds is really short! I think you would want a longer delay or a bigger step-up in volume or both, or you will have sent ~40 command events over a period of 2.8 seconds, which might be pushing your luck (I haven’t tried it so maybe it’s OK), but I think a larger volume step at least is a good idea.