mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
76_SolarForecast: contrib 1.29.2
git-svn-id: https://svn.fhem.de/fhem/trunk@28988 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
637d77bff4
commit
ae637a8c82
@ -7275,12 +7275,15 @@ sub __deletePvCorffReadings {
|
||||
readingsDelete ($hash, ".signaldone_${n}");
|
||||
|
||||
if (ReadingsVal ($name, 'pvCorrectionFactor_Auto', 'off') =~ /on/xs) {
|
||||
my ($pcf, $tail) = split " / ", ReadingsVal ($name, "pvCorrectionFactor_${n}", '');
|
||||
my $pcf = ReadingsVal ($name, "pvCorrectionFactor_${n}", '');
|
||||
($pcf) = split " / ", $pcf if($pcf =~ /\s\/\s/xs);
|
||||
|
||||
if ($pcf !~ /manual/xs) { # manuell gesetzte pcf-Readings nicht löschen
|
||||
deleteReadingspec ($hash, "pvCorrectionFactor_${n}.*");
|
||||
}
|
||||
else {
|
||||
readingsSingleUpdate ($hash, "pvCorrectionFactor_${n}", $pcf, 0);
|
||||
deleteReadingspec ($hash, "pvCorrectionFactor_${n}_autocalc");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user