diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 4c7ab597b..3c04b1fec 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -306,6 +306,7 @@ readingsGroup_2html($) $txt = ""; Log3 $d, 3, $d .": ". $regex .": ". $@; } + next if( !defined($txt) ); } if( $first || $multi == 1 ) { @@ -487,7 +488,12 @@ readingsGroup_Notify($$) my $regex = @{$device}[1]; my @list = (undef); @list = split(",",$regex) if( $regex ); - foreach my $regex (@list) { + #foreach my $regex (@list) { + for( my $i = 0; $i <= $#list; ++$i ) { + my $regex = $list[$i]; + while ($regex && $regex =~ m/^$/ && $list[++$i] ) { + $regex .= ",". $list[$i]; + } next if( $reading eq "state" && !$show_state && (!defined($regex) || $regex ne "state") ); next if( $regex && $regex =~ m/^\+/ ); next if( $regex && $regex =~ m/^\?/ ); @@ -596,13 +602,15 @@ readingsGroup_Get($@)
Examples: