10_ZWave.pm: set wakeUpNoMoreInformation if the stack is empty (Forum #37418)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8745 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1751,8 +1751,9 @@ ZWave_Parse($$@)
|
|||||||
push @event, "UNPARSED:$className $arg" if(!$matched);
|
push @event, "UNPARSED:$className $arg" if(!$matched);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($arg =~ m/^028407/) {
|
||||||
my $wu = $baseHash->{WakeUp};
|
my $wu = $baseHash->{WakeUp};
|
||||||
if($arg =~ m/^028407/ && $wu && @{$wu}) {
|
if($wu && @{$wu}) {
|
||||||
foreach my $wuCmd (@{$wu}) {
|
foreach my $wuCmd (@{$wu}) {
|
||||||
IOWrite($hash, "00", ZWave_clockAdjust($wuCmd));
|
IOWrite($hash, "00", ZWave_clockAdjust($wuCmd));
|
||||||
Log3 $hash, 4, "Sending stored command: $wuCmd";
|
Log3 $hash, 4, "Sending stored command: $wuCmd";
|
||||||
@@ -1762,6 +1763,12 @@ ZWave_Parse($$@)
|
|||||||
my $nodeId = $baseHash->{id};
|
my $nodeId = $baseHash->{id};
|
||||||
Log3 $hash, 4, "Sending wakeupNoMoreInformation to node: $nodeId";
|
Log3 $hash, 4, "Sending wakeupNoMoreInformation to node: $nodeId";
|
||||||
IOWrite($hash, "00", "13${nodeId}02840805");
|
IOWrite($hash, "00", "13${nodeId}02840805");
|
||||||
|
} else {
|
||||||
|
InternalTimer(gettimeofday()+0.1, sub($) {
|
||||||
|
my $nodeId = $hash->{id};
|
||||||
|
IOWrite($hash, "00", "13${nodeId}02840805");
|
||||||
|
}, $hash, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$baseHash->{lastMsgTimestamp} = time();
|
$baseHash->{lastMsgTimestamp} = time();
|
||||||
|
|
||||||
@@ -1781,6 +1788,7 @@ ZWave_Parse($$@)
|
|||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
sub
|
sub
|
||||||
ZWave_Undef($$)
|
ZWave_Undef($$)
|
||||||
|
|||||||
Reference in New Issue
Block a user