2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

10_CUL_HM.pm: change RT battarty state detection

git-svn-id: https://svn.fhem.de/fhem/trunk@6625 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-09-28 11:02:51 +00:00
parent a629decbea
commit 4a78491495
2 changed files with 9 additions and 5 deletions

View File

@ -1332,12 +1332,14 @@ sub CUL_HM_Parse($$) {#########################################################
my $s2000 = sprintf("%02X", CUL_HM_secSince2000());
push @ack,$shash,"${mNo}803F$ioId${src}0204$s2000";
push @evtEt,[$shash,1,"time-request"];
# reset desired-temp just to get an AckInfo for battery state
CUL_HM_Set(CUL_HM_name2Hash($devH->{channel_04}),
$devH->{channel_04},
"desired-temp",ReadingsVal($devH->{channel_04}
,"desired-temp"
,""));
my $mode = ReadingsVal($devH->{channel_04},"controlMode",undef);
if ($mode){
my %mCmd = (auto=>0,manual=>1,party=>2,boost=>3,day=>4,night=>5);
my $msg = '8'.($mCmd{$mode})."04";
CUL_HM_PushCmdStack($shash,'++A011'.$ioId.$src.$msg);
}
}
}
elsif($md eq "HM-TC-IT-WM-W-EU") { ##########################################

View File

@ -1523,6 +1523,8 @@ $culHmModelSets{"HM-PB-4DIS-WM-2"} = $culHmModelSets{"HM-PB-4DIS-WM"};
,press =>"[long|short] [<peer>] [<repCount(long only)>] [<repDelay>] ..."
,inhibit =>"[on|off]"
,statusRequest =>""},
"HM-CC-RT-DN06" =>{ press =>"[long|short] [<peer>] [<repCount(long only)>] [<repDelay>] ..."
},
"CCU-FHEM00" =>{ update =>"",
hmPairForSec =>"<sec>",