31_LightScene.pm: follow devices fix

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14226 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2017-05-09 12:49:58 +00:00
parent d7f478f1a9
commit 88dfc2954c

View File

@ -274,12 +274,12 @@ LightScene_Notify($$)
$reading = "state";
$value = $s;
if( $hash->{mayBeVisible} ) {
if( $hash->{mayBeVisible} || $hash->{followDevices} ) {
my $room = AttrVal($name, "room", "");
my %extPage = ();
(undef, undef, $value) = FW_devState($dev->{NAME}, $room, \%extPage);
DoTrigger( $name, "$dev->{NAME}.$reading: <html>$value</html>" ) if( $hash->{mayBeVisible} );
DoTrigger( $name, "$dev->{NAME}.$reading: <html>$value</html>" );
}
if( $hash->{followDevices} ) {