mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
CUL_HM:debug some Action Detector startup problems
git-svn-id: https://svn.fhem.de/fhem/trunk@22637 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
48227c3fc4
commit
063ad19763
@ -738,6 +738,7 @@ sub CUL_HM_Attr(@) {#################################
|
|||||||
return "$attrName must be higher then 30, $attrVal not allowed"
|
return "$attrName must be higher then 30, $attrVal not allowed"
|
||||||
if ($attrVal < 10);
|
if ($attrVal < 10);
|
||||||
#update and sync to new timing
|
#update and sync to new timing
|
||||||
|
|
||||||
RemoveInternalTimer("ActionDetector");
|
RemoveInternalTimer("ActionDetector");
|
||||||
InternalTimer(gettimeofday()+5,"CUL_HM_ActCheck", "ActionDetector", 0);
|
InternalTimer(gettimeofday()+5,"CUL_HM_ActCheck", "ActionDetector", 0);
|
||||||
}
|
}
|
||||||
@ -748,9 +749,9 @@ sub CUL_HM_Attr(@) {#################################
|
|||||||
my($h,$m) = split(":",$attrVal);
|
my($h,$m) = split(":",$attrVal);
|
||||||
$h = int($h);
|
$h = int($h);
|
||||||
$m = int($m);
|
$m = int($m);
|
||||||
return "format hhh:mm required. $attrVal incorrect" if( $h >= 999 && $h <= 0
|
return "format hhh:mm required. $attrVal incorrect" if( $h >= 999 || $h <= 0
|
||||||
&& $m >= 59 && $m <= 0
|
|| $m >= 59 || $m <= 0
|
||||||
&& $h + $m > 0);
|
|| $h + $m <= 0);
|
||||||
my $attrValNew = sprintf("%03d:%02d",$h,$m);
|
my $attrValNew = sprintf("%03d:%02d",$h,$m);
|
||||||
CUL_HM_ActAdd(CUL_HM_name2Id($name),$attrValNew);
|
CUL_HM_ActAdd(CUL_HM_name2Id($name),$attrValNew);
|
||||||
$attr{$name}{$attrName} = $attrValNew;
|
$attr{$name}{$attrName} = $attrValNew;
|
||||||
@ -9456,9 +9457,6 @@ sub CUL_HM_ActAdd($$) {# add an HMid to list for activity supervision
|
|||||||
($actHash->{helper}{peers}?$actHash->{helper}{peers}:"")
|
($actHash->{helper}{peers}?$actHash->{helper}{peers}:"")
|
||||||
.",$devId");
|
.",$devId");
|
||||||
Log3 $actHash, 3,"Device ".$devName." added to ActionDetector with $cycleString time";
|
Log3 $actHash, 3,"Device ".$devName." added to ActionDetector with $cycleString time";
|
||||||
#run ActionDetector
|
|
||||||
RemoveInternalTimer("ActionDetector");
|
|
||||||
# CUL_HM_ActCheck("add") if ($init_done);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sub CUL_HM_ActDel($) {# delete HMid for activity supervision
|
sub CUL_HM_ActDel($) {# delete HMid for activity supervision
|
||||||
|
Loading…
x
Reference in New Issue
Block a user