FHEM Forum

FHEM - Energiemanagement und Energieerzeugung => Solaranlagen => Thema gestartet von: coolice am 21 September 2020, 16:40:10

Titel: SMAPortal Login failed
Beitrag von: coolice am 21 September 2020, 16:40:10
Hallo zusammen, nachdem meine PV Anlage nun läuft und ich diese online im Sunnyportal abrufen kann, wollte ich das ganze in FHEM einbinden.

Nach dem define habe ich die credentials bestehend meiner E-Mail Adresse und dem Kennwort gesetzt.
Danach gleich attr noHomeManager aktiviert und ... nichts. Das Device zeigt immer Login failed an.
Hab die Zugangsdaten mehrfach kontrolliert. Die stimmen. Hat einer eine Idee was falsch läuft ?

List CREDENTIALS Set
   FUUID      5f68b7f4-f33f-6642-d692-f056edfe660f1349
   FVERSION   76_SMAPortal.pm:v3.4.1-s22640/2020-08-21
   MODE       Automatic - next polltime: 16:41:52
   NAME       SMAPortal
   NR         40618
   STATE      login failed
   TYPE       SMAPortal
   HELPER:
     ACTCYCLE   1
     CYCLEBTIME 1600699012
     GETTER     all
     PACKAGE    FHEM::SMAPortal
     RETRIES    1
     SETTER     none
     VERSION    3.4.1
   READINGS:
     2020-09-21 16:36:52   dailyCallCounter 21:2
     2020-09-21 16:36:54   loginState      failed
     2020-09-21 16:36:54   state           login failed
Attributes:
   noHomeManager 1
   room       PV Anlage
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 21 September 2020, 17:32:32
Das sind leider zu wenig Infos.
Bitte verbose 5 und verbose5Data = loginData setzen.
Den Output bitte posten.

Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 22 September 2020, 10:10:46
Hallo. Anbei das Log.
2020.09.21 17:53:15 5: SMAPortal - Status Redirect Page : 200
2020.09.21 17:53:15 5: SMAPortal - Header Redirect Location:
2020.09.21 17:53:15 5: SMAPortal - Header Set-Cookie:
2020.09.21 17:53:15 2: SMAPortal - ERROR - Login into SMA-Portal failed !
2020.09.21 17:53:15 4: SMAPortal - Refresh - caller: "n.a.", callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1
2020.09.21 17:58:13 3: SMAPortal - ################################################################
2020.09.21 17:58:13 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.09.21 17:58:13 3: SMAPortal - ################################################################
2020.09.21 17:58:13 5: SMAPortal - SMAPortal version:          3.4.1
2020.09.21 17:58:13 4: SMAPortal - calculated maximum cycles:  10
2020.09.21 17:58:13 4: SMAPortal - calculated timeout:         3600
2020.09.21 17:58:13 3: SMAPortal - ignore provider "consumerCurrentdata" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - ignore provider "plantMasterData" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - ignore provider "consumerDayData" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - ignore provider "forecastData" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - ignore provider "consumerYearData" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - ignore provider "consumerMasterdata" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - ignore provider "consumerMonthData" - SMA Home Manager is not installed
2020.09.21 17:58:13 3: SMAPortal - Running data cycle: 1 of 10
2020.09.21 17:58:13 5: SMAPortal - Start operation with CookieLocation: ./log/SMAPortal_cookie.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.09.21 17:58:13 5: SMAPortal - data get: all, data set: none
2020.09.21 17:58:13 4: SMAPortal - Credentials read from RAM: <EMAILADRESSE> ********
POST https://www.sunnyportal.com/Templates/Start.aspx
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Cookie: collapseNavi_state=shown; SunnyPortalLoginInfo=Username=mirco@koepe.org&Code=4950259467544576535455156754553551554515565445356954157557512; SunnyPortalPageCounter=0; plantOid=76140038-4736-4d8d-bdeb-85006b2c8bbf; BIGipServerPool_P_SunnyPortal=3053758656.20480.0000; .SunnyPortalFormsLogin=8843462A1DB70FDFDD75074126D06EFF11C285ED79FDE6C7EA90527A7CD460FFFAE7301383D8FD3ED4EAF6ECB8B429A9FE156D7EA4802BCA67C0FA0323690CFB001A1B764EAC0974B946E5B9C9A8F61BC440708346C9F5B551C9A04F0248E3083A5D06C9B5F34C2D532C30911A92BED745A0046F334FF155C355CEE80C82DA8C149405187AC4FE20444FFF4A590F05F21D46D2A6709FB5EE73C16E0C97FC4432EC823171F8479F918F944955188B06847AF032B5390EFA843FC87ECE587B7BA81C4704DC8D85B47D89513798B7AFABB8AC34D3AA514996D03EDB955E4E8E33590A015FE03E511AE24B8B47D9ECB382F466E076F9DF1547C2C555B2D07F60574E23BA0CCC946EED7A5BEA9CB8FF3110C483D3A946BE328A30DBE9D340838FBB6F59639DE7ABDE80B228A8CCB1A5F6AFC4FA7E89AA3301854C03DDEDA44A509EB947E3F50B171E983A7F40DC5E15168E2874731EC0FFB224708D7B095BE556489A72EA6B29278B111A77A8E64B6EA4E173C31EBD305E0FB91567C6CCE86184B44C7A6D5177A4888C4C69F1C59645D5B2760891F4530CD2362E982CF7AB61ADFF3EC445E23C5989F048C80A7488199D32C6CF009F019E5C5BB3EE66B8937071F3740BEBBFF2EBA1621EE255D1D8B6CAD2FCC64D49CAFB19C99F34BB5590F9B8881756F67331EF6F021858BFED0431B1D183B1D665D21E9B42FABB0C18A25837B20F4B437209FF66CE76FCCAD55C1CC3E8E32E09F98EEC9EDF8346B9AAEECC7E48764B0A9464032928262CE90EDE1BE497233AF83D5112F434345B64C70142B63572C3E2969C; ASP.NET_SessionId=ngg3xzvrytju50nido1btqhv
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 302 Found
Cache-Control: no-cache
Date: Mon, 21 Sep 2020 15:58:13 GMT
Pragma: no-cache
Location: /FixedPages/Dashboard.aspx
Server: Microsoft-IIS/10.0
Content-Length: 31912
Content-Type: text/html; charset=utf-8
Expires: -1
Client-Date: Mon, 21 Sep 2020 15:58:13 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
Content-Security-Policy: frame-ancestors 'none'
Set-Cookie: .SunnyPortalFormsLogin=; expires=Mon, 11-Oct-1999 22:00:00 GMT; path=/; HttpOnly
Set-Cookie: .SunnyPortalFormsLogin=02AEBA8B59C3E0A71559E62EB4A86FDB9AA78C53684656175682DF09DE3EEACDD3FE990C4E3CA1BF7AEC5F9C95649491A21321FBB686186CE7940DFA5D5D8E0059A92A300FECA13E3987D4185507A2E5EFCCC84BFFDE1A7764D52B7B995D3707FA4D994F7F44CECD873168034317153863EBCF5BE2BD9F94BF7CE4F5B861795C408D5EF0E38635A04FEE80FB144E9126D6638F431F66201E72522E114691A69317D9DC44360606EAE63EE8E5F175A8F7149E8C6844E3193C58B5E5BD65DF3B13F2B46F4E63BE9E1BF99D5E1314E74E75639F22DF27FF2FAD5D5435C2B256CE362549EB930BD4E1333394FC3AF33C3ACCC261035DDAB0BE34EA65F2A13AAF09D10A2F585C581DD0C3BFB13EEA749F9CB9C40E1076ACFBA43F5E2F591C3E91301870B22E8582A6FF73C2DF88538E6CFEF7650A8C2CFA1F98DFF243CEA0AC25BEFD99985D6459FDD426EE5C857E6F4E4A6EAD3B69C762EC45C30426F23987DC491E6AF2CEF92A57A8AFBA963A7CBBA140C90E46B35FCF7FB16F267E5F85B82AC2F22C4D29BA77A17A05A6B8CD4CC8AFF55DB19C348570317088A1540D47F801D561BB075BBC8CF6E2046A93FE65424BAE4BDB192987701140CB3E61304DAF2247DEDB953EC801E9E81FF8C19758DADB1355CA9401925C3258D0BA9E39392393F32BB5C9887BFF67CC40A0917821F8D42D76C82095EF7F26C61882441DE61BFA0A841DE2FD8D189D739EECE4A8D35C3DDA1800BA760372F8AEDD23466084B5932ACD3D5B41E9973DC3FA19E52D917A2DBD1A6B7E1A308049B6E87DAD937446649580033AD8ED; path=/; secure; HttpOnly
Set-Cookie: SunnyPortalPageCounter=0; path=/; secure; HttpOnly
Title: Object moved
X-AspNet-Version: 4.0.30319
X-Frame-Options: DENY

