mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
98_WeekdayTimer, 98_Heating_Control: a bug in the functions WeekdayTimer_SetAllParams () and Heating_Control_SetAllTemps () repaired. Now the devices are switched even if they are a heating.
git-svn-id: https://svn.fhem.de/fhem/trunk@7168 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3375fe22f6
commit
d771413c00
@ -559,14 +559,13 @@ sub Heating_Control_Device_Schalten($$$$) {
|
||||
return;
|
||||
}
|
||||
|
||||
my $setAllTempMode = defined ($hash->{setAllTempMode});
|
||||
if (defined $hash->{helper}{COMMAND} || ($nowSwitch gt "" && $aktParam ne $newParam )) {
|
||||
if (!$setModifier && $secondsSinceSwitch < -60) {
|
||||
if (!$setAllTempMode && !$setModifier && $secondsSinceSwitch < -60) {
|
||||
Log3 $hash, 5, $mod."no switch in the yesterdays because of the devices type($hash->{DEVICE} is not a heating).";
|
||||
} else {
|
||||
if ($command && !$disabled) {
|
||||
$newParam =~ s/:/ /g;
|
||||
#$command =~ s/@/$hash->{DEVICE}/g; # übernimmt EvalSpecials()
|
||||
#$command =~ s/%/$newParam/g; #
|
||||
|
||||
$command = SemicolonEscape($command);
|
||||
my %specials= (
|
||||
@ -650,7 +649,9 @@ sub Heating_Control_SetAllTemps() { # {Heating_Control_SetAllTemps()}
|
||||
}
|
||||
|
||||
my $myHash->{HASH}=$hash;
|
||||
$hash->{setAllTempMode} = 1;
|
||||
Heating_Control_Update($myHash);
|
||||
delete $hash->{setAllTempMode};
|
||||
Log3 undef, 3, "Heating_Control_Update() for $hash->{NAME} done!";
|
||||
}
|
||||
Log3 undef, 3, "Heating_Control_SetAllTemps() done!";
|
||||
|
@ -114,7 +114,9 @@ sub WeekdayTimer_SetAllParms() { # {WeekdayTimer_SetAllParms()}
|
||||
}
|
||||
}
|
||||
my $myHash->{HASH}=$hash;
|
||||
$hash->{setAllTempMode} = 1;
|
||||
WeekdayTimer_Update($myHash);
|
||||
delete $hash->{setAllTempMode};
|
||||
Log3 undef, 3, "WeekdayTimer_Update() for $hash->{NAME} done!";
|
||||
}
|
||||
Log3 undef, 3, "WeekdayTimer_SetAllParms() done!";
|
||||
|
Loading…
Reference in New Issue
Block a user