From 2044754cfa55dc0fdaf70e501ca436d0680284e9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 1 Aug 2017 16:00:35 +0000 Subject: [PATCH] 10_ZWave.pm: better feedback for get messages on WakeUp devices (Forum #74944) git-svn-id: https://svn.fhem.de/fhem/trunk@14831 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index f68284fc7..b88f9935f 100755 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -2416,7 +2416,7 @@ ZWave_ccsAllGet ($) foreach my $idx (1..int($#zwave_wd)) { ZWave_Get($hash, $hash->{NAME}, "ccs", $zwave_wd[$idx]); } - return ("working in the background","EMPTY"); + return (ZWave_WibMsg($hash),"EMPTY"); } sub @@ -3086,6 +3086,15 @@ ZWave_configParse($$$$) return "config_$cmdId:$val"; } +sub +ZWave_WibMsg($) +{ + my ($hash) = @_; + return ZWave_isWakeUp($hash) ? + "Scheduled get requests for sending after WAKEUP" : + "working in the background"; +} + sub ZWave_configAllGet($) { @@ -3097,7 +3106,7 @@ ZWave_configAllGet($) foreach my $c (sort keys %{$mc->{get}}) { ZWave_Get($hash, $hash->{NAME}, $c); } - return ("working in the background","EMPTY"); + return (ZWave_WibMsg($hash),"EMPTY"); } sub @@ -3109,7 +3118,7 @@ ZWave_associationAllGet($$) $zwave_parseHook{"$hash->{nodeIdHex}:..85"} = \&ZWave_associationAllGet; delete($hash->{CL}); ZWave_Get($hash, $hash->{NAME}, "associationGroups"); - return("working in the background", "EMPTY"); + return(ZWave_WibMsg($hash), "EMPTY"); } my $nGrp = ($data =~ m/..8506(..)/ ? hex($1) : @@ -3131,7 +3140,7 @@ ZWave_mcaAllGet($$) $zwave_parseHook{"$hash->{nodeIdHex}:..8e"} = \&ZWave_mcaAllGet; delete($hash->{CL}); ZWave_Get($hash, $hash->{NAME}, "mcaGroupings"); - return("working in the background", "EMPTY"); + return(ZWave_WibMsg($hash), "EMPTY"); } my $nGrp = ($data =~ m/..8e06(..)/ ? hex($1) :