mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-09 13:45:33 +00:00
37_harmony.pm: allow regex in command names
git-svn-id: https://svn.fhem.de/fhem/trunk@12569 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc6321d916
commit
5e3a7d1d91
@ -250,7 +250,8 @@ harmony_actionOfCommand($$)
|
||||
|
||||
foreach my $group (@{$device->{controlGroup}}) {
|
||||
foreach my $function (@{$group->{function}}) {
|
||||
if( lc($function->{name}) eq $command ) {
|
||||
#if( lc($function->{name}) eq $command ) {
|
||||
if( lc($function->{name}) =~ m/^$command$/ ) {
|
||||
return decode_json($function->{action}) if( harmony_isFritzBox() );
|
||||
|
||||
return JSON->new->utf8(0)->decode($function->{action});
|
||||
|
Loading…
x
Reference in New Issue
Block a user