From 8f4692fd6c5f9f6abdb24df8d76e7e6178d025b9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 7 Nov 2015 20:10:28 +0000 Subject: [PATCH] 10_ZWave.pm: WNMI_delay Attribute (Forum #43457) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9813 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_ZWave.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/FHEM/10_ZWave.pm b/FHEM/10_ZWave.pm index dfdb04297..6fed302b8 100755 --- a/FHEM/10_ZWave.pm +++ b/FHEM/10_ZWave.pm @@ -460,7 +460,7 @@ ZWave_Initialize($) $hash->{ParseFn} = "ZWave_Parse"; $hash->{AttrList} = "IODev do_not_notify:1,0 noExplorerFrames:1,0 ". "ignore:1,0 dummy:1,0 showtime:1,0 classes vclasses ". - "secure_classes $readingFnAttributes"; + "secure_classes WNMI_delay $readingFnAttributes"; map { $zwave_id2class{lc($zwave_class{$_}{id})} = $_ } keys %zwave_class; $hash->{FW_detailFn} = "ZWave_fhemwebFn"; @@ -2519,13 +2519,14 @@ ZWave_wakeupTimer($$) { my ($hash, $direct) = @_; my $now = gettimeofday(); + my $wnmi_delay = AttrVal($hash->{NAME}, "WNMI_delay", 2); if(!$hash->{wakeupAlive}) { $hash->{wakeupAlive} = 1; $hash->{lastMsgSent} = $now; InternalTimer($now+0.1, "ZWave_wakeupTimer", $hash, 0); - } elsif(!$direct && $now - $hash->{lastMsgSent} > 2) { + } elsif(!$direct && $now - $hash->{lastMsgSent} > $wnmi_delay) { if(!$hash->{SendStack}) { my $nodeId = $hash->{nodeIdHex}; my $cmdEf = (AttrVal($hash->{NAME},"noExplorerFrames",0)==0 ? "25":"05"); @@ -3638,6 +3639,13 @@ s2Hex($) Attributes