2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

76_SMAInverter.pm: contrib 2.12.0

git-svn-id: https://svn.fhem.de/fhem/trunk@20022 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-08-19 17:20:17 +00:00
parent 20e0462c76
commit 70a3321f67

View File

@ -552,8 +552,8 @@ sub SMAInverter_getstatusDoParse($) {
my $opertime_start = $oper_start->dmy('.')." ".$oper_start->hms; my $opertime_start = $oper_start->dmy('.')." ".$oper_start->hms;
my $opertime_stop = $oper_stop->dmy('.')." ".$oper_stop->hms; my $opertime_stop = $oper_stop->dmy('.')." ".$oper_stop->hms;
# ETOTAL Yesterday speichern für ETODAY-Berechnung wenn WR ETODAY nicht liefert # ETOTAL speichern für ETODAY-Berechnung wenn WR ETODAY nicht liefert
if ($dt_now >= $oper_stop && $dt_now <= $oper_start) { if ($dt_now >= $oper_stop) {
my $val; my $val;
$val = ReadingsVal($name, "etotal", 0) if (exists $defs{$name}{READINGS}{etotal}); $val = ReadingsVal($name, "etotal", 0) if (exists $defs{$name}{READINGS}{etotal});
$val = ReadingsVal($name, "SPOT_ETOTAL", 0) if (exists $defs{$name}{READINGS}{SPOT_ETOTAL}); $val = ReadingsVal($name, "SPOT_ETOTAL", 0) if (exists $defs{$name}{READINGS}{SPOT_ETOTAL});