mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
31_LightScene.pm: don't call FW_devState if LightScene ist not visible. see forumm: http://forum.fhem.de/index.php/topic,33082.msg254527.html#msg254527
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7792 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2d5ca960e6
commit
4cebea8f6e
@ -271,11 +271,13 @@ LightScene_Notify($$)
|
|||||||
$reading = "state";
|
$reading = "state";
|
||||||
$value = $s;
|
$value = $s;
|
||||||
|
|
||||||
|
if( $hash->{mayBeVisible} ) {
|
||||||
my $room = AttrVal($name, "room", "");
|
my $room = AttrVal($name, "room", "");
|
||||||
my %extPage = ();
|
my %extPage = ();
|
||||||
(undef, undef, $value) = FW_devState($dev->{NAME}, $room, \%extPage);
|
(undef, undef, $value) = FW_devState($dev->{NAME}, $room, \%extPage);
|
||||||
|
|
||||||
DoTrigger( $name, "$dev->{NAME}.$reading: $value" ) if( $hash->{mayBeVisible} );
|
DoTrigger( $name, "$dev->{NAME}.$reading: $value" ) if( $hash->{mayBeVisible} );
|
||||||
|
}
|
||||||
|
|
||||||
if( $hash->{followDevices} ) {
|
if( $hash->{followDevices} ) {
|
||||||
my %s = ();
|
my %s = ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user