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:
parent
3b0b81c141
commit
2b163e9bf0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user