mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
improve valveCtrl
git-svn-id: https://svn.fhem.de/fhem/trunk@4823 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1a528a4b34
commit
98720cb6a1
@ -3605,7 +3605,8 @@ sub CUL_HM_valvePosUpdt(@) {#update valve position periodically to please valve
|
||||
$hash->{helper}{vd}{nextM} = $tn+$nextTimer;
|
||||
$hash->{helper}{vd}{msgCnt} = $msgCnt;
|
||||
if ($hash->{helper}{vd}{cmd}){
|
||||
if ($hash->{helper}{vd}{typ} == 1){
|
||||
if ( $hash->{helper}{vd}{typ} == 1
|
||||
&& ReadingsVal($name,"valveCtrl","init") ne "init"){
|
||||
CUL_HM_PushCmdStack($hash,sprintf("%02X%s%s%s"
|
||||
,$msgCnt
|
||||
,$hash->{helper}{vd}{cmd}
|
||||
@ -3634,6 +3635,11 @@ sub CUL_HM_valvePosTmr(@) {#calc next vd wakeup
|
||||
my $hash = CUL_HM_id2Hash($vId);
|
||||
my $name = $hash->{NAME};
|
||||
if ($hash->{helper}{vd}{typ} == 1){
|
||||
if (ReadingsVal($name,"valveCtrl","init") eq "init") {
|
||||
$hash->{helper}{vd}{next} = $hash->{helper}{vd}{nextF};
|
||||
CUL_HM_UpdtReadSingle($hash,"valveCtrl","ready",1);
|
||||
}
|
||||
else {
|
||||
my $pn = CUL_HM_id2Name($hash->{helper}{vd}{id});
|
||||
my $ackTime = ReadingsTimestamp($pn, "ValvePosition", "");
|
||||
my $vc;
|
||||
@ -3655,6 +3661,7 @@ sub CUL_HM_valvePosTmr(@) {#calc next vd wakeup
|
||||
if(ReadingsVal($name,"valveCtrl","") ne $vc);
|
||||
$hash->{helper}{vd}{ackT} = $ackTime;
|
||||
}
|
||||
}
|
||||
InternalTimer($hash->{helper}{vd}{next},"CUL_HM_valvePosUpdt","valvePos:$vId",0);
|
||||
}
|
||||
sub CUL_HM_weather(@) {#periodically send weather data
|
||||
|
@ -434,6 +434,7 @@ my $K_actDetID = '000000'; # id of actionDetector
|
||||
# Blind 9:00 10:00 20:00
|
||||
# BL1TPBU 02:01 21:FF
|
||||
# Dim1TPBU 02:01 21:FF 22:00
|
||||
# TC-IT 16:00
|
||||
#Keymatic 3.3 unknown, seen 1 here
|
||||
|
||||
#--- list 1, Channel level------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user