diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 16aa17e82..b39eecc8e 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -614,19 +614,6 @@ readingsGroup_Notify($$) return if( AttrVal($name,"disable", 0) > 0 ); - if( $hash->{alwaysTrigger} ) { - } elsif( !defined($hash->{mayBeVisible}) ) { - Log3 $name, 5, "$name: not on any display, ignoring notify"; - return undef; - } else { - if( $FW_visibleDeviceHash{$name} ) { - } else { - Log3 $name, 5, "$name: no longer visible, ignoring notify"; - delete( $hash->{mayBeVisible} ); - return undef; - } - } - return if($dev->{TYPE} eq $hash->{TYPE}); #return if($dev->{NAME} eq $name); @@ -661,6 +648,19 @@ readingsGroup_Notify($$) next if (!$hash->{CONTENT}->{$dev->{NAME}}); + if( $hash->{alwaysTrigger} ) { + } elsif( !defined($hash->{mayBeVisible}) ) { + Log3 $name, 5, "$name: not on any display, ignoring notify"; + return undef; + } else { + if( $FW_visibleDeviceHash{$name} ) { + } else { + Log3 $name, 5, "$name: no longer visible, ignoring notify"; + delete( $hash->{mayBeVisible} ); + return undef; + } + } + my @parts = split(/: /,$s); my $reading = shift @parts; my $value = join(": ", @parts);