2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

10_ZWave.pm: remove sucNodeAdd/Del if not appropriate (Forum #53066)

git-svn-id: https://svn.fhem.de/fhem/trunk@11577 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-05-31 15:41:49 +00:00
parent 2428d51312
commit 45aea98f1d

View File

@ -768,10 +768,13 @@ ZWave_Cmd($$@)
if($type eq "set") {
$cmdList{neighborUpdate}{fmt} = "48$id";
$cmdList{neighborUpdate}{id} = "";
$cmdList{sucRouteAdd}{fmt} = "51$id";
$cmdList{sucRouteAdd}{id} = "";
$cmdList{sucRouteDel}{fmt} = "55$id";
$cmdList{sucRouteDel}{id} = "";
my $iohash = $hash->{IODev};
if($iohash && ReadingsVal($iohash->{NAME}, "sucNodeId","no") ne "no") {
$cmdList{sucRouteAdd}{fmt} = "51$id";
$cmdList{sucRouteAdd}{id} = "";
$cmdList{sucRouteDel}{fmt} = "55$id";
$cmdList{sucRouteDel}{id} = "";
}
}
$cmdList{neighborList}{fmt} = "x" if($type eq "get"); # Add meta command
}