mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
don't ignore global DEFINED, DELETED and RENAMED events if not visible
git-svn-id: https://svn.fhem.de/fhem/trunk@5004 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8a7759169c
commit
e40a6d1fc0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user