Evening,
I used to have a webcore piston that once a sonos had stopped completely playing it reset itself after a time period back down to a reasonable level, so that when the next person used it the volume wouldn't be really loud.
I've tried this so far but its not really working well
Trigger
Bedroom Sonos, Kitchen Sonos any stopped
Actions
Cancel Delayed Actions
Delay 0:00:30
Set Volume on Bedroom Sonos, Kitchen Sonos to 15
Does anyone have a working script for this at all?
If you just run the actions separately, does it work?
An alternative to the volume command using the "control music player option" in RM, you can issue a direct command to the device using run custom action, actuator capability, [name of Sonos device], setVolume, [volume level]. I prefer to use this as I have found using volume control is unreliable and tends to increment the volume instead.
ahh changed it to paused or stopped and now its working better. just need to work out how to make it so only the active one resets rather than all of them when one stops