mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
correct RT on/off handling
git-svn-id: https://svn.fhem.de/fhem/trunk@4161 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6e13275aa8
commit
a4d59a35e0
@ -800,6 +800,8 @@ sub CUL_HM_Parse($$) {##############################
|
||||
my $uk0 = ($ctrlMode ) & 0x3f ;#unknown
|
||||
$ctrlMode = ($ctrlMode >> 6) & 0x3 ;
|
||||
$actTemp = sprintf("%2.1f",$actTemp);
|
||||
$setTemp = ($setTemp < 5 )?'off':
|
||||
($setTemp >30 )?'on' :$setTemp;
|
||||
|
||||
my $dHash = $shash;
|
||||
$shash = $modules{CUL_HM}{defptr}{"$src$chn"}
|
||||
@ -2834,7 +2836,7 @@ sub CUL_HM_Set($@) {
|
||||
elsif($cmd eq "desired-temp") { #############################################
|
||||
if ($md =~ m/HM-CC-RT-DN/){
|
||||
my $temp = ($a[2] eq "off")?9:($a[2] eq "on"?61:$a[2]*2);
|
||||
return "invalid temp:$a[2]" if($temp <9 ||$temp > 60);
|
||||
return "invalid temp:$a[2]" if($temp <9 ||$temp > 61);
|
||||
$temp = sprintf ("%02X",$temp);
|
||||
CUL_HM_PushCmdStack($hash,'++'.$flag."11$id$dst"."8604$temp");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user