<html><head><title>Object moved</title></head><body>\r
<h2>Object moved to <a href="/FixedPages/Dashboard.aspx">here</a>.</h2>\r
</body></html>\r
\r
\r
<!DOCTYPE html>\r
<!--[if IE 8]><html class="ie8 oldie"><![endif]-->\r
<!--[if IE 9 ]><html class="ie9"><![endif]-->\r
<!--[if gt IE 9]><!--><html><!--<![endif]-->\r
    <head id="ctl00_Head"><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device...
(+ 31400 more bytes not shown)
GET https://www.sunnyportal.com/FixedPages/Dashboard.aspx
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Cookie: collapseNavi_state=shown; SunnyPortalPageCounter=0; plantOid=76140038-4736-4d8d-bdeb-85006b2c8bbf; BIGipServerPool_P_SunnyPortal=3053758656.20480.0000; .SunnyPortalFormsLogin=02AEBA8B59C3E0A71559E62EB4A86FDB9AA78C53684656175682DF09DE3EEACDD3FE990C4E3CA1BF7AEC5F9C95649491A21321FBB686186CE7940DFA5D5D8E0059A92A300FECA13E3987D4185507A2E5EFCCC84BFFDE1A7764D52B7B995D3707FA4D994F7F44CECD873168034317153863EBCF5BE2BD9F94BF7CE4F5B861795C408D5EF0E38635A04FEE80FB144E9126D6638F431F66201E72522E114691A69317D9DC44360606EAE63EE8E5F175A8F7149E8C6844E3193C58B5E5BD65DF3B13F2B46F4E63BE9E1BF99D5E1314E74E75639F22DF27FF2FAD5D5435C2B256CE362549EB930BD4E1333394FC3AF33C3ACCC261035DDAB0BE34EA65F2A13AAF09D10A2F585C581DD0C3BFB13EEA749F9CB9C40E1076ACFBA43F5E2F591C3E91301870B22E8582A6FF73C2DF88538E6CFEF7650A8C2CFA1F98DFF243CEA0AC25BEFD99985D6459FDD426EE5C857E6F4E4A6EAD3B69C762EC45C30426F23987DC491E6AF2CEF92A57A8AFBA963A7CBBA140C90E46B35FCF7FB16F267E5F85B82AC2F22C4D29BA77A17A05A6B8CD4CC8AFF55DB19C348570317088A1540D47F801D561BB075BBC8CF6E2046A93FE65424BAE4BDB192987701140CB3E61304DAF2247DEDB953EC801E9E81FF8C19758DADB1355CA9401925C3258D0BA9E39392393F32BB5C9887BFF67CC40A0917821F8D42D76C82095EF7F26C61882441DE61BFA0A841DE2FD8D189D739EECE4A8D35C3DDA1800BA760372F8AEDD23466084B5932ACD3D5B41E9973DC3FA19E52D917A2DBD1A6B7E1A308049B6E87DAD937446649580033AD8ED; ASP.NET_SessionId=ngg3xzvrytju50nido1btqhv
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Mon, 21 Sep 2020 15:58:13 GMT
Pragma: no-cache
Server: Microsoft-IIS/10.0
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 26240
Content-Type: text/html; charset=utf-8
Expires: -1
Client-Date: Mon, 21 Sep 2020 15:58:14 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
X-AspNet-Version: 4.0.30319

\37\x8B\10\0\0\0\0\0\4\0\xED\xBD\7`\34I\x96%&/m\xCA{\x7FJ\xF5J\xD7\xE0t\xA1\10\x80`\23$\xD8\x90@\20\xEC\xC1\x88\xCD\xE6\x92\xEC\35iG#)\xAB*\x81\xCAeVe]f\26@\xCC\xED\x9D\xBC\xF7\xDE{\xEF\xBD\xF7\xDE{\xEF\xBD\xF7\xBA;\x9DN'\xF7\xDF\xFF?\\fd\1l\xF6\xCEJ\xDA\xC9\x9E!\x80\xAA\xC8\37?~|\37?"~\xE3\xE47N\36\xFF\xAEO\xBF<y\xF3\xFB\xBC<M\xE7\xED\xA2<\x92\x8F\xB6\xB7\xBFW\x9C\xA7g\xA7\xE9\xC1\xF7\x8F\36\xE3\xF3tZfM\xF3\xD9GE~\x90V\xE5\xAC\xC8?:z\xFC\xBB~/_\xCE\x8A\xF3\xEFoo\xD3[\xDE;\17\xD3\xDEK\17\x87\x9A_\xB4\xFC\6\xBD@\37\xC8[\xFCk\xD8:\xA5\xE7\xF1<\xCFfi1\xFB\xEC\xA3i[\xEE\xEC\xFC\xFE\xDF\xA6?\t\xEA"o\xB3t\xDE\xB6\xAB\xED\xFC\27\xAD\x8B\xCB\xCF>\xFA\xBD\xB7\xBF:\xDE>\xA9\26\xAB\xAC-&e\xFEQ:\xAD\x96m\xBEl?\xFB\xE8\xEC\xF4\xB3|vA\x9F\xDC\xD5\xD7\xA6\xF3\xACnr\xFAf\xDD\x9Eo\37\xB8\xCF\xBF&\xB8e\xB6\xC8?\xFB\xE8\xB2\xC8\xAFVU\xDDz-\xAF\x8AY;\xFFl\x96_\26\xD3|\x9B\xFF\30\xA5\xC5\xB2h\x8B\xAC\xDCn\xA6Y\x99\x7F\xB6\xCBP\xDA\xA2-s\32\xEE\x8F\35/\xCB\xEC"_\xFE\xA3\x7F\xDF$\xAF\x9Bb:o\xD3\xED\xF4\xF7\xAA\xF2U>J\x8F\xD7\27\xEB\xA6\x9DU\xF59}\xF6z\xBD\\^\xA7/\xA9\xB7\xAC$\x9A\xDE\25\0\x8F\xCBb\xF96\xAD\xF3\xF2\xB3\x8F\x9A9}7]\xB7iA\xC8|\x94\xB6\xD7+\xC2\xB0X\20\xF0\xBB\xEF\xB6\xE5\xB3y\x9D\x9F\x7F\xF6\xD1x|\xF7<#\xFC\xAA\xE5\x98\xFEal\34\x94l\xB5*\xF3\xED\xB6ZO\xE7\xDD\x97\xBA_\x8DW\xCB\13\xBC\xADs\xE6`4\xEDu\x997\xF3<'\xC2\xC8\xDBwgE\xD3\xDE\x9D6\xCD\xDDf\x91\x8D\xDBy\xBE\xC8\xC7\xF4\xD7\xEFq\xF9\xD9\xC1\xF8\xD3\xF1\xCEx\xEF\xD3\x8F\0\xE7\xBD!]\xE5...
(+ 25728 more bytes not shown)

Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 22 September 2020, 10:53:01
Hallo,

