diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm
index 0fdfeefc8..5ee3816ff 100644
--- a/fhem/FHEM/33_readingsGroup.pm
+++ b/fhem/FHEM/33_readingsGroup.pm
@@ -210,7 +210,9 @@ lookup2($$$$)
$vf = $lookup->{$name.".".$reading} if( exists($lookup->{$name.".".$reading}) );
$vf = $lookup->{$reading.".".$value} if( defined($value) && exists($lookup->{$reading.".".$value}) );
$lookup = $vf;
- } elsif($lookup =~ m/^{.*}$/) {
+ }
+
+ if( !ref($lookup) && $lookup =~ m/^{.*}$/) {
my $DEVICE = $name;
my $READING = $reading;
my $VALUE = $value;
@@ -928,10 +930,10 @@ readingsGroup_Attr($$$)
notime
If set to 1 the reading timestamp is not displayed.
mapping
- 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, %ROOM, %GROUP and %READING are replaced by the device name, device alias, room attribute, group attribute and reading name respectively. You can
- also prefix these keywords with $ instead of %. Examples:
+ 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, %ROOM, %GROUP and %READING are replaced by the device name, device alias, room attribute,
+ group attribute and reading name respectively. You can also prefix these keywords with $ instead of %. Examples:
attr temperatures mapping $DEVICE-$READING
attr temperatures mapping {temperature => "%DEVICE Temperatur"}