mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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 );
|
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->{TYPE} eq $hash->{TYPE});
|
||||||
#return if($dev->{NAME} eq $name);
|
#return if($dev->{NAME} eq $name);
|
||||||
|
|
||||||
@ -661,6 +648,19 @@ readingsGroup_Notify($$)
|
|||||||
|
|
||||||
next if (!$hash->{CONTENT}->{$dev->{NAME}});
|
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 @parts = split(/: /,$s);
|
||||||
my $reading = shift @parts;
|
my $reading = shift @parts;
|
||||||
my $value = join(": ", @parts);
|
my $value = join(": ", @parts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user