ich vermute es ist bei dir der gleiche Fall den wir hier schon mal hatten (SSL):
https://forum.fhem.de/index.php/topic,102112.msg1082103.html?PHPSESSID=bdlq8km7bkd7ko26kuf1sklkac#msg1082103

Lösung steht auch in diesem Thread im Beitrag #249 etwas darunter.
Es waren zu alte libs im System auf BS Ebene vorhanden.

Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 23 September 2020, 16:09:07
Ich hab alles aktualisiert. Login war nach dem reboot ok. Soweit so gut. Jetzt kommt folgende Meldung SMA Portal failure: Message -> There was an error processing the request.,
StackTrace -> ,
ExceptionType ->
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 23 September 2020, 16:35:05
Das ist eine Meldung vom SMA Portal dass man mit der angeforderten Aufgabe nicht klargekommen ist.
Poste mal bitte ein List deiner SMAPortal Devicedefinition.
Vermutlich passt da etwas nicht.
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 23 September 2020, 16:44:38
Hier das List Internals:
   CREDENTIALS Set
   FUUID      5f68b7f4-f33f-6642-d692-f056edfe660f1349
   FVERSION   76_SMAPortal.pm:v3.4.1-s22640/2020-08-21
   MODE       Automatic - next polltime: 16:43:50
   NAME       SMAPortal
   NR         474
   STATE      SMA Portal failure: Message -> There was an error processing the request.,
StackTrace -> ,
ExceptionType ->
   TYPE       SMAPortal
   HELPER:
     ACTCYCLE   1
     CYCLEBTIME 1600871930
     GETTER     all
     PACKAGE    FHEM::SMAPortal
     RETRIES    1
     SETTER     none
     SPGDETAIL 
     SPGDEV     SPG1.SMAPortal
     SPGROOM    PV Anlage
     VERSION    3.4.1
   READINGS:
     2020-09-23 16:38:50   dailyCallCounter 23:200
     2020-09-23 15:53:24   lastCycleTime   2
     2020-09-23 16:38:51   loginState      successful
     2020-09-23 16:38:51   state           SMA Portal failure: Message -> There was an error processing the request.,
StackTrace -> ,
ExceptionType ->
Attributes:
   noHomeManager 1
   providerLevel balanceDayData,balanceMonthData,balanceYearData,balanceTotalData,consumerCurrentdata,consumerDayData,consumerMonthData,consumerYearData,forecastData,liveData,weatherData
   room       PV Anlage
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 23 September 2020, 16:47:47
Du hast jetzt alle Provider ausgewählt. Das ist soweit ok, nur macht es Fehleridentifikation zu schwer.
Fang erstmal mit einem Provider an. Wenn ok, nimm den nächsten dazu usw. bis der Fehler wieder kommt.
Dann können wir schauen ...

EDIT: die consumer.*Data werden nicht gehen weil du keinen Homemanager angeschlossen hast der Verbraucher steuern kann.
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 25 September 2020, 12:49:23
Hallo, wie Du vorgeschlagen hast habe ich nur einen Provider nämlich liveData eingestellt.
Erhalte nur die Meldung Nachricht von SMA Sunny Portal erhalten:
Der aktuelle Verbrauch konnte nicht ermittelt werden. Der aktuelle Netzbezug ist unbekannt.

Habe hier irgendwo gelesen das SMA den automatischen Abruf unterbindet. Kann das einer bestätigen oder
läuft das Device bei euch ?
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 25 September 2020, 13:02:36
ZitatHabe hier irgendwo gelesen das SMA den automatischen Abruf unterbindet. Kann das einer bestätigen oder
läuft das Device bei euch ?
Neiin, das läuft.

Die von dir zitierte Meldung bezieht sich vermutlich darauf, dass du keinen SMA Energy Meter hast ?
Nur der Energymeter (oder HoManager V2 mit eingebauten Energy Meter) ist in der Lage zu messen/an SMA zu übermitteln was aus dem Netz bezogen bzw. eingespeist wird.

Du solltest aber Readings wie das

L01_PV

erhalten.

Ein List hilft hier wieder weiter um die Vermutung zu bestätigen.
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 26 September 2020, 20:35:32
Zitat von: DS_Starter am 25 September 2020, 13:02:36
Du solltest aber Readings wie das

L01_PV

erhalten.

Stimmt. Ist das die aktuelle Leistung? Das Reading wird so selten aktualisiert und im Eventmonitor erscheint es auch nicht.
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 26 September 2020, 20:50:06
ZitatIst das die aktuelle Leistung?
Die aktuelle PV Erzeugung. Events werden auch erzeugt wenn der Wert sich ändert. Jetzt dürfte er 0 sein.

ZitatDas Reading wird so selten aktualisiert
Ja, abhängig vom Attribut interval. Steht alles in der Commandref.
Per default 300 Sekunden. Man kann öfter abrufen, darf aber ein bestimmtes Intervall nicht unterschreiten da sonst der Nutzer keine Werte mehr abrufen darf (SMA).
Im SMAPortal Thread steht mehr dazu.

Wenn du sehr oft Daten möchtest, solltest du deinen WR direkt abrufen per SMAInverter oder Modbus. SMAPortal ist da vllt. nicht das richtige für dich. Es ist eher für Statistiken mit Visualisierungen geeignet bzw. für Datenabrufe mit höheren Intervallen. 
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 28 September 2020, 11:37:19
Hab mal im Event monitor geschaut. Ich bekomme nur diese Daten
11:30:53 SMAPortal SMAPortal running - call cycle 1
2020-09-28 11:30:53 SMAPortal SMAPortal dailyCallCounter: 28:139
2020-09-28 11:30:54 SMAPortal SMAPortal loginState: successful
2020-09-28 11:30:54 SMAPortal SMAPortal L01_WarningMessages: <html><b>Nachricht von SMA Sunny Portal erhalten:</b><br>Die aktuelle PV-Erzeugung konnte nicht vollständig ermittelt werden. Ein Wechselrichter hat nicht geantwortet.</html>
2020-09-28 11:30:54 SMAPortal SMAPortal L01_InfoMessages: <html><b>Nachricht von SMA Sunny Portal erhalten:</b><br>Der aktuelle Verbrauch konnte nicht ermittelt werden. Der aktuelle Netzbezug ist unbekannt. </html>
2020-09-28 11:30:54 SMAPortal SMAPortal lastCycleTime: 1
2020-09-28 11:30:54 SMAPortal SMAPortal summary: 0 W
2020-09-28 11:30:54 SMAPortal SMAPortal lastSuccessTime: 28.09.2020 11:30:54
2020-09-28 11:30:54 SMAPortal SMAPortal ok

Den aktuellen Wert wollte ich in ein dummy schreiben. Doch ohne Event?
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 28 September 2020, 11:54:34
Bei mir kommen dir Events wie gewünscht, z.B. gerade eben:


