2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

31_LightScene.pm: enable followDevices for readings != state. see: https://forum.fhem.de/index.php/topic,33223.msg895357.html#msg895357

git-svn-id: https://svn.fhem.de/fhem/trunk@18448 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-01-29 16:00:54 +00:00
parent e74a2483b2
commit f9cf6d8776

View File

@ -269,10 +269,17 @@ LightScene_Notify($$)
my $reading = shift @parts;
my $value = join(": ", @parts);
next if( $value ne "" );
#see: https://forum.fhem.de/index.php/topic,33223.msg895357.html#msg895357
#next if( $value ne "" );
#$reading = "state";
#$value = $s;
$reading = "state";
$value = $s;
$reading = "" if( !defined($reading) );
$value = "" if( !defined($value) );
if( $value eq "" ) {
$reading = "state";
$value = $s;
}
if( $hash->{mayBeVisible} || $hash->{followDevices} ) {
my $room = AttrVal($name, "room", "");