2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 04:36:02 +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 $paref = shift;
my $hash = $paref->{hash}; my $hash = $paref->{hash};
my $name = $paref->{name}; my $name = $paref->{name};
my $type = $paref->{type};
my $opt = $paref->{opt}; my $opt = $paref->{opt};
my $arg = $paref->{arg}; my $arg = $paref->{arg};
@ -1411,6 +1412,13 @@ sub _setmeterDevice { ## no critic "not used"
return qq{Incorrect input. It is not allowed that the keys gcon and gfeedin refer to each other.}; 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); readingsSingleUpdate ($hash, "currentMeterDev", $arg, 1);
createAssociatedWith ($hash); createAssociatedWith ($hash);
writeCacheToFile ($hash, "plantconfig", $plantcfg.$name); # Anlagenkonfiguration File schreiben writeCacheToFile ($hash, "plantconfig", $plantcfg.$name); # Anlagenkonfiguration File schreiben