10_ZWave.pm: do not activate commands for controlled classes (Forum #72418)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14387 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-05-27 12:29:27 +00:00
parent 6f61680901
commit 4ee38ae949

View File

@ -914,6 +914,7 @@ ZWave_Cmd($$@)
my %cmdList;
my $classes = AttrVal($name, "classes", "");
foreach my $cl (split(" ", $classes)) {
last if($cl eq "MARK");
my $ptr = ZWave_getHash($hash, $cl, $type);
next if(!$ptr);
@ -2285,7 +2286,7 @@ ZWave_mfsAddClasses($$)
$id = sprintf("%02x", $id);
my $cn = $zwave_id2class{$id};
next if($attr =~ m/$cn/);
$attr .= " $cn";
$attr = "$cn ".$attr;
$changed = 1;
}
}