2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 14:16:42 +00:00

45_Plugwise: Added $readingFnAttributes

git-svn-id: https://svn.fhem.de/fhem/trunk@17312 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Icinger 2018-09-09 18:20:28 +00:00
parent 1fc8aee772
commit 7dadbcfbe9

View File

@ -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;
}