mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
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:
parent
5d8fb7736e
commit
6d53dd429c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user