mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-11 08:34:18 +00:00
76_SMAInverter.pm:fix ETOTAL/LOADTOTAL bug
git-svn-id: https://svn.fhem.de/fhem/trunk@24697 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8b1c43f3bd
commit
bffb6b07be
@ -1356,13 +1356,13 @@ sub SMAInverter_SMAcommand($$$$$) {
|
||||
}
|
||||
else {
|
||||
Log3 $name, 3, "$name - WARNING - BATTERYLOAD_TOTAL wasn't deliverd ... set it to \"0\" !";
|
||||
$inv_SPOT_ETOTAL = "-";
|
||||
$inv_BAT_LOADTOTAL = "-";
|
||||
}
|
||||
|
||||
if (length($data) >= 82) {
|
||||
$inv_BAT_LOADTODAY = unpack("V*", substr ($data, 78, 4));
|
||||
}
|
||||
elsif($inv_SPOT_ETOTAL ne "-") {
|
||||
elsif($inv_BAT_LOADTOTAL ne "-") {
|
||||
# BATTERYLOAD_TODAY wurde vom WR nicht geliefert, es wird versucht ihn zu berechnen
|
||||
Log3 $name, 3, "$name - BATTERYLOAD_TODAY wasn't delivered from inverter, try to calculate it ...";
|
||||
my $bltotold = ReadingsNum($name, ".bat_loadtotal_yesterday", 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user