It would be very useful to have driver support for volume fades on AudioVolume
and MusicPlayer
devices. Typically, in rules, I want to setVolume
or setLevel
to some new level (either hard coded in the rule or calculated based on the state of some other control), but then I want my device to gradually fade to that volume level rather than abruptly change to it. Trying to do this with repeated volumeUp
and volumeDown
commands is cumbersome, error prone, creates lots of events (which also need to then be ignored by other rules) and adds a ton of complexity to the rules.
Can we get an optional duration
parameter like there is in SwitchLevel
? For backwards compatibility I think it would be okay for this to be optional for the caller and then ignored if the driver doesn't support it yet.