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

76_SMAPortal: contrib 3.1.0

git-svn-id: https://svn.fhem.de/fhem/trunk@22215 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-06-20 17:54:40 +00:00
parent 78153fde89
commit 24d99189cd

View File

@ -1053,6 +1053,7 @@ sub _checkLogin {
} else {
Log3 ($name, 2, "$name - ERROR - Login into SMA-Portal failed !");
$state = "login failed - check user and password";
BlockingInformParent("FHEM::SMAPortal::setFromBlocking", [$name, "loginState:failed", "NULL" ], 1);
$errstate = 1;
}
}
@ -1070,6 +1071,7 @@ sub _checkLogin {
} else {
$errstate = 1;
$state = $loginp->status_line;
BlockingInformParent("FHEM::SMAPortal::setFromBlocking", [$name, "loginState:failed", "NULL" ], 1);
Log3 ($name, 1, "$name - ERROR Login Page: ".$state);
}
@ -1815,8 +1817,6 @@ sub ParseData { ## no critic
readingsBulkUpdate($hash, "lastCycleTime", $ctime ) if($ctime > 0);
readingsBulkUpdate($hash, "summary" , $sum." W") if($subs{$name}{liveData}{doit});
} else {
readingsBulkUpdate($hash, "loginState", "failed");
}
readingsBulkUpdate($hash, "state", $state);