From fe9c451dedb4f44db7c5aae4914ffbd905637feb Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Wed, 22 Jan 2014 14:07:24 +0000 Subject: [PATCH] commands lookup fix git-svn-id: https://svn.fhem.de/fhem/trunk@4712 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index cd994da44..aeea57f43 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -388,7 +388,7 @@ readingsGroup_2html($) my $cmd = $3; $txt = FW_makeImage( $icon, $icon, "icon" ); - $cmd = lookup2($commands,$name,undef,$icon) if( !defined($cmd) ); + $cmd = lookup2($commands,$name,$d,$icon) if( !defined($cmd) ); ($txt,undef) = readingsGroup_makeLink($txt,undef,$cmd); } elsif( $first || $multi == 1 ) { @@ -407,7 +407,7 @@ readingsGroup_2html($) } } my $inform_id = ""; - $inform_id = "informId=\"$d-$item.item\"" if( $readings ); + $inform_id = "informId=\"$d-i$item.item\"" if( $readings ); $ret .= "
$txt
"; $first = 0; next; @@ -679,11 +679,12 @@ readingsGroup_Notify($$) my $icon = $1; my $cmd = $3; + $cmd = lookup2($commands,$name,$h->{NAME},$icon) if( !defined($cmd) ); $txt = FW_makeImage( $icon, $icon, "icon" ); ($txt,undef) = readingsGroup_makeLink($txt,undef,$cmd); } - CommandTrigger( "", "$name $item.item: $txt" ); + CommandTrigger( "", "$name i$item.item: $txt" ); } next;