2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

76_SMAPortal: contrib 1.5.4

git-svn-id: https://svn.fhem.de/fhem/trunk@19135 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-04-07 06:45:06 +00:00
parent af2a0c0f76
commit 20a791ab76

View File

@ -142,6 +142,7 @@ BEGIN {
# Versions History intern # Versions History intern
our %vNotesIntern = ( our %vNotesIntern = (
"1.5.4" => "26.03.2019 delete L1_InfoMessages if no info occur ",
"1.5.3" => "26.03.2019 delete L1_ErrorMessages, L1_WarningMessages if no errors or warnings occur ", "1.5.3" => "26.03.2019 delete L1_ErrorMessages, L1_WarningMessages if no errors or warnings occur ",
"1.5.2" => "25.03.2019 prevent module from deactivation in case of unavailable Meta.pm ", "1.5.2" => "25.03.2019 prevent module from deactivation in case of unavailable Meta.pm ",
"1.5.1" => "24.03.2019 fix \$VAR1 problem Forum: #27667.msg922983.html#msg922983 ", "1.5.1" => "24.03.2019 fix \$VAR1 problem Forum: #27667.msg922983.html#msg922983 ",
@ -643,7 +644,7 @@ sub ParseData($) {
readingsBeginUpdate($hash); readingsBeginUpdate($hash);
my ($FeedIn_done,$GridConsumption_done,$PV_done,$AutarkyQuote_done,$SelfConsumption_done) = (0,0,0,0,0); my ($FeedIn_done,$GridConsumption_done,$PV_done,$AutarkyQuote_done,$SelfConsumption_done) = (0,0,0,0,0);
my ($SelfConsumptionQuote_done,$SelfSupply_done,$errMsg,$warnMsg) = (0,0,0,0); my ($SelfConsumptionQuote_done,$SelfSupply_done,$errMsg,$warnMsg,$infoMsg) = (0,0,0,0,0);
for my $k (keys %$livedata_content) { for my $k (keys %$livedata_content) {
my $new_val = ""; my $new_val = "";
if (defined $livedata_content->{$k}) { if (defined $livedata_content->{$k}) {
@ -677,6 +678,7 @@ sub ParseData($) {
$SelfSupply_done = 1 if($k =~ /^SelfSupply$/); $SelfSupply_done = 1 if($k =~ /^SelfSupply$/);
$errMsg = 1 if($k =~ /^ErrorMessages$/); $errMsg = 1 if($k =~ /^ErrorMessages$/);
$warnMsg = 1 if($k =~ /^WarningMessages$/); $warnMsg = 1 if($k =~ /^WarningMessages$/);
$infoMsg = 1 if($k =~ /^InfoMessages$/);
} }
} }
} }
@ -692,6 +694,7 @@ sub ParseData($) {
readingsDelete($hash,"L1_ErrorMessages") if(!$errMsg); readingsDelete($hash,"L1_ErrorMessages") if(!$errMsg);
readingsDelete($hash,"L1_WarningMessages") if(!$warnMsg); readingsDelete($hash,"L1_WarningMessages") if(!$warnMsg);
readingsDelete($hash,"L1_InfoMessages") if(!$infoMsg);
if ($forecast_content && $forecast_content !~ m/undefined/i) { if ($forecast_content && $forecast_content !~ m/undefined/i) {
# Auswertung der Forecast Daten # Auswertung der Forecast Daten