10_ZWave.pm: add returnRouteAdd devname translation (Forum #110561)

git-svn-id: https://svn.fhem.de/fhem/trunk@22135 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2020-06-08 08:45:38 +00:00
parent d4b8e85599
commit ec0bda4312

View File

@@ -1090,6 +1090,11 @@ ZWave_Cmd($$@)
return "$type $cmd needs $parTxt" if($nArg != int(@a));
}
if($cmd eq "returnRouteAdd") {
$a[0] = hex($defs{$a[0]}{nodeIdHex})
if($defs{$a[0]} && $defs{$a[0]}{nodeIdHex});
}
if($cmdFmt !~ m/%s/ && $cmd !~ m/^config/) {
for(my $i1 = 0; $i1<int(@a); $i1++) {
return "Error: $a[$i1] is not a decimal number"