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

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

View File

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