10_ZWave.pm: fix autocreate NAME difference (Forum #68879)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13674 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-12 09:20:40 +00:00
parent 5d8fb7736e
commit 6d53dd429c

View File

@ -2162,7 +2162,8 @@ ZWave_mcCapability($$)
my $id = $hash->{nodeIdHex};
my @classes;
my $genericClass = shift(@l);
my $type6 = shift(@l);
$type6 = $zw_type6{$type6} if($type6 && $zw_type6{lc($type6)});
my $specificClass = shift(@l);
for my $classId (@l) {
push @classes, $zwave_id2class{lc($classId)} ?
@ -2175,7 +2176,7 @@ ZWave_mcCapability($$)
my $lcaps = substr($caps, 6);
$id = hex($id);
DoTrigger("global",
"UNDEFINED ZWave_${genericClass}_$id.$chid ZWave $homeId $lid $lcaps", 1);
"UNDEFINED ZWave_${type6}_$id.$chid ZWave $homeId $lid $lcaps", 1);
}
return "mcCapability_$chid:".join(" ", @classes);