mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
76_SolarForecast.pm: contrib 0.32.0
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24201 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f1e38087fe
commit
7faeb0133a
@ -925,8 +925,9 @@ sub _setreset { ## no critic "not used"
|
|||||||
my $name = $paref->{name};
|
my $name = $paref->{name};
|
||||||
my $prop = $paref->{prop} // return qq{no source specified for reset};
|
my $prop = $paref->{prop} // return qq{no source specified for reset};
|
||||||
|
|
||||||
if($prop eq "pvHistory") {
|
|
||||||
my $type = $hash->{TYPE};
|
my $type = $hash->{TYPE};
|
||||||
|
|
||||||
|
if($prop eq "pvHistory") {
|
||||||
delete $data{$type}{$name}{pvhist};
|
delete $data{$type}{$name}{pvhist};
|
||||||
delete $hash->{HELPER}{INITETOTAL};
|
delete $hash->{HELPER}{INITETOTAL};
|
||||||
return;
|
return;
|
||||||
@ -954,6 +955,16 @@ sub _setreset { ## no critic "not used"
|
|||||||
readingsDelete($hash, "Current_GridFeedIn");
|
readingsDelete($hash, "Current_GridFeedIn");
|
||||||
delete $hash->{HELPER}{INITCONTOTAL};
|
delete $hash->{HELPER}{INITCONTOTAL};
|
||||||
delete $hash->{HELPER}{INITFEEDTOTAL};
|
delete $hash->{HELPER}{INITFEEDTOTAL};
|
||||||
|
delete $data{$type}{$name}{current}{gridconsumption};
|
||||||
|
delete $data{$type}{$name}{current}{gridfeedin};
|
||||||
|
delete $data{$type}{$name}{current}{consumption};
|
||||||
|
}
|
||||||
|
|
||||||
|
if($prop eq "currentBatteryDev") {
|
||||||
|
readingsDelete($hash, "Current_PowerBatIn");
|
||||||
|
readingsDelete($hash, "Current_PowerBatOut");
|
||||||
|
delete $data{$type}{$name}{current}{powerbatout};
|
||||||
|
delete $data{$type}{$name}{current}{powerbatin};
|
||||||
}
|
}
|
||||||
|
|
||||||
if($prop eq "currentInverterDev") {
|
if($prop eq "currentInverterDev") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user