From 7dadbcfbe9f908154c15b10930bd56f78789143b Mon Sep 17 00:00:00 2001 From: Icinger <> Date: Sun, 9 Sep 2018 18:20:28 +0000 Subject: [PATCH] 45_Plugwise: Added $readingFnAttributes git-svn-id: https://svn.fhem.de/fhem/trunk@17312 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/45_Plugwise.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/45_Plugwise.pm b/fhem/FHEM/45_Plugwise.pm index 99a5099bc..acf536dae 100755 --- a/fhem/FHEM/45_Plugwise.pm +++ b/fhem/FHEM/45_Plugwise.pm @@ -107,7 +107,8 @@ require "$attr{global}{modpath}/FHEM/DevIo.pm"; $hash->{SetFn} = "PW_Set"; $hash->{GetFn} = "PW_Get"; $hash->{StateFn} = "PW_SetState"; - $hash->{AttrList}= "do_not_notify:1,0 interval circlecount WattFormat showCom autosync"; + $hash->{AttrList}= "do_not_notify:1,0 interval circlecount WattFormat showCom autosync". + $readingFnAttributes;; $hash->{ShutdownFn} = "PW_Shutdown"; } @@ -171,7 +172,7 @@ sub PW_GetUpdate($) delete $hash->{helper}->{circles}->{$n}; } elsif (time > $hash->{helper}->{circles}->{$n}->{lastContact} +900) { command($hash,'history',$hash->{helper}->{circles}->{$n}->{name},4); - Log 3,"GetLog offline Circle $n"; + Log3 $hash,4,"GetLog offline Circle $n"; } } } @@ -215,7 +216,7 @@ sub PW_Write command($hash,'history',$reciever,$a) if($a ne -1); } else - { Log3 $hash,3,$msg; + { Log3 $hash,4,$msg; } return undef; }