diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index 6d7fb2346..9abe91d03 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -200,9 +200,11 @@ harmony_actionOfCommand($$) my ($device, $command) = @_; return undef if( ref($device) ne "HASH" ); + $command = lc($command); + foreach my $group (@{$device->{controlGroup}}) { foreach my $function (@{$group->{function}}) { - if( $function->{name} eq $command ) { + if( lc($function->{name}) eq $command ) { return decode_json($function->{action}) if( harmony_isFritzBox() ); return JSON->new->utf8(0)->decode($function->{action}); @@ -256,7 +258,7 @@ harmony_Set($$@) return if( $cmd eq "hidDevice" ); } else { - $list = "command hidDevice:noArg text cursor:Up,Down,Left,Right,PageUp,PageDown,Home,End special:PreviousTrack,NextTrack,Stop,PlayPause,VolumeUp,VolumeDown,Mute"; + $list = "command hidDevice: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" if( defined($hash->{id}) ); } @@ -464,7 +466,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:PreviousTrack,NextTrack,Stop,PlayPause,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"; } @@ -1577,9 +1579,9 @@ harmony_Attr($$$)