mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 17:12:32 +00:00
76_SolarForecast: contrib 1.34.2
git-svn-id: https://svn.fhem.de/fhem/trunk@29210 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e784c896c9
commit
30908d62a6
@ -10302,7 +10302,10 @@ sub __switchConsumer {
|
|||||||
Log3 ($name, 1, qq{$name DEBUG> ############### consumerSwitching consumer "$c" ###############});
|
Log3 ($name, 1, qq{$name DEBUG> ############### consumerSwitching consumer "$c" ###############});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$paref->{scss} = 1;
|
||||||
$state = ___setConsumerSwitchingState ($paref); # Consumer Schaltzustände ermitteln & setzen
|
$state = ___setConsumerSwitchingState ($paref); # Consumer Schaltzustände ermitteln & setzen
|
||||||
|
delete $paref->{scss};
|
||||||
|
|
||||||
$state = ___switchConsumerOn ($paref); # Verbraucher Einschaltbedingung prüfen + auslösen
|
$state = ___switchConsumerOn ($paref); # Verbraucher Einschaltbedingung prüfen + auslösen
|
||||||
$state = ___switchConsumerOff ($paref); # Verbraucher Ausschaltbedingung prüfen + auslösen
|
$state = ___switchConsumerOff ($paref); # Verbraucher Ausschaltbedingung prüfen + auslösen
|
||||||
$state = ___setConsumerSwitchingState ($paref); # Consumer Schaltzustände nach Switching ermitteln & setzen
|
$state = ___setConsumerSwitchingState ($paref); # Consumer Schaltzustände nach Switching ermitteln & setzen
|
||||||
@ -10528,6 +10531,7 @@ sub ___setConsumerSwitchingState {
|
|||||||
my $c = $paref->{consumer};
|
my $c = $paref->{consumer};
|
||||||
my $t = $paref->{t};
|
my $t = $paref->{t};
|
||||||
my $state = $paref->{state};
|
my $state = $paref->{state};
|
||||||
|
my $fscss = $paref->{scss}; # erster Subaufruf: 1
|
||||||
|
|
||||||
my $hash = $defs{$name};
|
my $hash = $defs{$name};
|
||||||
my $simpCstat = simplifyCstate (ConsumerVal ($hash, $c, 'planstate', ''));
|
my $simpCstat = simplifyCstate (ConsumerVal ($hash, $c, 'planstate', ''));
|
||||||
@ -10622,7 +10626,7 @@ sub ___setConsumerSwitchingState {
|
|||||||
$dowri = 1;
|
$dowri = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dowri) {
|
if (!$fscss && $dowri) {
|
||||||
writeCacheToFile ($hash, "consumers", $csmcache.$name); # Cache File Consumer schreiben
|
writeCacheToFile ($hash, "consumers", $csmcache.$name); # Cache File Consumer schreiben
|
||||||
Log3 ($name, 2, "$name - $state");
|
Log3 ($name, 2, "$name - $state");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user