mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
10_ZWave.pm: fix "set ZWDongle addNode onSec"
git-svn-id: https://svn.fhem.de/fhem/trunk@11112 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
50373ba5eb
commit
cdfda2e6fd
@ -3733,12 +3733,13 @@ ZWave_Parse($$@)
|
|||||||
my $dh = $modules{ZWave}{defptr}{"$homeId $1"};
|
my $dh = $modules{ZWave}{defptr}{"$homeId $1"};
|
||||||
return "" if(!$dh);
|
return "" if(!$dh);
|
||||||
|
|
||||||
|
my $addSecure = $iodev->{addSecure}; # addNode off deletes it
|
||||||
AnalyzeCommand(undef, "set $ioName addNode off")
|
AnalyzeCommand(undef, "set $ioName addNode off")
|
||||||
if($cmd eq 'ZW_ADD_NODE_TO_NETWORK');
|
if($cmd eq 'ZW_ADD_NODE_TO_NETWORK');
|
||||||
|
|
||||||
ZWave_wakeupTimer($dh, 1) if(ZWave_isWakeUp($dh));
|
ZWave_wakeupTimer($dh, 1) if(ZWave_isWakeUp($dh));
|
||||||
|
|
||||||
if($iodev->{addSecure}) {
|
if($addSecure) {
|
||||||
return "" if (ZWave_secIncludeStart($dh, $iodev) == 1);
|
return "" if (ZWave_secIncludeStart($dh, $iodev) == 1);
|
||||||
}
|
}
|
||||||
return ZWave_execInits($dh, 0);
|
return ZWave_execInits($dh, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user