diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 0ecffff4e..e448caea0 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -141,7 +141,7 @@ readingsGroup_2html($) my $name = $h->{NAME}; next if( !$h ); - if( $regex =~ m/\+(.*)/ ) { + if( $regex && $regex =~ m/\+(.*)/ ) { $regex = $1; my $now = gettimeofday(); @@ -243,7 +243,7 @@ readingsGroup_2html($) $m =~ s/\%ALIAS/$a/g; } - $ret .= "
$m
"; + $ret .= "
$m
"; $ret .= "
$v
"; $ret .= "
$t
" if( $show_time ); } @@ -430,7 +430,7 @@ readingsGroup_Get($@) Can be a simple string or a perl expression enclosed in {} that returns a hash that maps reading names to the displayed name. The keys can be either the name of the reading or <device>.<reading>. %DEVICE, %ALIAS and %READING are replaced by the device name, device alias and reading name respectively, e.g:
- attr temperatures mapping %READING in %ALIAS + attr temperatures mapping %DEVICE-%READING attr temperatures mapping {temperature => "%DEVICE Temperatur"}
  • separator
    @@ -453,7 +453,8 @@ readingsGroup_Get($@) attr temperatures valueStyle {($DEVICE =~ m/aussen/)?'style="color:green"':'style="color:red"'} Note: The perl expressions are evaluated only once during html creation and will not reflect value updates with longpoll. - Refresh the page to update the dynamic style. + Refresh the page to update the dynamic style. For nameStyle the collor attribut is not working at the moment, + font-... and background do work.