Trying to Increase Volume/Brightness over a period of time - Variables or +/- values?

I’ve been trying to create a rule that could fade a light or change volume over a period of time by using the “every” action but I’ve been unable to get anything to work - and even if I did I’m not sure how to limit it to a period of time or stop it after a number of cycles. Does the functionality exists to create this?

Below is a basic iteration of what I’ve tried most recently:

{
  "name": "Sonos Increase Volume",
  "actions": [
    {
      "every": {
        "interval": {
          "value": {
            "integer": 2
          },
          "unit": "Minute"
        },
        "actions": [
          {
            "command": {
              "devices": [
                "Sonos_group"
              ],
              "commands": [
                {
                  "component": "main",
                  "capability": "mediaGroup",
                  "command": "setGroupVolume",
                  "arguments": [
                    {
                     "integer": +1
					}
                  ]
                }
              ]
            }
          }
          
        ]
      }
    }
  ]
}

I don’t know how to do a continual gradual change as you want, and I have tried, but if you can manage it, the limit function would work for you. Docomented in @nayelyz 's post here

1 Like

Cool, thanks… That’s one step closer.

1 Like