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:
justme-1968 2015-01-31 12:26:07 +00:00
parent 2d5ca960e6
commit 4cebea8f6e

View File

@ -271,11 +271,13 @@ LightScene_Notify($$)
$reading = "state"; $reading = "state";
$value = $s; $value = $s;
my $room = AttrVal($name, "room", ""); if( $hash->{mayBeVisible} ) {
my %extPage = (); my $room = AttrVal($name, "room", "");
(undef, undef, $value) = FW_devState($dev->{NAME}, $room, \%extPage); my %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 = ();