From 0086efd7d49e67eba6fda7d801610ec118c407ad Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 26 Oct 2014 23:01:02 +0000 Subject: [PATCH] 37_harmony.pm: added media keys git-svn-id: https://svn.fhem.de/fhem/trunk@6816 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/37_harmony.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index 935d80b95..d56bf0cfe 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -331,6 +331,10 @@ harmony_Set($$@) $param = "01000081" if( $param eq "systempower" ); $param = "01000082" if( $param eq "systemsleep" ); $param = "01000083" if( $param eq "systemwake" ); + $param = "0C0000B5" if( $param eq "nexttrack" ); + $param = "0C0000B6" if( $param eq "previoustrack" ); + $param = "0C0000B7" if( $param eq "stop" ); + $param = "0C0000CD" if( $param eq "playpause" ); $param = "0C0000E9" if( $param eq "volumeup" ); $param = "0C0000EA" if( $param eq "volumedown" ); $param = "0C0000E2" if( $param eq "mute" ); @@ -390,7 +394,7 @@ harmony_Set($$@) } } - $list .= " command getConfig:noArg getCurrentActivity:noArg off:noArg reconnect:noArg sleeptimer sync:noArg text cursor:Up,Down,Left,Right,PageUp,PageDown,Home,End special:VolumeUp,VolumeDown,Mute"; + $list .= " command getConfig:noArg getCurrentActivity:noArg off:noArg reconnect:noArg sleeptimer sync:noArg text cursor:Up,Down,Left,Right,PageUp,PageDown,Home,End special:PreviousTrack,NextTrack,Stop,PlayPause,VolumeUp,VolumeDown,Mute"; return "Unknown argument $cmd, choose one of $list"; } @@ -1325,7 +1329,7 @@ harmony_Attr($$$)
  • cursor <direction>
    moves the cursor by bluetooth/smart keaboard dongle. <direction> can be one of: Up, Down, Left, Right, PageUp, PageDown, Home, End.
  • special <key>
    - sends special key by bluetooth/smart keaboard dongle. <key> can be one of: VolumeUp, VolumeDown, Mute.
  • + sends special key by bluetooth/smart keaboard dongle. <key> can be one of: PreviousTrack,NextTrack,Stop,PlayPause, VolumeUp, VolumeDown, Mute.