diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 64ce97df9..eba124437 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -452,7 +452,11 @@ readingsGroup_2html($) last if(defined($htmlTxt)); } - $txt = $htmlTxt if( $htmlTxt ); + if( $htmlTxt =~ m/(.*)<\/td>/s ) { + $txt = $1; + } elsif( $htmlTxt ) { + $txt = $htmlTxt; + } } } @@ -563,10 +567,13 @@ readingsGroup_2html($) last if(defined($htmlTxt)); } - if( $htmlTxt ) { - $v = $htmlTxt; + if( $htmlTxt =~ m/(.*)<\/td>/s ) { + $v = $1; $webCmdFn = 1; - } + } elsif( $htmlTxt ) { + $v = $htmlTxt; + $webCmdFn = 1; + } } } ($v,$devStateIcon) = readingsGroup_makeLink($v,$devStateIcon,$cmd) if( !$webCmdFn );