mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
59_HCS: Do not even start the check interval timer in case HCS is switched off.
git-svn-id: https://svn.fhem.de/fhem/trunk@15764 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8026dcf8fe
commit
863ef6bee1
@ -156,7 +156,6 @@ HCS_Notify($$) {
|
||||
delete $modules{HCS}{NotifyFn};
|
||||
delete $hash->{NTFY_ORDER} if($hash->{NTFY_ORDER});
|
||||
|
||||
|
||||
HCS_DoInit($hash);
|
||||
|
||||
return undef;
|
||||
@ -196,9 +195,11 @@ HCS_DoInit($) {
|
||||
HCS_setState($hash,$ret);
|
||||
|
||||
RemoveInternalTimer($hash);
|
||||
my $timer = gettimeofday()+($attr{$name}{interval}*60);
|
||||
InternalTimer($timer, "HCS_checkState", $hash, 0);
|
||||
$hash->{NEXTCHECK} = FmtTime($timer);
|
||||
if(ReadingsVal($name,"state","off") ne "off") {
|
||||
my $timer = gettimeofday()+($attr{$name}{interval}*60);
|
||||
InternalTimer($timer, "HCS_checkState", $hash, 0);
|
||||
$hash->{NEXTCHECK} = FmtTime($timer);
|
||||
}
|
||||
}
|
||||
|
||||
return undef;
|
||||
@ -368,7 +369,7 @@ HCS_setState($$) {
|
||||
my $state;
|
||||
my $stateDevice;
|
||||
|
||||
return if(ReadingsVal($name,"state","") eq "off");
|
||||
return if(ReadingsVal($name,"state","off") eq "off");
|
||||
|
||||
if($heatDemand == 0) {
|
||||
$state = "idle";
|
||||
|
Loading…
x
Reference in New Issue
Block a user