don't ignore global DEFINED, DELETED and RENAMED events if not visible
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5004 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user