2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

10_RHASSPY: add playlist command to MediaControls

git-svn-id: https://svn.fhem.de/fhem/trunk@26116 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2022-06-04 10:07:23 +00:00
parent 3b0b81c141
commit 2b163e9bf0

View File

@ -1396,7 +1396,7 @@ sub _analyze_genDevType_setter {
my $allValMappings = {
MediaControls => {
cmdPlay => 'play', cmdPause => 'pause' ,cmdStop => 'stop', cmdBack => 'previous', cmdFwd => 'next', chanUp => 'channelUp', chanDown => 'channelDown' },
cmdPlay => 'play', cmdPause => 'pause' ,cmdStop => 'stop', cmdBack => 'previous', cmdFwd => 'next', chanUp => 'channelUp', chanDown => 'channelDown' , cmdPlaylist => 'playlist'},
GetState => {
update => 'reread|update|reload' },
SetScene => {
@ -5043,6 +5043,8 @@ sub handleIntentMediaControls {
#check if confirmation is required
return $hash->{NAME} if !$data->{Confirmation} && getNeedsConfirmation( $hash, $data, 'MediaControls', $device );
my $cmd = $mapping->{$command};
$cmd .= " $data->{Playlist}" if $command eq 'cmdPlaylist';
# Execute Cmd
analyzeAndRunCmd($hash, $device, $cmd);
# Define voice response