The problem is that, unlike the motion lighting apps, it seems the countdown doesn't reset if motion is detected again. So as soon as the sensor goes inactive, 6 minutes from then the volume will go down, even if there's been heaps of movement in the room in the meantime. Any tips on how I can write this rule so that the countdown resets if more motion is detected?
Actions:
Cancel delayed actions
Set volume to master volume(using your existing logic)
Wait for event motion inactive
set volume to 1 -> delay 5 min (cancelable)
The key is to cancel delayed actions. If you want the two rules for ease of change, just put a Cancel timed actions > Other rule in your Active rule.
Cancel Delayed actions will only cancel actions for that rule. There is another option to cancled the timed actions of another rule as seen in the screenshot below