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 .= "
attr temperatures mapping %READING in %ALIAS
+ attr temperatures mapping %DEVICE-%READING
attr temperatures mapping {temperature => "%DEVICE Temperatur"}
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.