2020-09-28 11:48:19.624 SMAPortal SStrom_live running - call cycle 1
2020-09-28 11:48:19.927 SMAPortal SStrom_live loginState: successful
2020-09-28 11:48:20.609 SMAPortal SStrom_live L01_FeedIn: 3508 W
2020-09-28 11:48:20.609 SMAPortal SStrom_live L01_GridConsumption: 0 W
2020-09-28 11:48:20.609 SMAPortal SStrom_live L01_PV: 4059 W
2020-09-28 11:48:20.609 SMAPortal SStrom_live L01_SelfConsumption: 551 W
2020-09-28 11:48:20.609 SMAPortal SStrom_live L01_SelfSupply: 551 W
2020-09-28 11:48:20.609 SMAPortal SStrom_live L01_TotalConsumption: 551 W
2020-09-28 11:48:20.623 SMAPortal SStrom_live summary: 3508 W
2020-09-28 11:48:20.623 SMAPortal SStrom_live ok


Irgendwas scheint aber mit deiner Kommunikation des SMA-Portals zu deinem WR nicht so gut zu funktionieren, denn diese Meldung


2020-09-28 11:30:54 SMAPortal SMAPortal L01_WarningMessages: <html><b>Nachricht von SMA Sunny Portal erhalten:</b><br>Die aktuelle PV-Erzeugung konnte nicht vollständig ermittelt werden. Ein Wechselrichter hat nicht geantwortet.</html>


zeigt ein Problem. Deswegen werden auch keine Werte L01_PV bzw. der entsprechende Event generiert, woher auch ?
Das kann mal passieren, aber darf nicht die Regel sein.

Was siehst du denn wenn du dich mit dem Browser als normaler User im Protal anmeldest bei "Aktuellem Status und Prognose" ?
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 28 September 2020, 12:14:34
Zitat von: DS_Starter am 28 September 2020, 11:54:34
Was siehst du denn wenn du dich mit dem Browser als normaler User im Protal anmeldest bei "Aktuellem Status und Prognose" ?
Den Punkt habe ich nicht. Siehe Anhang.
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 28 September 2020, 12:49:16
Ja ok, wegen dem fehlenden Energy Meter / HomeManager.
Aber die PV Erzeugungswerte sollten kommen.

Wenn es damit hakt wieder verbose 5 einstellen und zusätzlich verbose5Data = liveData.
Dann sieht man was vom Portal als HTML/JSON an FHEM geliefert wird.
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 29 September 2020, 08:47:17
Das steht im Log
2020.09.29 08:36:39 3: SMAPortal - ################################################################
2020.09.29 08:36:39 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.09.29 08:36:39 3: SMAPortal - ################################################################
2020.09.29 08:36:39 5: SMAPortal - SMAPortal version:          3.4.1
2020.09.29 08:36:39 4: SMAPortal - calculated maximum cycles:  10
2020.09.29 08:36:39 4: SMAPortal - calculated timeout:         3600
2020.09.29 08:36:39 3: SMAPortal - ignore provider "forecastData" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - ignore provider "plantMasterData" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - ignore provider "consumerMonthData" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - ignore provider "consumerYearData" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - ignore provider "consumerDayData" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - ignore provider "consumerCurrentdata" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - ignore provider "consumerMasterdata" - SMA Home Manager is not installed
2020.09.29 08:36:39 3: SMAPortal - Running data cycle: 1 of 10
2020.09.29 08:36:39 5: SMAPortal - Start operation with CookieLocation: ./log/SMAPortal_cookie.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.09.29 08:36:39 5: SMAPortal - data get: all, data set: none
2020.09.29 08:36:39 4: SMAPortal - Credentials read from RAM: MEINEEMAILADRESSE ********
2020.09.29 08:36:39 3: SMAPortal - User is already logged in.
2020.09.29 08:36:39 4: SMAPortal - Getting liveData
GET https://www.sunnyportal.com/homemanager?t=1601337600000
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Cookie: collapseNavi_state=shown; ASP.NET_SessionId=k0o4o4olbxrgideri0dv50nd; SunnyPortalPageCounter=0; BIGipServerPool_P_SunnyPortal=3070535872.20480.0000; .SunnyPortalFormsLogin=4A940E7998C13E5D3760868955B120C4FC42DB4BB622306FE1738200B2B81356AA1124332EAE46B6C3DA067184E32751BB4AE9D4327900695B6FD2EA683E8EB419A001510681450D7DA63F523BE6588C0C420C0A5CFEDD46330733524AF2ECE788041F047613FF69DFE17DB5063052C2A1615A9E23C303639679206B0673995CDE3AB08CA916556201975124CFDDF35CF6D88D765E355DAF8F645CCE3B53C31D0825A358935C871BE33139C9D8575C942885726B0DF73138AF7BB272631C1EA1B905AB14982D702605EC39F242193F6DA64C0573FE866FD38C7D5D0BD91788C5C10E09E0BDD7D43F99760BDE8FC8B20BBA2FDB2E3F1A72A05DFD72B9C8EE0456C6DE1BEF7FD91DBA7F8BC9EFA52C92A995E540D0FBD6E1BA208BB324CD380057B671120448C7A16A3DA3CECF39880AB6AD0676BA68B00085AAC5B9A7EFC979C1CB615CD72C7E384AA7193201299527D41A1163E95E909FDA3A9462B0175CD6F3F693E492DE0954341F4A6F70102B83E4A440F9597325E78E491F47DB39DC9BA2F358AFD154EE44D86E5AA7F7149C8471616C5D8016790769F0976B5105FC680FE9CCEE8AB774397FDC47086E2529E83B48A68513DD7B494DF8CACC3481CA3E6CE879B6F676D2647A02A29177FC04539C7E98CE193A517CB0D5B8DB4BCD58997356C4B35EF9568FDBC80ADF0174D379A908ECBC3683987D99045601F75F6079050E370C6F8EBCA3C867D4B2BB6E37635B288E8FDF437F647858E886138152842A6C213AA05E46FDFE96C25CB788E3CB59CCE9F366574F50031E64AE5F7861DA81E881F825
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 200 OK
Cache-Control: private, s-maxage=0
Date: Tue, 29 Sep 2020 06:36:40 GMT
Server: Microsoft-IIS/10.0
Content-Length: 823
Content-Type: application/json; charset=utf-8
Client-Date: Tue, 29 Sep 2020 06:36:40 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2

