mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
36_LaCrosse: reactivated autocreateThreshold
git-svn-id: https://svn.fhem.de/fhem/trunk@9405 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
06922109a6
commit
82c55dfdb8
@ -29,8 +29,9 @@ sub LaCrosse_Initialize($) {
|
||||
." filterThreshold"
|
||||
." resolution"
|
||||
." $readingFnAttributes";
|
||||
|
||||
###$hash->{AutoCreate} = { "LaCrosse.*" => { autocreateThreshold => "2:120" } };
|
||||
|
||||
$hash->{AutoCreate} = { "LaCrosse.*" => { autocreateThreshold => "2:120", FILTER => "%NAME" }};
|
||||
|
||||
}
|
||||
|
||||
sub LaCrosse_Define($$) {
|
||||
@ -372,10 +373,10 @@ sub LaCrosse_Parse($$) {
|
||||
if($autoCreateState < 2 && $laCrosseInIgnoreTypes == 0) {
|
||||
$loglevel = 3;
|
||||
}
|
||||
|
||||
|
||||
Log3 $name, $loglevel, "LaCrosse: Unknown device $rname, please define it";
|
||||
Log3 $name, $loglevel, "LaCrosse: check commandref on usage of LaCrossePairForSec" if( !$hash->{LaCrossePair} && !defined($modules{LaCrosse}{defptr}) );
|
||||
|
||||
|
||||
return "" if( !$hash->{LaCrossePair} );
|
||||
|
||||
return "UNDEFINED LaCrosse_$rname LaCrosse $raddr" if( $battery_new || $hash->{LaCrossePair} == 2 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user