2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 16:19:11 +00:00

76_Solarforcast: contrib 0.79.3

git-svn-id: https://svn.fhem.de/fhem/trunk@27609 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-05-22 11:03:35 +00:00
parent 64609f37bb
commit 90f7a4a961

View File

@ -1389,6 +1389,7 @@ sub _setmeterDevice { ## no critic "not used"
my $paref = shift;
my $hash = $paref->{hash};
my $name = $paref->{name};
my $type = $paref->{type};
my $opt = $paref->{opt};
my $arg = $paref->{arg};
@ -1410,6 +1411,13 @@ sub _setmeterDevice { ## no critic "not used"
if($h->{gcon} eq "-gfeedin" && $h->{gfeedin} eq "-gcon") {
return qq{Incorrect input. It is not allowed that the keys gcon and gfeedin refer to each other.};
}
## alte Speicherwerte löschen
###############################
delete $data{$type}{$name}{circular}{99}{feedintotal};
delete $data{$type}{$name}{circular}{99}{initdayfeedin};
delete $data{$type}{$name}{circular}{99}{gridcontotal};
delete $data{$type}{$name}{circular}{99}{initdaygcon};
readingsSingleUpdate ($hash, "currentMeterDev", $arg, 1);
createAssociatedWith ($hash);