correct desired temp update in centrl mode

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3949 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2013-09-23 13:14:55 +00:00
parent 16800ff3c2
commit e7cb17ecea

View File

@@ -637,8 +637,13 @@ sub CUL_HM_Parse($$) {##############################
if($chnHash){
push @entities,CUL_HM_UpdtReadSingle($chnHash,"state","$vp %",1);
if ($chnHash->{helper}{needUpdate}){
CUL_HM_stateUpdat(":".$chnHash->{NAME});
delete $chnHash->{helper}{needUpdate};
if ($chnHash->{helper}{needUpdate} == 1){
$chnHash->{helper}{needUpdate}++;
}
else{
CUL_HM_stateUpdat(":".$chnHash->{NAME});
delete $chnHash->{helper}{needUpdate};
}
}
}
push @event, "actuator:$vp %";