2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +00:00

10_CUL_HM:templist set to incomplete removed if register is being set.

git-svn-id: https://svn.fhem.de/fhem/trunk@15585 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2017-12-10 15:25:29 +00:00
parent 76fc4c3898
commit 9b0be9df5c

View File

@ -4673,6 +4673,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
} }
else{ else{
$lvl =~ s/(\d*\.?\d*).*/$1/; $lvl =~ s/(\d*\.?\d*).*/$1/;
return "level not given" if($lvl == "");
if ($cmd eq "pct"){ if ($cmd eq "pct"){
} }
else{#dim [<changeValue>] ... [ontime] [ramptime] else{#dim [<changeValue>] ... [ontime] [ramptime]
@ -6501,7 +6502,7 @@ sub CUL_HM_pushConfig($$$$$$$$@) {#generate messages to config data to register
$change =~ s/00:00//; $change =~ s/00:00//;
$change =~ s/(\ |:)//g; $change =~ s/(\ |:)//g;
if ($nrRd){ if ($nrRd){
$chnhash->{READINGS}{$regPre.$nrn}{VAL} =~ s/00:00// #mark incomplete as wego for a change; $chnhash->{READINGS}{$regPre.$nrn}{VAL} =~ s/00:00//; #mark incomplete as we go for a change;
} }
my $pN; my $pN;
$changed = 1;# yes, we did $changed = 1;# yes, we did
@ -8269,9 +8270,9 @@ sub CUL_HM_TCITRTtempReadings($$@) {# parse RT - TC-IT temperature readings
foreach (grep !/_/,grep /tempList$ln/,keys %{$hash->{READINGS}}); foreach (grep !/_/,grep /tempList$ln/,keys %{$hash->{READINGS}});
my $tempRegs = ReadingsVal($name,$regPre."RegL_0$lst.",""); my $tempRegs = ReadingsVal($name,$regPre."RegL_0$lst.","");
if ($tempRegs !~ m/00:00/){ if ($tempRegs !~ m/00:00/){
for (my $day = 0;$day<7;$day++){ # for (my $day = 0;$day<7;$day++){#leave days allone - state is incomplete should be enough
push (@changedRead,"R_$idxN{$lst}${day}_tempList".$days[$day].":incomplete"); # push (@changedRead,"R_$idxN{$lst}${day}_tempList".$days[$day].":incomplete");
} # }
push (@changedRead,"R_$idxN{$lst}tempList_State:incomplete"); push (@changedRead,"R_$idxN{$lst}tempList_State:incomplete");
CUL_HM_UpdtReadBulk($hash,1,@changedRead) if (@changedRead); CUL_HM_UpdtReadBulk($hash,1,@changedRead) if (@changedRead);
next; next;