{"__type":"LiveDataUI","Timestamp":{"__type":"DateTime","DateTime":"2020-09-29T08:36:40","Kind":"Unspecified"},"PV":null,"FeedIn":null,"GridConsumption":null,"DirectConsumption":null,"SelfConsumption":null,"SelfSupply":null,"TotalConsumption":null,"DirectConsumptionQuote":null,"SelfConsumptionQuote":null,"AutarkyQuote":null,"BatteryIn":null,"BatteryOut":null,"BatteryChargeStatus":null,"OperationHealth":null,"BatteryStateOfHealth":null,"ModuleTemperature":null,"EnvironmentTemperature":null,"WindSpeed":null,"...
(+ 311 more bytes not shown)
2020.09.29 08:36:40 5: SMAPortal - Return Code: 200
2020.09.29 08:36:40 5: SMAPortal - liveData received:
{
  'DirectConsumption' => undef,
  'AutarkyQuote' => undef,
  'Info' => {},
  'BatteryChargeStatus' => undef,
  'OperationHealth' => undef,
  'SelfConsumptionQuote' => undef,
  'EnvironmentTemperature' => undef,
  'SelfSupply' => undef,
  'ModuleTemperature' => undef,
  'BatteryStateOfHealth' => undef,
  'FeedIn' => undef,
  'SelfConsumption' => undef,
  'BatteryIn' => undef,
  'WarningMessages' => [
                         "Die aktuelle PV-Erzeugung konnte nicht vollst\x{e4}ndig ermittelt werden. Ein Wechselrichter hat nicht geantwortet."
                       ],
  'WindSpeed' => undef,
  'GridConsumption' => undef,
  'InfoMessages' => [
                      'Der aktuelle Verbrauch konnte nicht ermittelt werden. Der aktuelle Netzbezug ist unbekannt. '
                    ],
  'Timestamp' => {
                   'DateTime' => '2020-09-29T08:36:40',
                   '__type' => 'DateTime',
                   'Kind' => 'Unspecified'
                 },
  'BatteryOut' => undef,
  'Insolation' => undef,
  '__type' => 'LiveDataUI',
  'BatteryMode' => undef,
  'ErrorMessages' => [],
  'DirectConsumptionQuote' => undef,
  'PV' => undef,
  'TotalConsumption' => undef
}

2020.09.29 08:36:40 4: SMAPortal - ##### extracting live data ####
2020.09.29 08:36:40 3: SMAPortal - data retrieved successfully.
2020.09.29 08:36:40 4: SMAPortal - Refresh - caller: "n.a.", callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1
2020.09.29 08:41:39 3: SMAPortal - ################################################################
2020.09.29 08:41:39 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.09.29 08:41:39 3: SMAPortal - ################################################################
2020.09.29 08:41:39 5: SMAPortal - SMAPortal version:          3.4.1
2020.09.29 08:41:39 4: SMAPortal - calculated maximum cycles:  10
2020.09.29 08:41:39 4: SMAPortal - calculated timeout:         3600
2020.09.29 08:41:39 3: SMAPortal - ignore provider "forecastData" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - ignore provider "plantMasterData" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - ignore provider "consumerMonthData" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - ignore provider "consumerYearData" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - ignore provider "consumerDayData" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - ignore provider "consumerCurrentdata" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - ignore provider "consumerMasterdata" - SMA Home Manager is not installed
2020.09.29 08:41:39 3: SMAPortal - Running data cycle: 1 of 10
2020.09.29 08:41:39 5: SMAPortal - Start operation with CookieLocation: ./log/SMAPortal_cookie.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.09.29 08:41:39 5: SMAPortal - data get: all, data set: none
2020.09.29 08:41:39 4: SMAPortal - Credentials read from RAM: MEINEEMAILADRESSE ********
2020.09.29 08:41:40 3: SMAPortal - User is already logged in.
2020.09.29 08:41:40 4: SMAPortal - Getting liveData
GET https://www.sunnyportal.com/homemanager?t=1601337600000
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Cookie: collapseNavi_state=shown; .SunnyPortalFormsLogin=620ECC3BF3EBA2796E260BEB98BFB46314C8197E3699B44C518D81280F0B1EEAEABC41BADD3831147E88FDC05B94C1DEF0CDC2285E55780C6A6A2267109068CC8A9B0520F8CA43FA3A02CAC4C3506ADA5D1F60A4E650F672DEE0E65A362E1F83BABD3281EC9B5B1DCE23BCBDA5CA918B9BE27E58482DBA385B815CDEB1462533ABB82BCD98D737B29E5590D0C6CB0F3459068CFCD9FFEEF6E0458EAC17188B1A7A64C9BA9044CD415FADCBB1430AAF41DF63813AA6C4995A4EABDABC85E7E3A5DAC79FC3C5B29585D610901A3F1D62C93B7514646239B2CDDD7FEDBE2C92C2930438E87F1E24B1D380F5921021865EC94C65BDA02B80B05EFEB0E114CDFAFB1ABD36B978232DA26FA902516BE992D1F92FA1713206F4B83816097002D501C9BDB4A5FC1CC90228ED7F31DBDCB6BA9961BBBD3071238A4A90E4E83A0563659DD5630B5ACC94239156C8B987C0E1C4514F256B780D67CC3677263C431E6B7C7632F3E16784875B6FF51E4B8EC9560D954401E9F283B9892B1E3CCF313ED58FF9537315FD0DA2F598EC351944D9ACF6BDC71CA431E2D356BD252C9BF88484792C3C623E9601CE9F830F80B1ACA501D0751F3D6D727DC425A75A7BA9C1A59D0434C879890FACE16014EF06F4173584A386583907F0A13FA3D068052CAD750D765DAE6B935DA5B9C8BDBB8751CF9D0F2B3E71C1C2BC47D5208B26B9C9AA0400582FC89ED485A376584087191100F6911EC63F2DFB54E61BDA18269F4E6205C993214442DD00611B7DEFA627A12B9FEBD7896C482871869B444960F99794D75AB9B2642C5E8077; BIGipServerPool_P_SunnyPortal=3070535872.20480.0000; SunnyPortalPageCounter=0; ASP.NET_SessionId=k0o4o4olbxrgideri0dv50nd
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 200 OK
Cache-Control: private, s-maxage=0
Date: Tue, 29 Sep 2020 06:41:40 GMT
Server: Microsoft-IIS/10.0
Content-Length: 823
Content-Type: application/json; charset=utf-8
Client-Date: Tue, 29 Sep 2020 06:41:41 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2

{"__type":"LiveDataUI","Timestamp":{"__type":"DateTime","DateTime":"2020-09-29T08:41:41","Kind":"Unspecified"},"PV":null,"FeedIn":null,"GridConsumption":null,"DirectConsumption":null,"SelfConsumption":null,"SelfSupply":null,"TotalConsumption":null,"DirectConsumptionQuote":null,"SelfConsumptionQuote":null,"AutarkyQuote":null,"BatteryIn":null,"BatteryOut":null,"BatteryChargeStatus":null,"OperationHealth":null,"BatteryStateOfHealth":null,"ModuleTemperature":null,"EnvironmentTemperature":null,"WindSpeed":null,"...
(+ 311 more bytes not shown)
2020.09.29 08:41:41 5: SMAPortal - Return Code: 200
2020.09.29 08:41:41 5: SMAPortal - liveData received:
{
  'Info' => {},
  'BatteryChargeStatus' => undef,
  'SelfSupply' => undef,
  'SelfConsumptionQuote' => undef,
  'EnvironmentTemperature' => undef,
  'OperationHealth' => undef,
  'DirectConsumption' => undef,
  'AutarkyQuote' => undef,
  'SelfConsumption' => undef,
  'FeedIn' => undef,
  'ModuleTemperature' => undef,
  'BatteryStateOfHealth' => undef,
  'Timestamp' => {
                   'DateTime' => '2020-09-29T08:41:41',
                   'Kind' => 'Unspecified',
                   '__type' => 'DateTime'
                 },
  'Insolation' => undef,
  'BatteryOut' => undef,
  'BatteryIn' => undef,
  'GridConsumption' => undef,
  'InfoMessages' => [
                      'Der aktuelle Verbrauch konnte nicht ermittelt werden. Der aktuelle Netzbezug ist unbekannt. '
                    ],
  'WindSpeed' => undef,
  'WarningMessages' => [
                         "Die aktuelle PV-Erzeugung konnte nicht vollst\x{e4}ndig ermittelt werden. Ein Wechselrichter hat nicht geantwortet."
                       ],
  'TotalConsumption' => undef,
  'ErrorMessages' => [],
  '__type' => 'LiveDataUI',
  'BatteryMode' => undef,
  'DirectConsumptionQuote' => undef,
  'PV' => undef
}

2020.09.29 08:41:41 4: SMAPortal - ##### extracting live data ####
2020.09.29 08:41:41 3: SMAPortal - data retrieved successfully.
2020.09.29 08:41:41 4: SMAPortal - Refresh - caller: "n.a.", callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 29 September 2020, 17:47:45
Ja, ist eindeutig zu sehen dass das Portal keine Daten auf die Anfrage rausbringt.
Ich denke das wegen des fehlenden Homemangers die abgefragte Seite "homemanager" keine Daten liefern kann.
Eigentümlich das noch kein anderer User ohne Homemanager darauf gestoßen ist.

Ich habe dir eine Testversion bereitgestellt, die statt dessen das Dashboard abfragt. Hier stehen ja Daten zur Verfügung.
Lade dir das Modul mal herunter und teste damit.

Zum Download in der FHEMWEB Kommandozeile inklusive der Ausführungszeichen angeben und danach FHEM restarten:

"wget -qO ./FHEM/76_SMAPortal.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/76_SMAPortal.pm"
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 30 September 2020, 20:14:01
Anbei ein aktuelles Log mit deiner Testversion.
2020.09.30 19:49:23 4: SMAPortal - ##### extracting live data ####
2020.09.30 19:49:23 3: SMAPortal - data retrieved successfully.
2020.09.30 19:49:24 4: SMAPortal - Refresh - caller: "n.a.", callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1
2020.09.30 19:51:58 1: HMUARTLGW KG.HmUARTLGW did not respond for the 1. time, resending
2020.09.30 19:52:01 1: HMUARTLGW KG.HmUARTLGW did not respond for the 2. time, resending
2020.09.30 19:52:04 1: HMUARTLGW KG.HmUARTLGW did not respond for the 3. time, resending
2020.09.30 19:52:08 1: HMUARTLGW KG.HmUARTLGW did not respond after all, reopening
2020.09.30 19:54:12 1: 192.168.143.16:23 reappeared (KG.HmUARTLGW)
2020.09.30 19:54:23 3: SMAPortal - ################################################################
2020.09.30 19:54:23 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.09.30 19:54:23 3: SMAPortal - ################################################################
2020.09.30 19:54:23 5: SMAPortal - SMAPortal version:          3.5.0
2020.09.30 19:54:23 4: SMAPortal - calculated maximum cycles:  10
2020.09.30 19:54:23 4: SMAPortal - calculated timeout:         3600
2020.09.30 19:54:23 3: SMAPortal - ignore provider "consumerMasterdata" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - ignore provider "consumerCurrentdata" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - ignore provider "consumerMonthData" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - ignore provider "consumerYearData" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - ignore provider "consumerDayData" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - ignore provider "forecastData" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - ignore provider "plantMasterData" - SMA Home Manager is not installed
2020.09.30 19:54:23 3: SMAPortal - Running data cycle: 1 of 10
2020.09.30 19:54:23 5: SMAPortal - Start operation with CookieLocation: ./log/SMAPortal_cookie.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.09.30 19:54:23 5: SMAPortal - data get: all, data set: none
2020.09.30 19:54:23 4: SMAPortal - Credentials read from RAM: meineemailadresse ********
2020.09.30 19:54:23 3: SMAPortal - User is already logged in.
2020.09.30 19:54:23 4: SMAPortal - Getting liveData
GET https://www.sunnyportal.com/Dashboard?t=1601424000000
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Cookie: collapseNavi_state=shown; .SunnyPortalFormsLogin=D6432551207EB1CDE611D5DCAA687A1F73D36D8FE8C7F255452FE3A85256198525DE17E755FDAEBF42001CA20F2AB978175D02253B9AE10B0247FCE78C5CB4665AFF7DB92AE43F7B82E5C5906CC8E1272B1EF68D053E6F334A34354E7B0E9C493B35D66FA668E40D03CB7712A8FB474CD36F21871394A926035ACC60E2765846D0C36FA47E47A114EF280C8FAAB9FEB3651C26F7A129A53F8C851D3CD1C3577AB28E6F9F1E4899860FB06E94311F613FDBE25845248BE9F6A793F6F8C369C2CB01B8E5EDA349717A324BC44B868882AA052CC71212DC03BF8097C0CE7C9E9A489FC3E7671451E1C0A70C08DDB6BDB479AAE01AD7BE169642FD22FE84E1AAE02509C63B882BAA594FBE81E1B58DE1D3F95C86DFE55492FBF65D4BF2C5E547472663D3616948CAB58D264B3FA4D99DC284675326C5A515EC5E61E03DA6BDCEB3734C4D56DF82304E33E9A3553CA905A219C53722CA24EE44349F1903B34175CB84FED4D65877FFB71D6D0D42C59FB7195FA19593BC93EFE132DE41E0FA39D10B80F8AAE79A4104F2D740BF627130E0C0B7B7849C25E2C1A8D3A3BD3FF0DC7B609F15D6279DDC1CAD28D17350C476D7D311B7DC1985B2F91BEE904A8BA7ACEED13A89484FA0943883B19E317BDD04A8E9698FB676BD2662B109CDB0182D875FF8D8D396C3166098DF4C30CDED5CCE4E024C3C2B773E723E9AF0826ED999125B38691DBBFBCEE70B78DB2F9FF0E1D2852FD7D8B7E36251D20CC6A1E148539DA8469E1E08EEDA418EFD509705EA75E82CEA894F3747A3F745F10A20823C6494A0700AF0BC5BB3; BIGipServerPool_P_SunnyPortal=3070535872.20480.0000; ASP.NET_SessionId=zqw5ql4qmj1h11wtmjyx2x3c; SunnyPortalPageCounter=0
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 200 OK
Cache-Control: private, s-maxage=0
Date: Wed, 30 Sep 2020 17:54:23 GMT
Server: Microsoft-IIS/10.0
Content-Length: 702
Content-Type: application/json; charset=utf-8
Client-Date: Wed, 30 Sep 2020 17:54:23 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2

{"__type":"LiveDataUI","Timestamp":null,"PV":null,"FeedIn":null,"GridConsumption":null,"DirectConsumption":null,"SelfConsumption":null,"SelfSupply":null,"TotalConsumption":null,"DirectConsumptionQuote":null,"SelfConsumptionQuote":null,"AutarkyQuote":null,"BatteryIn":null,"BatteryOut":null,"BatteryChargeStatus":null,"OperationHealth":null,"BatteryStateOfHealth":null,"ModuleTemperature":null,"EnvironmentTemperature":null,"WindSpeed":null,"Insolation":null,"BatteryMode":null,"InfoMessages":[],"WarningMessages"...
(+ 190 more bytes not shown)
2020.09.30 19:54:23 5: SMAPortal - Return Code: 200
2020.09.30 19:54:23 5: SMAPortal - liveData received:
{
  'BatteryOut' => undef,
  'ModuleTemperature' => undef,
  'ErrorMessages' => [
                       "Die Kommunikation mit Ihrem Wechselrichter ist zurzeit nicht m\x{f6}glich. Pr\x{fc}fen Sie die Internetverbindung des Wechselrichters und versuchen Sie es erneut. "
                     ],
  'DirectConsumption' => undef,
  'WindSpeed' => undef,
  'SelfConsumption' => undef,
  'BatteryStateOfHealth' => undef,
  'BatteryIn' => undef,
  'Info' => {},
  'SelfSupply' => undef,
  'AutarkyQuote' => undef,
  'SelfConsumptionQuote' => undef,
  'OperationHealth' => undef,
  'InfoMessages' => [],
  'DirectConsumptionQuote' => undef,
  'PV' => undef,
  'WarningMessages' => [],
  'GridConsumption' => undef,
  '__type' => 'LiveDataUI',
  'BatteryMode' => undef,
  'EnvironmentTemperature' => undef,
  'Timestamp' => undef,
  'Insolation' => undef,
  'FeedIn' => undef,
  'BatteryChargeStatus' => undef,
  'TotalConsumption' => undef
}

2020.09.30 19:54:23 4: SMAPortal - ##### extracting live data ####
2020.09.30 19:54:23 3: SMAPortal - data retrieved successfully.
2020.09.30 19:54:23 4: SMAPortal - Refresh - caller: "n.a.", callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1
2020.09.30 19:55:03 1: HMUARTLGW KG.HmUARTLGW did not respond for the 1. time, resending
2020.09.30 19:55:06 1: HMUARTLGW KG.HmUARTLGW did not respond for the 2. time, resending
2020.09.30 19:55:09 1: HMUARTLGW KG.HmUARTLGW did not respond for the 3. time, resending
2020.09.30 19:55:12 1: HMUARTLGW KG.HmUARTLGW did not respond after all, reopening
2020.09.30 19:56:15 1: 192.168.143.16:23 reappeared (KG.HmUARTLGW)
2020.09.30 19:59:23 3: SMAPortal - ################################################################
2020.09.30 19:59:23 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.09.30 19:59:23 3: SMAPortal - ################################################################
2020.09.30 19:59:23 5: SMAPortal - SMAPortal version:          3.5.0
2020.09.30 19:59:23 4: SMAPortal - calculated maximum cycles:  10
2020.09.30 19:59:23 4: SMAPortal - calculated timeout:         3600
2020.09.30 19:59:23 3: SMAPortal - ignore provider "consumerMasterdata" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - ignore provider "consumerCurrentdata" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - ignore provider "consumerMonthData" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - ignore provider "consumerYearData" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - ignore provider "consumerDayData" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - ignore provider "forecastData" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - ignore provider "plantMasterData" - SMA Home Manager is not installed
2020.09.30 19:59:23 3: SMAPortal - Running data cycle: 1 of 10
2020.09.30 19:59:23 5: SMAPortal - Start operation with CookieLocation: ./log/SMAPortal_cookie.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.09.30 19:59:23 5: SMAPortal - data get: all, data set: none
2020.09.30 19:59:23 4: SMAPortal - Credentials read from RAM: meineemailadresse ********
2020.09.30 19:59:24 3: SMAPortal - User is already logged in.
2020.09.30 19:59:24 4: SMAPortal - Getting liveData
GET https://www.sunnyportal.com/Dashboard?t=1601424000000
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Cookie: collapseNavi_state=shown; SunnyPortalPageCounter=0; ASP.NET_SessionId=zqw5ql4qmj1h11wtmjyx2x3c; BIGipServerPool_P_SunnyPortal=3070535872.20480.0000; .SunnyPortalFormsLogin=38D5319A8D95717C6336D18BAA19775980A757FD20C08C912F874DCDFAA40C080D9E8A4666A1FC0EA504642FB52C546D7207DEAA36700E0557B45FFC9C8883048CE5AAE1C8E4ADAC7ACA3C0C29FB331051DE1FAAF8FD1DA234218C57F691BC6EAF3153208661A6D92909A520D91AA4D7792A15B6CF2340088557540CEE9609E63CFA49BC2D31C3521A978720B3B9648367DBA513D4164CEFA54DF419219FAB803206CBF005A40DF6E3C96431FC40B122816601CD438CF7966FE37EC477994E1C5C7C0406EE77F1AFC44EA4294BB5B90131AF1F7D7A3A81E0E24DB3E3BBFC814E5622E7B8348B8D4C413A168ADD0383DFE7D10F0787885F710074BCDE1ECC3F931305E4493334E48DA364D27AD2A8C7CDF6EE472B2DC303D3CF1D224C1520E26901420CC4BA3259D26E8E756278A7AC9AA581DE8EBEA7ECAEAD327BBC2FAD627780CC006020F9E78E08653F462581EFB9070A4E7008C7AAD1AF05BAEE9D134E3633C698759A3900C1FFC047E3A7E828012B04C423B2FC6839A1D9AF5A25117CCA2E217BE594C9F823530C0724AC11900FF6A4932A4C1CBBC01D9031A37C4DF6713E8BAC571BCFA3F131C88FD79D03DCF72EC5F8570C19D180AC17A991BF928639A743DAE64ADE1748BA329A967D0334774D4EDCC1D34C49273A78449F35F294CA1553295036E6F7D3158C8E52A865E88BCFA8ECB4269B84CF0E2CACCF8C06F2C3A3361ADD748C280A4E8547B18DFF5E487205746681837814B34BA909902C4D3891BD854980342F8CC2926644D4429D5188170237E4C1BAD34E79DBE4C297F238A6F09988
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 200 OK
Cache-Control: private, s-maxage=0
Date: Wed, 30 Sep 2020 17:59:23 GMT
Server: Microsoft-IIS/10.0
Content-Length: 702
Content-Type: application/json; charset=utf-8
Client-Date: Wed, 30 Sep 2020 17:59:24 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2

{"__type":"LiveDataUI","Timestamp":null,"PV":null,"FeedIn":null,"GridConsumption":null,"DirectConsumption":null,"SelfConsumption":null,"SelfSupply":null,"TotalConsumption":null,"DirectConsumptionQuote":null,"SelfConsumptionQuote":null,"AutarkyQuote":null,"BatteryIn":null,"BatteryOut":null,"BatteryChargeStatus":null,"OperationHealth":null,"BatteryStateOfHealth":null,"ModuleTemperature":null,"EnvironmentTemperature":null,"WindSpeed":null,"Insolation":null,"BatteryMode":null,"InfoMessages":[],"WarningMessages"...
(+ 190 more bytes not shown)
2020.09.30 19:59:24 5: SMAPortal - Return Code: 200
2020.09.30 19:59:24 5: SMAPortal - liveData received:
{
  'AutarkyQuote' => undef,
  'SelfConsumptionQuote' => undef,
  'SelfSupply' => undef,
  'WarningMessages' => [],
  'OperationHealth' => undef,
  'InfoMessages' => [],
  'DirectConsumptionQuote' => undef,
  'PV' => undef,
  'ErrorMessages' => [
                       "Die Kommunikation mit Ihrem Wechselrichter ist zurzeit nicht m\x{f6}glich. Pr\x{fc}fen Sie die Internetverbindung des Wechselrichters und versuchen Sie es erneut. "
                     ],
  'DirectConsumption' => undef,
  'WindSpeed' => undef,
  'BatteryOut' => undef,
  'ModuleTemperature' => undef,
  'BatteryStateOfHealth' => undef,
  'Info' => {},
  'BatteryIn' => undef,
  'SelfConsumption' => undef,
  'FeedIn' => undef,
  'Insolation' => undef,
  'TotalConsumption' => undef,
  'BatteryChargeStatus' => undef,
  'BatteryMode' => undef,
  'GridConsumption' => undef,
  '__type' => 'LiveDataUI',
  'Timestamp' => undef,
  'EnvironmentTemperature' => undef
}

2020.09.30 19:59:24 4: SMAPortal - ##### extracting live data ####
2020.09.30 19:59:24 3: SMAPortal - data retrieved successfully.
2020.09.30 19:59:24 4: SMAPortal - Refresh - caller: "n.a.", callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1
2020.09.30 20:04:23 3: SMAPortal - ################################################################
2020.09.30 20:04:23 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.09.30 20:04:23 3: SMAPortal - ################################################################
2020.09.30 20:04:23 5: SMAPortal - SMAPortal version:          3.5.0
2020.09.30 20:04:23 4: SMAPortal - calculated maximum cycles:  10
2020.09.30 20:04:23 4: SMAPortal - calculated timeout:         3600
2020.09.30 20:04:23 3: SMAPortal - ignore provider "consumerMasterdata" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - ignore provider "consumerCurrentdata" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - ignore provider "consumerMonthData" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - ignore provider "consumerYearData" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - ignore provider "consumerDayData" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - ignore provider "forecastData" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - ignore provider "plantMasterData" - SMA Home Manager is not installed
2020.09.30 20:04:23 3: SMAPortal - Running data cycle: 1 of 10
2020.09.30 20:04:23 5: SMAPortal - Start operation with CookieLocation: ./log/SMAPortal_cookie.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.09.30 20:04:23 5: SMAPortal - data get: all, data set: none
2020.09.30 20:04:23 4: SMAPortal - Credentials read from RAM: mirco@koepe.org ********
2020.09.30 20:04:23 3: SMAPortal - User is already logged in.
2020.09.30 20:04:23 4: SMAPortal - Getting liveData
GET https://www.sunnyportal.com/Dashboard?t=1601424000000
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en-US;q=0.7,en;q=0.3
Host: www.sunnyportal.com
Referer: https://www.sunnyportal.com/FixedPages/HoManLive.aspx
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Cookie: collapseNavi_state=shown; .SunnyPortalFormsLogin=F1C158C4D31679EF5AF0717A09A3EF4E982AC0BA47476CB7F5819DCF7454BFB6AD047FF890704E202ED1F4A7BB2471009A59B093FE2C1557E2458734948E4865B55528B73B192C97A160FF40E809D5F5D7237C277F9CF4C8DA1FAF2CA6823A322BCF7939E9D5083972998DFE1206A16A9778553B080227234A17D0A3B537CC37431E9C863E87EFDD07FF13D5A2C79D40FF0CE67C7926AC810C9B15850EC3DF2D7A1C4AE41CA3FDB4572AE2DBA287924FED9DC79F05F6BA4FF108B1E3C64C7A68D0681F641C42E76338F6B2A774A684FEEA539181DF8D079D548CEB542FAE1500B3E771A09A1C60D3E36E2A418A203748C733A3BA1A5774016C0FB76ACF220FC625EAF30B9D95DAD3F461E69960F5B4BAD97FD9B7B18F32FCF7CCBF32FEF93FF09C830CCD5FDF7BDA0EEC1A08DA186B2560A9B159D692849F6AC46B474EB2191161CD1E2890BF5E85C6F8A0EC3300B113BE770BFE09A3BA1FAF24C894BC75DAB9572810E9811DB6FF318D3430AE27FD5EBDC6868960A8B27E446F4F43FAE692559878B2206CA325E6A822B5B6C431B244FD0088FA53E76CA27077F88FAF42F9E5A8317EFB95D9E97B8C40CAF9BAA6CFF2F979CA67A9C3455FB5D6A3F250437CEDDC0CC34406F436B0EA0C86EFDD265B8A0A471A965A9DE6F1B244D9EF9A43F39FBB786DC44C7CDF29B41F24DB57FDB5BB6234BE7B46D7A0FEA581954896EE12E72825C6D88397663C083E173F46FF647C2954D77C7DF5121C83A5FBFFA3E94811001A64CA33D653E46D18003426F3EF2DB38B9BEF1599D1D6E8F7B69D80499C76EEC7CA04; BIGipServerPool_P_SunnyPortal=3070535872.20480.0000; SunnyPortalPageCounter=0; ASP.NET_SessionId=zqw5ql4qmj1h11wtmjyx2x3c
Cookie2: $Version="1"
DNT: 1
X-Requested-With: XMLHttpRequest

(no content)
HTTP/1.1 200 OK
Cache-Control: private, s-maxage=0
Date: Wed, 30 Sep 2020 18:04:23 GMT
Server: Microsoft-IIS/10.0
Content-Length: 702
Content-Type: application/json; charset=utf-8
Client-Date: Wed, 30 Sep 2020 18:04:24 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /CN=*.sunnyportal.com
Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Warning: Peer certificate not verified
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2

{"__type":"LiveDataUI","Timestamp":null,"PV":null,"FeedIn":null,"GridConsumption":null,"DirectConsumption":null,"SelfConsumption":null,"SelfSupply":null,"TotalConsumption":null,"DirectConsumptionQuote":null,"SelfConsumptionQuote":null,"AutarkyQuote":null,"BatteryIn":null,"BatteryOut":null,"BatteryChargeStatus":null,"OperationHealth":null,"BatteryStateOfHealth":null,"ModuleTemperature":null,"EnvironmentTemperature":null,"WindSpeed":null,"Insolation":null,"BatteryMode":null,"InfoMessages":[],"WarningMessages"...
(+ 190 more bytes not shown)
2020.09.30 20:04:24 5: SMAPortal - Return Code: 200
2020.09.30 20:04:24 5: SMAPortal - liveData received:
{
  'SelfSupply' => undef,
  'AutarkyQuote' => undef,
  'SelfConsumptionQuote' => undef,
  'OperationHealth' => undef,
  'InfoMessages' => [],
  'DirectConsumptionQuote' => undef,
  'PV' => undef,
  'WarningMessages' => [],
  'BatteryOut' => undef,
  'ModuleTemperature' => undef,
  'ErrorMessages' => [
                       "Die Kommunikation mit Ihrem Wechselrichter ist zurzeit nicht m\x{f6}glich. Pr\x{fc}fen Sie die Internetverbindung des Wechselrichters und versuchen Sie es erneut. "
                     ],
  'DirectConsumption' => undef,
  'WindSpeed' => undef,
  'SelfConsumption' => undef,
  'BatteryStateOfHealth' => undef,
  'Info' => {},
  'BatteryIn' => undef,
  'Insolation' => undef,
  'FeedIn' => undef,
  'BatteryChargeStatus' => undef,
  'TotalConsumption' => undef,
  'GridConsumption' => undef,
  '__type' => 'LiveDataUI',
  'BatteryMode' => undef,
  'EnvironmentTemperature' => undef,
  'Timestamp' => undef
}
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 30 September 2020, 20:58:38
Nun, das SMA Portal liefert über diese Seite bei dir leider auch keine Daten aus.
Ich habe im SMAPortal Thread (https://forum.fhem.de/index.php/topic,102112.msg1088919.html#msg1088919) die User, die keinen Homemanager haben, gebeten die Version auch mal zu testen.Wie gesagt, es gibt dort auch einige User ohne HM bei denen der Datenabruf läuft.
Bei dir meldet das Portal nach wie vor dass der WR nicht erreicht wird:

'WarningMessages' => [
                         "Die aktuelle PV-Erzeugung konnte nicht vollst\x{e4}ndig ermittelt werden. Ein Wechselrichter hat nicht geantwortet."
                       ],
Das ist ja recht eindeutig. Welche Daten sollen da kommen wenn der WR nicht antwortet und es auch keinen HM und keinen Energymeter gibt.  :-\
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 16 Oktober 2020, 13:54:13
So HomeManager wurde installiert und schon kommen die Daten auch regelmäßig.
Danke Dir
Titel: Antw:SMAPortal Login failed
Beitrag von: coolice am 02 Dezember 2020, 20:29:13
Hallo, habe gerade ein
Update gemacht und der State steht auf Login failed. Habe die credentials erneut eingegeben aber trotzdem keine Änderung. Hat das noch jemand ?
Titel: Antw:SMAPortal Login failed
Beitrag von: DS_Starter am 02 Dezember 2020, 20:35:39
Schau hier -> https://forum.fhem.de/index.php/topic,102112.msg1106541.html#msg1106541