Hauptmenü

HTTPMOD Login

Begonnen von holzwurm83, 28 Oktober 2017, 16:35:28

Vorheriges Thema - Nächstes Thema

Black7king

Zitat von: holzwurm83 am 18 Dezember 2018, 19:02:56
So, dank der tollen Unterstützung von amenomade funktioniert das jetzt auch wieder. Bevor das Device angelegt wird sollte man zur Sicherheit prüfen, ob HTTPMOD auf dem aktuellen Stand ist. Das hat bei mir einige Probleme verursacht. 

Benutzername und Passwort sollte vorher eingesetzt werden.


defmod H2O_Anlage HTTPMOD https://wifi.ecowater.com/Dashboard/Index/Benutzername/AC000W000028486 600
attr H2O_Anlage userattr reading01Name reading01Regex reading02Name reading02Regex reading03Name reading03Regex reading04Name reading04Regex reading05Name reading05Regex reading06Name reading06Regex reading07Name reading07Regex requestHeader2 sid01IdRegex sid01URL sid02Data sid02IgnoreRedirects:0,1 sid02URL sid03Data sid03Header1 sid03Header2 sid03Header3 sid03URL
attr H2O_Anlage enableControlSet 1
attr H2O_Anlage enableCookies 1
attr H2O_Anlage reAuthAlways 1
attr H2O_Anlage reAuthRegex (class="login-item"|Bad Request)
attr H2O_Anlage reading01Name VerbrauchHeute
attr H2O_Anlage reading01Regex water_today".*?>([\d]+)
attr H2O_Anlage reading02Name Saltdate
attr H2O_Anlage reading02Regex device-info-saltDate.*?>([\d\/\.]+)
attr H2O_Anlage reading03Name Tagesdurchschnitt
attr H2O_Anlage reading03Regex <h1 id="water_avg".*?>([\d]+)
attr H2O_Anlage reading04Name Verfügbar
attr H2O_Anlage reading04Regex <h1 id="water_avail".*?>([\d]+)
attr H2O_Anlage reading05Name Salzstand
attr H2O_Anlage reading05Regex <span class="irs-single" style="left:.*?>([\d]+)
attr H2O_Anlage reading06Name Regeneration
attr H2O_Anlage reading06Regex device-info-lastRecharge">(.*?)
attr H2O_Anlage reading07Name Salzstand
attr H2O_Anlage reading07Regex SaltLevelCurrent.*?value=\"([\d]+)
attr H2O_Anlage requestHeader2 Cache-Control: no-cache
attr H2O_Anlage room Keller
attr H2O_Anlage sid01IdRegex type="hidden" value="(.*?)" />
attr H2O_Anlage sid01URL https://wifi.ecowater.com/Dashboard/Index/Benutzername/AC000W000028486
attr H2O_Anlage sid02Data __RequestVerificationToken=$sid&Email=Benutzername&Password=passwort&Remember=false
attr H2O_Anlage sid02IgnoreRedirects 1
attr H2O_Anlage sid02URL https://wifi.ecowater.com/Site/Login?returnUrl=/Dashboard/Index/Benutzername/AC000W000028486
attr H2O_Anlage sid03Data dsn=AC000W000028486
attr H2O_Anlage sid03Header1 Referer: https://wifi.ecowater.com/Dashboard/Index/Benutzername/AC000W000028486
attr H2O_Anlage sid03Header2 X-Requested-With: XMLHttpRequest
attr H2O_Anlage sid03Header3 User-Agent: Mozilla/5.0 Gecko/20100101 Firefox/56.0
attr H2O_Anlage sid03URL https://wifi.ecowater.com/Dashboard/UpdateFrequentData


Wo muss ich Überall Benutzername und Passwort ersetzen habe 5 mal Benutzername und einmal Passwort gefunden ist das richtig?

holzwurm83

Ja, das ist richtig


Gesendet von iPhone mit Tapatalk
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

Black7king

Zitat von: holzwurm83 am 19 Dezember 2018, 21:04:49
Ja, das ist richtig


Gesendet von iPhone mit Tapatalk

Jetzt noch eine Frage Benutzername ist doch die eMail Adresse oder?

holzwurm83

Richtig


Gesendet von iPhone mit Tapatalk
- Fhem auf einem MacMini Server
- CUL; HMLAN; CUNO2 für FS20; HM-Wired RS485 LAN Gateway
- HMW_Sen_SC_12_FM; HMW_LC_Sw2_DR; HMW_LC_Bl1_DR; HMW_IO_12_Sw7; HMW_IO_12_Sw14_DR; HMW_IO_12_FM; HBW_1W_T10
- HM-TC-IT-WM-W-EU; HM-CC-RT-DN

SW7

#79
Hallo, ich bastle jetzt schon eine ganze weile am Login zur Tigo Seite rum und komme nicht weiter.
Zur erfolgreichen Anmeldung muss ich einen Teil aus dem Cookie, oder besser einen Token, zusammen mit den Anmeldedaten übergeben.
Das konnte ich zwischenzeitig verifizieren.
Und da stehe ich auf dem Schlauch.
Wie speichere ich den Cookie zwischen, um Ihn dann wieder zu verwenden?
Muss ich dann auch noch Splitten, oder kann ich gezielt zugreifen?

Ich habe folgenden Header im List meines Devices:


header
Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=8vkmjklimripi0ef7tcuqk4jr0; YII_CSRF_TOKEN=9538fe12b5b5732a615e9e8fba44fd5b5a15ffe2; lang=English

bzw. folgende HTTPCookieHashs:

HTTPCookieHash:
     PHPSESSID;/:
       Name       PHPSESSID
       Options    path=/
       Path       /
       Value      l6up69oa11qnf5po5e2vbrc9o1
     YII_CSRF_TOKEN;/:
       Name       YII_CSRF_TOKEN
       Options    path=/
       Path       /
       Value      9538fe12b5b5732a615e9e8fba44fd5b5a15ffe2


mein sid1Data soll so aussehen:
attr Solaranlage sid1Data YII_CSRF_TOKEN=9538fe12b5b5732a615e9e8fba44fd5b5a15ffe2&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=
nur eben mit dynamisch generiertem (jeweils gültigem) Token.

Kann mir jemand auf die Sprünge helfen?

amenomade

Zitat von: SW7 am 14 Januar 2019, 01:52:41
Wie speichere ich den Cookie zwischen, um Ihn dann wieder zu verwenden?
Grundsätzlich einfach mit attr Solaranlage enableCookies 1
Den Cookie brauchst Du dann in den Headers oder sid1Data nicht.

Um weiter zu helfen brauche ich ein vollständiges "list Solaranlage" und einen Logauszug mit verbose 5 (ggf. User/Passwörter anonymisieren).
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

SW7

Hi,

hier der List:
Internals:
   .getList   
   .setList   interval reread:noArg stop:noArg start:noArg upgradeAttributes:noArg storeKeyValue
   .updateRequestHash 1
   BUSY       0
   CFGFN     
   DEF        https://installations.tigoenergy.com/base/main/status/view/sysid/38067 300
   Interval   300
   JSONEnabled 1
   LASTSEND   1547494398.83294
   LastAuthTry 2019-01-14 20:08:05
   MainURL    https://installations.tigoenergy.com/base/main/status/view/sysid/38067
   ModuleVersion 3.5.4 - 9.11.2018
   NAME       Solaranlage
   NR         17332
   STATE      ???
   TRIGGERTIME 1547494602.61066
   TRIGGERTIME_FMT 2019-01-14 20:36:42
   TYPE       HTTPMOD
   addr       https://installations.tigoenergy.com:443
   auth       0
   buf       
   code       200
   compress   1
   conn       
   data       
   displayurl https://installations.tigoenergy.com/base/main/status/view/sysid/38067
   header     Cookie: PHPSESSID=c2t5def17sedd7at4tu4lukv74; YII_CSRF_TOKEN=49b157fb1e1e96f6a4652eec7dca2538f2f1ec65; _identity=%5B40796%2C%22ug9TXtssSXYZ0g5k7Kd8L8xkZALyn68NoxR1CgQfIKw5.FA0ss4pExk5%5C%2FeYoSEkwzdDa6sgwQZ7CejDfz16h7f.4I848MV1%5C%2FuisagLvrhsg3UxUJH7eQjbL6gUQu98Bl%22%2C%225184000%22%5D; lang=German; username=**USERNAME-ALIAS -> ist nicht die Emailadresse aus der Anmeldung**
   host       installations.tigoenergy.com
   httpheader HTTP/1.1 200 OK
Date: Mon, 14 Jan 2019 19:33:19 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=German; expires=Thu, 09-Jan-2020 19:33:19 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 3391
Connection: close
Content-Type: text/html; charset=UTF-8
   httpversion 1.1
   hu_blocking 0
   hu_filecount 6
   hu_port    443
   hu_portSfx
   ignoreredirects 1
   loglevel   4
   path       /base/main/status/view/sysid/38067
   protocol   https
   redirects  0
   timeout    2
   url        https://installations.tigoenergy.com/base/main/status/view/sysid/38067
   value      0
   .attraggr:
   .attrminint:
   .readingParseList:
     01
     02
     03
     04
     05
     06
     07
   HTTPCookieHash:
     PHPSESSID;/:
       Name       PHPSESSID
       Options    path=/
       Path       /
       Value      c2t5def17sedd7at4tu4lukv74
     YII_CSRF_TOKEN;/:
       Name       YII_CSRF_TOKEN
       Options    path=/
       Path       /
       Value      49b157fb1e1e96f6a4652eec7dca2538f2f1ec65
     _identity;/:
       Name       _identity
       Options    path=/
       Path       /
       Value      %5B40796%2C%22ug9TXtssSXYZ0g5k7Kd8L8xkZALyn68NoxR1CgQfIKw5.FA0ss4pExk5%5C%2FeYoSEkwzdDa6sgwQZ7CejDfz16h7f.4I848MV1%5C%2FuisagLvrhsg3UxUJH7eQjbL6gUQu98Bl%22%2C%225184000%22%5D
     lang;/:
       Name       lang
       Options    expires=Thu, 09-Jan-2020 19:33:19 GMT; Max-Age=31104000; path=/
       Path       /
       Value      German
     username;/:
       Name       username
       Options    path=/
       Path       /
       Value      **USERNAME-ALIAS -> ist nicht die Emailadresse aus der Anmeldung**
   QUEUE:
REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        https://installations.tigoenergy.com/base/main/status/view/sysid/38067
     value      0
   sslargs:
Attributes:
   dontRequeueAfterAuth 1
   enableControlSet 1
   enableCookies 1
   extractAllJSON 1
   handleRedirects 1
   httpVersion 1.1
   reAuthRegex password
   reading01Name YII_CSRF_TOKEN
   reading01Regex id=\"login_form\".action=\"/base/login/login?skin=\".method=\"post\">\s*<input type=\"hidden\".value=\"(.*)\".name="YII_CSRF_TOKEN
   reading02Name B1
   reading02RegOpt s
   reading02Regex <td>B1<\/td>\s*<td.nowrap>(.*).<\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)\s*<\/td>
   reading03Name B2
   reading03RegOpt s
   reading03Regex <td>B2<\/td>\s*<td.nowrap>(.*).<\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)\s*<\/td>
   reading04Name B3
   reading04RegOpt s
   reading04Regex <td>B3<\/td>\s*<td.nowrap>(.*).<\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)\s*<\/td>
   reading05Name B4
   reading05RegOpt s
   reading05Regex <td>B4<\/td>\s*<td.nowrap>(.*).<\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)\s*<\/td>
   reading06Name B5
   reading06RegOpt s
   reading06Regex <td>B5<\/td>\s*<td.nowrap>(.*).<\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)\s*<\/td>
   reading07Name B6
   reading07RegOpt s
   reading07Regex <td>B6<\/td>\s*<td.nowrap>(.*).<\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>\s*(.*)<\/td>
   room       Solaranlage
   sid1Data   YII_CSRF_TOKEN=49b157fb1e1e96f6a4652eec7dca2538f2f1ec65&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=
   sid1Header1 Content-Type: application/x-www-form-urlencoded
   sid1Header2 Accept: text/html
   sid1Header3 Accept: application/xhtml+xml
   sid1Header4 Accept: application/xml
   sid1URL    https://installations.tigoenergy.com/base/login/login
   userattr   reading01Name reading01Regex reading02Name reading02RegOpt reading02Regex reading03Name reading03RegOpt reading03Regex reading04Name reading04RegOpt reading04Regex reading05Name reading05RegOpt reading05Regex reading06Name reading06RegOpt reading06Regex reading07Name reading07RegOpt reading07Regex reading1Name reading1RegOpt reading1Regex reading2Name reading2RegOpt reading2Regex reading3Name reading3RegOpt reading3Regex requestHeader1 sid1Data sid1Header1 sid1Header2 sid1Header3 sid1Header4 sid1Header5 sid1URL
   verbose    5


Bei jedem Aufruf der Seite wird neben dem Cookie auch ein Token generiert. Dieser Token muss bei sid1Data mitgegeben werden. So wie ich das mal von Hand eingetragen haben. Da der Token aber regelmäßig wechselt, sollte idealerweise der Token generisch in sid1Data eingefügt werden.
Im Formular Feld ist es ein verstecktes Input Feld.

Nach dem händischen/statischen setzen in sid1Data hat der Login einwandfrei funktioniert.

Ich habe mal versucht mit reading01Name den Token auszulesen. Aber da stimmt wohl mit dem Regex noch was nicht.
2019.01.14 20:46:45 4: Solaranlage: Read response to update did not match YII_CSRF_TOKEN

reading01Regex id=\"login_form\".action=\"/base/login/login?skin=\".method=\"post\">\s*<input type=\"hidden\".value=\"(.*)\".name="YII_CSRF_TOKEN



amenomade

Mit sid01RegexIdRegex kannst Du nw. den Token fangen, und dann mit $sid weiter nutzen.

IdRegex könnte etwas wie :
(YII_CSRF_TOKEN=.*?);sein
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

SW7

Hi,

hier mal ein Log vom fehlerhaften Verbindungsaufbau.
Habe deinen Vorschlag mal versucht einzubauen, doch hat so leider nicht geklappt:

2019.01.14 22:24:35 5: Tigo_Opti: set called with reread
2019.01.14 22:24:35 4: Tigo_Opti: GetUpdate called (reread)
2019.01.14 22:24:35 4: Tigo_Opti: AddToQueue adds update, initial queue len: 0
2019.01.14 22:24:35 5: Tigo_Opti: AddToQueue adds type update to URL https://installations.tigoenergy.com/base/main/status/view/sysid/38067, no data, no headers, retry 0
2019.01.14 22:24:35 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.14 22:24:35 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value nbqjubu1vjaccok8qk8j9e2u61 (key PHPSESSID;/, destination path is /base/main/status/view/sysid/38067)
2019.01.14 22:24:35 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 08c2ac74dae5ccd1d8f10f1233da85be313701d7 (key YII_CSRF_TOKEN;/, destination path is /base/main/status/view/sysid/38067)
2019.01.14 22:24:35 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/main/status/view/sysid/38067)
2019.01.14 22:24:35 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
2019.01.14 22:24:35 4: Tigo_Opti: HandleSendQueue sends request type update to URL https://installations.tigoenergy.com/base/main/status/view/sysid/38067, No Data,
header: Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
timeout 2
2019.01.14 22:24:35 5: HttpUtils url=https://installations.tigoenergy.com/base/main/status/view/sysid/38067
2019.01.14 22:24:35 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.14 22:24:35 5: HttpUtils request header:
GET /base/main/status/view/sysid/38067 HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.14 22:24:36 4: https://installations.tigoenergy.com/base/main/status/view/sysid/38067: HTTP response code 302
2019.01.14 22:24:36 5: HttpUtils https://installations.tigoenergy.com/base/main/status/view/sysid/38067: Got data, length: 0
2019.01.14 22:24:36 5: HttpUtils response header:
HTTP/1.1 302 Found
Date: Mon, 14 Jan 2019 21:24:35 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Location: https://installations.tigoenergy.com/base/login/login
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.14 22:24:36 4: Tigo_Opti: Read callback: request type was update retry 0, body empty
2019.01.14 22:24:36 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.14 22:24:36 5: Tigo_Opti: ExtractSid called, context reading, num
2019.01.14 22:24:36 4: Tigo_Opti: checking for redirects, code=302, ignore=0
2019.01.14 22:24:36 4: Tigo_Opti: https://installations.tigoenergy.com/base/main/status/view/sysid/38067: Redirect (1) to https://installations.tigoenergy.com/base/login/login
2019.01.14 22:24:36 4: Tigo_Opti: AddToQueue adds update, initial queue len: 0, prio
2019.01.14 22:24:36 5: Tigo_Opti: AddToQueue prepends type update to URL https://installations.tigoenergy.com/base/login/login, no data, no headers, retry 0
2019.01.14 22:24:36 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.14 22:24:36 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value nbqjubu1vjaccok8qk8j9e2u61 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.14 22:24:36 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 08c2ac74dae5ccd1d8f10f1233da85be313701d7 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.14 22:24:36 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.14 22:24:36 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
2019.01.14 22:24:36 4: Tigo_Opti: HandleSendQueue sends request type update to URL https://installations.tigoenergy.com/base/login/login, No Data,
header: Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
timeout 2
2019.01.14 22:24:36 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.14 22:24:36 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.14 22:24:37 5: HttpUtils request header:
GET /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.14 22:24:37 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 200
2019.01.14 22:24:37 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 5881
2019.01.14 22:24:37 5: HttpUtils response header:
HTTP/1.1 200 OK
Date: Mon, 14 Jan 2019 21:24:37 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Thu, 09-Jan-2020 21:24:37 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2275
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.14 22:24:37 4: Tigo_Opti: Read callback: request type was update retry 0,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=IE8" />
    <link rel="stylesheet" type="text/css" href="/base/css/login_template.css?v1" />
<script type="text/javascript" src="/base/assets/36278b34/jquery.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

    function selectLink(id) {
        //Changes selected link
        var link = document.getElementById(id);
        link.removeAttribute('href');
        link.className += ' selected';
        var menuId = id + '_menu';
        if (link.parentNode.className == 'submenu hidemenu') {
            link.parentNode.className = 'submenu'; //makes submenu visible
            var parentName = link.parentNode.id.substring(0, link.parentNode.id.length - 5);
            document.getElementById(parentName).className += ' selected';
        }
        else {
            if (document.getElementById(menuId)) {
                document.getElementById(menuId).className = 'submenu';
            }
        }
    }

/*]]>*/
</script>
<title>User Login - Tigo Energy</title>
                <link rel="icon" href="/base/images/favicon.ico" type="image/ico" />
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//stats.tigoenergy.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', 2]);
            var d   = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type  = 'text/javascript';
            g.async = true;
            g.defer = true;
            g.src   = u + 'piwik.js';
            s.parentNode.insertBefore(g, s);
        })();
    </script>
</head>
<body onload='if(document.form1) document.form1.username.focus();'>
<div id="container">
    <div id="header">
                <span id="logo">
                    <a href="http://www.tigoenergy.com"><img src="/base/images/small_tigo_transparent.png" alt="logo" border="0" /></a>
                </span>
        <div style="float:right;padding-right:10px;padding-top:10px;">
            <select id="locale_select" style="margin-top:5px;" onchange="js:window.location = '/base/login/login?skin=' + '&amp;lang=' + $(this).val();" name="locale_select">
<option value="0" selected="selected">English (North America)</option>
<option value="6">中文</option>
<option value="7">Čech</option>
<option value="4">Français</option>
<option value="1">Deutsch</option>
<option value="3">Italiano</option>
<option value="2">日本語</option>
<option value="8">한국인</option>
<option value="5">Español</option>
<option value="9">ελληνικά</option>
</select>        </div>
    </div>
    <div id="navcontainer">
        <div style="clear:both"></div>
        <div id="maincontent"><style>
    .prominent-href {
        font-size: 14px;
        display: block;
        text-decoration: underline !important;
        margin-bottom: 5px !important;
    }
</style>
<div id="banner_cont">
    <div style="width:322px;">&nbsp;</div>
            <div>
            <a href="http://www.tigoenergy.com/site.php?13429"><img style="border:none;margin-left:4px;" src="/login/view_existing_tigo_installations.jpg" width="322" height="123" border="0" /></a>
        </div>
        <div style="margin-left:5px;">
            <a style="background-image:none;" href="http://www.tigoenergy.com/why-tigo/case-studies/"><img style="border: none;" src="/login/web_banner_case_studies.png" width="322" height="120" /></a>
        </div>
    </div>

<div id="form_cont" style="margin-left:10px;">
    <form name="form1" style="border-left:1px solid #d1d1d1;" id="login_form" action="/base/login/login?skin=" method="post">
<input type="hidden" value="08c2ac74dae5ccd1d8f10f1233da85be313701d7" name="YII_CSRF_TOKEN" />    <a class="prominent-href" href="/base/account/register?skin=">New Installer? Sign Up</a><br>
    <p class="form_label"><label for="username">Login ID</label></p>
    <input id="username" name="Users[login]" type="text" maxlength="64" />    <br>
    <br>
    <br>
    <p class="form_label">
        <label for="password" style="white-space:nowrap">Password</label></p>
    <input id="password" autocomplete="off" name="Users[password]" type="password" />    <br>
    <br>
        <a class="prominent-href" href="/base/account/password?skin=">Forgot Password</a>
    <a class="prominent-href" href="/base/account/forgotloginid?skin=">Forgot Login ID</a>
    <br>
    <div style="color:red;"></div>
    <br>
    <input name="Submit" id="orange_btn" type="submit" value="Login" />    <input type="hidden" name="type" id="type" />    </form></div>
</div>
    </div>
    <div id="footer">
        <table width=100% border="0" cellspacing="5" cellpadding="0">
            <tr style="font-size:1.1em;">
                <td style="text-align: left; padding: 10px 0 0 20px;">
                    Optimized by Tigo. Copyright &copy; 2007-2019 Tigo Energy, Inc. All Rights Reserved                </td>
                <td style="text-align: center; padding: 10px 0 0 20px; ">
                                    </td>
                <td style="text-align: right; padding: 10px 20px 0 0;">
                    <a href="http://www.tigoenergy.com/privacy-policy/">
                        Privacy Policy                    </a>
                </td>
            </tr>
        </table>
    </div>
    <div id="footer_border">&nbsp;</div>
</div>
<noscript><p><img src="//stats.tigoenergy.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
</body>
</html>

2019.01.14 22:24:37 3: Tigo_Opti: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at (eval 31404) line 1.

2019.01.14 22:24:37 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.14 22:24:37 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert deleted Rest expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
2019.01.14 22:24:37 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert English Rest expires=Thu, 09-Jan-2020 21:24:37 GMT; Max-Age=31104000; path=/
2019.01.14 22:24:37 5: Tigo_Opti: ExtractSid called, context reading, num
2019.01.14 22:24:37 4: Tigo_Opti: checking for redirects, code=200, ignore=0
2019.01.14 22:24:37 4: Tigo_Opti: no redirects to handle
2019.01.14 22:24:37 5: Tigo_Opti: CheckAuth is checking buffer with ReAuthRegex password
2019.01.14 22:24:37 4: Tigo_Opti: CheckAuth decided new authentication required
2019.01.14 22:24:37 4: Tigo_Opti: Auth called with Steps: 1
2019.01.14 22:24:37 4: Tigo_Opti: AddToQueue adds auth1, initial queue len: 0, prio
2019.01.14 22:24:37 5: Tigo_Opti: AddToQueue prepends type auth1 to URL https://installations.tigoenergy.com/base/login/login, data YII_CSRF_TOKEN=$sid&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=, header Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml, retry 0
2019.01.14 22:24:37 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.14 22:24:37 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value nbqjubu1vjaccok8qk8j9e2u61 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.14 22:24:37 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 08c2ac74dae5ccd1d8f10f1233da85be313701d7 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.14 22:24:37 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.14 22:24:37 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
2019.01.14 22:24:37 4: Tigo_Opti: HandleSendQueue sends request type auth1 to URL https://installations.tigoenergy.com/base/login/login,
data: YII_CSRF_TOKEN=$sid&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=,
header: Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
timeout 2
2019.01.14 22:24:37 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.14 22:24:37 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.14 22:24:38 5: HttpUtils request header:
POST /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
Content-Length: 106

2019.01.14 22:24:38 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 302
2019.01.14 22:24:38 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 0
2019.01.14 22:24:38 5: HttpUtils response header:
HTTP/1.1 302 Found
Date: Mon, 14 Jan 2019 21:24:38 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Location: https://installations.tigoenergy.com/base/login/login
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.14 22:24:38 4: Tigo_Opti: Read callback: request type was auth1 retry 0, body empty
2019.01.14 22:24:38 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.14 22:24:38 5: Tigo_Opti: ExtractSid called, context sid, num 1
2019.01.14 22:24:38 5: Tigo_Opti: ExtractSid could not match buffer to IdRegex (YII_CSRF_TOKEN=.*?);
2019.01.14 22:24:38 4: Tigo_Opti: checking for redirects, code=302, ignore=0
2019.01.14 22:24:38 4: Tigo_Opti: https://installations.tigoenergy.com/base/login/login: Redirect (1) to https://installations.tigoenergy.com/base/login/login
2019.01.14 22:24:38 4: Tigo_Opti: AddToQueue adds auth1, initial queue len: 0, prio
2019.01.14 22:24:38 5: Tigo_Opti: AddToQueue prepends type auth1 to URL https://installations.tigoenergy.com/base/login/login, no data, header Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml, retry 0
2019.01.14 22:24:38 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.14 22:24:38 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value nbqjubu1vjaccok8qk8j9e2u61 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.14 22:24:38 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 08c2ac74dae5ccd1d8f10f1233da85be313701d7 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.14 22:24:38 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.14 22:24:38 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
2019.01.14 22:24:38 4: Tigo_Opti: HandleSendQueue sends request type auth1 to URL https://installations.tigoenergy.com/base/login/login, No Data,
header: Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
timeout 2
2019.01.14 22:24:38 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.14 22:24:38 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.14 22:24:39 5: HttpUtils request header:
GET /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
Content-Length: 0

2019.01.14 22:24:39 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 200
2019.01.14 22:24:39 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 5881
2019.01.14 22:24:39 5: HttpUtils response header:
HTTP/1.1 200 OK
Date: Mon, 14 Jan 2019 21:24:39 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Thu, 09-Jan-2020 21:24:39 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2275
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.14 22:24:39 4: Tigo_Opti: Read callback: request type was auth1 retry 0,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=IE8" />
    <link rel="stylesheet" type="text/css" href="/base/css/login_template.css?v1" />
<script type="text/javascript" src="/base/assets/36278b34/jquery.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

    function selectLink(id) {
        //Changes selected link
        var link = document.getElementById(id);
        link.removeAttribute('href');
        link.className += ' selected';
        var menuId = id + '_menu';
        if (link.parentNode.className == 'submenu hidemenu') {
            link.parentNode.className = 'submenu'; //makes submenu visible
            var parentName = link.parentNode.id.substring(0, link.parentNode.id.length - 5);
            document.getElementById(parentName).className += ' selected';
        }
        else {
            if (document.getElementById(menuId)) {
                document.getElementById(menuId).className = 'submenu';
            }
        }
    }

/*]]>*/
</script>
<title>User Login - Tigo Energy</title>
                <link rel="icon" href="/base/images/favicon.ico" type="image/ico" />
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//stats.tigoenergy.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', 2]);
            var d   = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type  = 'text/javascript';
            g.async = true;
            g.defer = true;
            g.src   = u + 'piwik.js';
            s.parentNode.insertBefore(g, s);
        })();
    </script>
</head>
<body onload='if(document.form1) document.form1.username.focus();'>
<div id="container">
    <div id="header">
                <span id="logo">
                    <a href="http://www.tigoenergy.com"><img src="/base/images/small_tigo_transparent.png" alt="logo" border="0" /></a>
                </span>
        <div style="float:right;padding-right:10px;padding-top:10px;">
            <select id="locale_select" style="margin-top:5px;" onchange="js:window.location = '/base/login/login?skin=' + '&amp;lang=' + $(this).val();" name="locale_select">
<option value="0" selected="selected">English (North America)</option>
<option value="6">中文</option>
<option value="7">Čech</option>
<option value="4">Français</option>
<option value="1">Deutsch</option>
<option value="3">Italiano</option>
<option value="2">日本語</option>
<option value="8">한국인</option>
<option value="5">Español</option>
<option value="9">ελληνικά</option>
</select>        </div>
    </div>
    <div id="navcontainer">
        <div style="clear:both"></div>
        <div id="maincontent"><style>
    .prominent-href {
        font-size: 14px;
        display: block;
        text-decoration: underline !important;
        margin-bottom: 5px !important;
    }
</style>
<div id="banner_cont">
    <div style="width:322px;">&nbsp;</div>
            <div>
            <a href="http://www.tigoenergy.com/site.php?13429"><img style="border:none;margin-left:4px;" src="/login/view_existing_tigo_installations.jpg" width="322" height="123" border="0" /></a>
        </div>
        <div style="margin-left:5px;">
            <a style="background-image:none;" href="http://www.tigoenergy.com/why-tigo/case-studies/"><img style="border: none;" src="/login/web_banner_case_studies.png" width="322" height="120" /></a>
        </div>
    </div>

<div id="form_cont" style="margin-left:10px;">
    <form name="form1" style="border-left:1px solid #d1d1d1;" id="login_form" action="/base/login/login?skin=" method="post">
<input type="hidden" value="08c2ac74dae5ccd1d8f10f1233da85be313701d7" name="YII_CSRF_TOKEN" />    <a class="prominent-href" href="/base/account/register?skin=">New Installer? Sign Up</a><br>
    <p class="form_label"><label for="username">Login ID</label></p>
    <input id="username" name="Users[login]" type="text" maxlength="64" />    <br>
    <br>
    <br>
    <p class="form_label">
        <label for="password" style="white-space:nowrap">Password</label></p>
    <input id="password" autocomplete="off" name="Users[password]" type="password" />    <br>
    <br>
        <a class="prominent-href" href="/base/account/password?skin=">Forgot Password</a>
    <a class="prominent-href" href="/base/account/forgotloginid?skin=">Forgot Login ID</a>
    <br>
    <div style="color:red;"></div>
    <br>
    <input name="Submit" id="orange_btn" type="submit" value="Login" />    <input type="hidden" name="type" id="type" />    </form></div>
</div>
    </div>
    <div id="footer">
        <table width=100% border="0" cellspacing="5" cellpadding="0">
            <tr style="font-size:1.1em;">
                <td style="text-align: left; padding: 10px 0 0 20px;">
                    Optimized by Tigo. Copyright &copy; 2007-2019 Tigo Energy, Inc. All Rights Reserved                </td>
                <td style="text-align: center; padding: 10px 0 0 20px; ">
                                    </td>
                <td style="text-align: right; padding: 10px 20px 0 0;">
                    <a href="http://www.tigoenergy.com/privacy-policy/">
                        Privacy Policy                    </a>
                </td>
            </tr>
        </table>
    </div>
    <div id="footer_border">&nbsp;</div>
</div>
<noscript><p><img src="//stats.tigoenergy.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
</body>
</html>

2019.01.14 22:24:39 3: Tigo_Opti: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at (eval 31407) line 1.

2019.01.14 22:24:39 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.14 22:24:39 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert deleted Rest expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
2019.01.14 22:24:39 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert English Rest expires=Thu, 09-Jan-2020 21:24:39 GMT; Max-Age=31104000; path=/
2019.01.14 22:24:39 5: Tigo_Opti: ExtractSid called, context sid, num 1
2019.01.14 22:24:39 5: Tigo_Opti: ExtractSid could not match buffer to IdRegex (YII_CSRF_TOKEN=.*?);
2019.01.14 22:24:39 4: Tigo_Opti: checking for redirects, code=200, ignore=0
2019.01.14 22:24:39 4: Tigo_Opti: no redirects to handle


hier das attr zum Device:
attr Tigo_Opti sidIdRegex (YII_CSRF_TOKEN=.*?);

Bitte nicht wundern, habe zum test die Devices "geklont". sind aber alle identisch, bis auf die verschiedenen Readings.
:-)

amenomade

Bitte auch ein "list" des HTTPMOD Device
Ich vermute, Du musst ein zweistufiges Authentifizierungsverfahren implementieren.

Zuerst die login Seite aufrufen und den sid fangen.
Dann diese sid im 2. Stufe benutzen.

Anscheinend findet er aber den Token nicht.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

SW7

Hi,

hier der List vom Device:

Internals:
   .getList   
   .setList   interval reread:noArg stop:noArg start:noArg upgradeAttributes:noArg storeKeyValue
   .updateReadingList 1
   .updateRequestHash 1
   BUSY       0
   CHANGED   
   DEF        https://installations.tigoenergy.com/base/main/status/view/sysid/38067 300
   Interval   300
   JSONEnabled 1
   LASTSEND   1547506457.59967
   LastAuthTry 2019-01-14 23:54:16
   MainURL    https://installations.tigoenergy.com/base/main/status/view/sysid/38067
   ModuleVersion 3.5.4 - 9.11.2018
   NAME       Tigo_Opti
   NR         316
   STATE      ???
   TRIGGERTIME 1547575463.78943
   TRIGGERTIME_FMT 2019-01-15 19:04:23
   TYPE       HTTPMOD
   addr       https://installations.tigoenergy.com:443
   auth       0
   buf       
   code       200
   compress   1
   conn       
   data       
   displayurl https://installations.tigoenergy.com/base/login/login
   header     Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=nbqjubu1vjaccok8qk8j9e2u61; YII_CSRF_TOKEN=08c2ac74dae5ccd1d8f10f1233da85be313701d7; lang=English
   host       installations.tigoenergy.com
   httpheader HTTP/1.1 200 OK
Date: Mon, 14 Jan 2019 22:54:18 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Thu, 09-Jan-2020 22:54:18 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2275
Connection: close
Content-Type: text/html; charset=UTF-8
   httpversion 1.1
   hu_blocking 0
   hu_filecount 180
   hu_port    443
   hu_portSfx
   ignoreredirects 1
   loglevel   4
   path       /base/login/login
   protocol   https
   redirects  0
   timeout    2
   url        https://installations.tigoenergy.com/base/login/login
   value      0
   HTTPCookieHash:
     PHPSESSID;/:
       Name       PHPSESSID
       Options    path=/
       Path       /
       Value      nbqjubu1vjaccok8qk8j9e2u61
     YII_CSRF_TOKEN;/:
       Name       YII_CSRF_TOKEN
       Options    path=/
       Path       /
       Value      08c2ac74dae5ccd1d8f10f1233da85be313701d7
     lang;/:
       Name       lang
       Options    expires=Thu, 09-Jan-2020 22:54:18 GMT; Max-Age=31104000; path=/
       Path       /
       Value      English
   QUEUE:
   READINGS:
   REQUEST:
     data       
     header     Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
     ignoreredirects 0
     retryCount 0
     type       auth1
     url        https://installations.tigoenergy.com/base/login/login
     value      0
   sslargs:
Attributes:
   disable    1
   dontRequeueAfterAuth 1
   enableControlSet 1
   enableCookies 1
   extractAllJSON 1
   handleRedirects 1
   httpVersion 1.1
   reAuthRegex password
   reading01Name YII_CSRF_TOKEN
   reading01Regex <input.type="hidden".value="(.*)".name="YII_CSRF_TOKEN"
   reading02Name A18
   reading02Regex <td>A18<\/td>\s*<td.nowrap>(.*) <\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<
   room       Solaranlage
   sid1Data   YII_CSRF_TOKEN=$sid&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=
   sid1Header1 Content-Type: application/x-www-form-urlencoded
   sid1Header2 Accept: text/html
   sid1Header3 Accept: application/xhtml+xml
   sid1Header4 Accept: application/xml
   sid1URL    https://installations.tigoenergy.com/base/login/login
   sidIdRegex \s*YII_CSRF_TOKEN=(.*)?.lang
   userattr   reading01Name reading01Regex reading01XPath reading02Name reading02RegOpt reading02Regex reading1Name reading1RegOpt reading1Regex reading2Name reading2RegOpt reading2Regex requestHeader1 sid1Data sid1Header1 sid1Header2 sid1Header3 sid1Header4 sid1Header5 sid1URL sidIdRegex
   verbose    5


In der Tat, findet er den Token nicht.
Habe schon ein wenig mit getIdRegex experimentiert, und auch mit dem Versuch den Token aus der Anmeldeseite, also dem hidden Inputfeld auszulesen. Aber wohl was falsch gemacht.
Aktuell mache ich scheinbar nur eine Anmeldung und nicht mehrere Schritte.

amenomade

sidURL    https://installations.tigoenergy.com/base/login/login
sid1IdRegex (YII_CSRF_TOKEN=.*?);
sid2Data  $sid&Users[login]=user@domain.de&Users[password]=password&Submit=Login&type=


Dann wieder ein "list" und die Log nach einem reread
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

SW7

Hi,

vielen Dank erstmal für Deine Unterstützung.  :)

hier das Log:
2019.01.16 00:05:49 5: Tigo_Opti: set called with reread
2019.01.16 00:05:49 4: Tigo_Opti: GetUpdate called (reread)
2019.01.16 00:05:49 4: Tigo_Opti: AddToQueue adds update, initial queue len: 0
2019.01.16 00:05:49 5: Tigo_Opti: AddToQueue adds type update to URL https://installations.tigoenergy.com/base/main/status/view/sysid/38067, no data, no headers, retry 0
2019.01.16 00:05:49 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.16 00:05:49 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value l97s4nbkb75bd1m4edsqvrdf82 (key PHPSESSID;/, destination path is /base/main/status/view/sysid/38067)
2019.01.16 00:05:49 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 7ba17f279d87c71816b0b1ca486fbfd6e42e2682 (key YII_CSRF_TOKEN;/, destination path is /base/main/status/view/sysid/38067)
2019.01.16 00:05:49 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/main/status/view/sysid/38067)
2019.01.16 00:05:49 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
2019.01.16 00:05:49 4: Tigo_Opti: HandleSendQueue sends request type update to URL https://installations.tigoenergy.com/base/main/status/view/sysid/38067, No Data,
header: Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
timeout 2
2019.01.16 00:05:49 5: HttpUtils url=https://installations.tigoenergy.com/base/main/status/view/sysid/38067
2019.01.16 00:05:49 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.16 00:05:50 5: HttpUtils request header:
GET /base/main/status/view/sysid/38067 HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.16 00:05:50 4: https://installations.tigoenergy.com/base/main/status/view/sysid/38067: HTTP response code 302
2019.01.16 00:05:50 5: HttpUtils https://installations.tigoenergy.com/base/main/status/view/sysid/38067: Got data, length: 0
2019.01.16 00:05:50 5: HttpUtils response header:
HTTP/1.1 302 Found
Date: Tue, 15 Jan 2019 23:05:50 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Location: https://installations.tigoenergy.com/base/login/login
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.16 00:05:50 4: Tigo_Opti: Read callback: request type was update retry 0, body empty
2019.01.16 00:05:50 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.16 00:05:50 5: Tigo_Opti: ExtractSid called, context reading, num
2019.01.16 00:05:50 4: Tigo_Opti: checking for redirects, code=302, ignore=0
2019.01.16 00:05:50 4: Tigo_Opti: https://installations.tigoenergy.com/base/main/status/view/sysid/38067: Redirect (1) to https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:50 4: Tigo_Opti: AddToQueue adds update, initial queue len: 0, prio
2019.01.16 00:05:50 5: Tigo_Opti: AddToQueue prepends type update to URL https://installations.tigoenergy.com/base/login/login, no data, no headers, retry 0
2019.01.16 00:05:50 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.16 00:05:50 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value l97s4nbkb75bd1m4edsqvrdf82 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.16 00:05:50 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 7ba17f279d87c71816b0b1ca486fbfd6e42e2682 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.16 00:05:50 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.16 00:05:50 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
2019.01.16 00:05:50 4: Tigo_Opti: HandleSendQueue sends request type update to URL https://installations.tigoenergy.com/base/login/login, No Data,
header: Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
timeout 2
2019.01.16 00:05:50 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:50 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.16 00:05:51 5: HttpUtils request header:
GET /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.16 00:05:51 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 200
2019.01.16 00:05:51 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 5881
2019.01.16 00:05:51 5: HttpUtils response header:
HTTP/1.1 200 OK
Date: Tue, 15 Jan 2019 23:05:51 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Fri, 10-Jan-2020 23:05:51 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2278
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.16 00:05:51 4: Tigo_Opti: Read callback: request type was update retry 0,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=IE8" />
    <link rel="stylesheet" type="text/css" href="/base/css/login_template.css?v1" />
<script type="text/javascript" src="/base/assets/36278b34/jquery.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

    function selectLink(id) {
        //Changes selected link
        var link = document.getElementById(id);
        link.removeAttribute('href');
        link.className += ' selected';
        var menuId = id + '_menu';
        if (link.parentNode.className == 'submenu hidemenu') {
            link.parentNode.className = 'submenu'; //makes submenu visible
            var parentName = link.parentNode.id.substring(0, link.parentNode.id.length - 5);
            document.getElementById(parentName).className += ' selected';
        }
        else {
            if (document.getElementById(menuId)) {
                document.getElementById(menuId).className = 'submenu';
            }
        }
    }

/*]]>*/
</script>
<title>User Login - Tigo Energy</title>
                <link rel="icon" href="/base/images/favicon.ico" type="image/ico" />
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//stats.tigoenergy.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', 2]);
            var d   = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type  = 'text/javascript';
            g.async = true;
            g.defer = true;
            g.src   = u + 'piwik.js';
            s.parentNode.insertBefore(g, s);
        })();
    </script>
</head>
<body onload='if(document.form1) document.form1.username.focus();'>
<div id="container">
    <div id="header">
                <span id="logo">
                    <a href="http://www.tigoenergy.com"><img src="/base/images/small_tigo_transparent.png" alt="logo" border="0" /></a>
                </span>
        <div style="float:right;padding-right:10px;padding-top:10px;">
            <select id="locale_select" style="margin-top:5px;" onchange="js:window.location = '/base/login/login?skin=' + '&amp;lang=' + $(this).val();" name="locale_select">
<option value="0" selected="selected">English (North America)</option>
<option value="6">中文</option>
<option value="7">Čech</option>
<option value="4">Français</option>
<option value="1">Deutsch</option>
<option value="3">Italiano</option>
<option value="2">日本語</option>
<option value="8">한국인</option>
<option value="5">Español</option>
<option value="9">ελληνικά</option>
</select>        </div>
    </div>
    <div id="navcontainer">
        <div style="clear:both"></div>
        <div id="maincontent"><style>
    .prominent-href {
        font-size: 14px;
        display: block;
        text-decoration: underline !important;
        margin-bottom: 5px !important;
    }
</style>
<div id="banner_cont">
    <div style="width:322px;">&nbsp;</div>
            <div>
            <a href="http://www.tigoenergy.com/site.php?13429"><img style="border:none;margin-left:4px;" src="/login/view_existing_tigo_installations.jpg" width="322" height="123" border="0" /></a>
        </div>
        <div style="margin-left:5px;">
            <a style="background-image:none;" href="http://www.tigoenergy.com/why-tigo/case-studies/"><img style="border: none;" src="/login/web_banner_case_studies.png" width="322" height="120" /></a>
        </div>
    </div>

<div id="form_cont" style="margin-left:10px;">
    <form name="form1" style="border-left:1px solid #d1d1d1;" id="login_form" action="/base/login/login?skin=" method="post">
<input type="hidden" value="7ba17f279d87c71816b0b1ca486fbfd6e42e2682" name="YII_CSRF_TOKEN" />    <a class="prominent-href" href="/base/account/register?skin=">New Installer? Sign Up</a><br>
    <p class="form_label"><label for="username">Login ID</label></p>
    <input id="username" name="Users[login]" type="text" maxlength="64" />    <br>
    <br>
    <br>
    <p class="form_label">
        <label for="password" style="white-space:nowrap">Password</label></p>
    <input id="password" autocomplete="off" name="Users[password]" type="password" />    <br>
    <br>
        <a class="prominent-href" href="/base/account/password?skin=">Forgot Password</a>
    <a class="prominent-href" href="/base/account/forgotloginid?skin=">Forgot Login ID</a>
    <br>
    <div style="color:red;"></div>
    <br>
    <input name="Submit" id="orange_btn" type="submit" value="Login" />    <input type="hidden" name="type" id="type" />    </form></div>
</div>
    </div>
    <div id="footer">
        <table width=100% border="0" cellspacing="5" cellpadding="0">
            <tr style="font-size:1.1em;">
                <td style="text-align: left; padding: 10px 0 0 20px;">
                    Optimized by Tigo. Copyright &copy; 2007-2019 Tigo Energy, Inc. All Rights Reserved                </td>
                <td style="text-align: center; padding: 10px 0 0 20px; ">
                                    </td>
                <td style="text-align: right; padding: 10px 20px 0 0;">
                    <a href="http://www.tigoenergy.com/privacy-policy/">
                        Privacy Policy                    </a>
                </td>
            </tr>
        </table>
    </div>
    <div id="footer_border">&nbsp;</div>
</div>
<noscript><p><img src="//stats.tigoenergy.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
</body>
</html>

2019.01.16 00:05:51 3: Tigo_Opti: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at (eval 52900) line 1.

2019.01.16 00:05:51 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.16 00:05:51 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert deleted Rest expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
2019.01.16 00:05:51 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert English Rest expires=Fri, 10-Jan-2020 23:05:51 GMT; Max-Age=31104000; path=/
2019.01.16 00:05:51 5: Tigo_Opti: ExtractSid called, context reading, num
2019.01.16 00:05:51 4: Tigo_Opti: checking for redirects, code=200, ignore=0
2019.01.16 00:05:51 4: Tigo_Opti: no redirects to handle
2019.01.16 00:05:51 5: Tigo_Opti: CheckAuth is checking buffer with ReAuthRegex password
2019.01.16 00:05:51 4: Tigo_Opti: CheckAuth decided new authentication required
2019.01.16 00:05:51 4: Tigo_Opti: Auth called with Steps: 1 2
2019.01.16 00:05:51 4: Tigo_Opti: AddToQueue adds auth2, initial queue len: 0, prio
2019.01.16 00:05:51 5: Tigo_Opti: AddToQueue prepends type auth2 to URL https://installations.tigoenergy.com/base/login/login, data $sid&Users[login]=user%40domain.de&Users[password]=password&Submit=Login&type=, no headers, retry 0
2019.01.16 00:05:51 4: Tigo_Opti: AddToQueue adds auth1, initial queue len: 1, prio
2019.01.16 00:05:51 5: Tigo_Opti: AddToQueue prepends type auth1 to URL https://installations.tigoenergy.com/base/login/login, data YII_CSRF_TOKEN=$sid&Users%5Blogin%5D=user%40password.de&Users%5Bpassword%5D=password&Submit=Login&type=, header Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml, retry 0
2019.01.16 00:05:51 5: Tigo_Opti: HandleSendQueue called, qlen = 2
2019.01.16 00:05:51 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value l97s4nbkb75bd1m4edsqvrdf82 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.16 00:05:51 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 7ba17f279d87c71816b0b1ca486fbfd6e42e2682 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.16 00:05:51 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.16 00:05:51 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
2019.01.16 00:05:51 4: Tigo_Opti: HandleSendQueue sends request type auth1 to URL https://installations.tigoenergy.com/base/login/login,
data: YII_CSRF_TOKEN=$sid&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=,
header: Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
timeout 2
2019.01.16 00:05:51 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:51 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.16 00:05:51 5: HttpUtils request header:
POST /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
Content-Length: 106

2019.01.16 00:05:52 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 302
2019.01.16 00:05:52 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 0
2019.01.16 00:05:52 5: HttpUtils response header:
HTTP/1.1 302 Found
Date: Tue, 15 Jan 2019 23:05:52 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Location: https://installations.tigoenergy.com/base/login/login
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.16 00:05:52 4: Tigo_Opti: Read callback: request type was auth1 retry 0, body empty
2019.01.16 00:05:52 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.16 00:05:52 5: Tigo_Opti: ExtractSid called, context sid, num 1
2019.01.16 00:05:52 5: Tigo_Opti: ExtractSid could not match buffer to IdRegex (YII_CSRF_TOKEN=.*?);
2019.01.16 00:05:52 4: Tigo_Opti: checking for redirects, code=302, ignore=0
2019.01.16 00:05:52 4: Tigo_Opti: https://installations.tigoenergy.com/base/login/login: Redirect (1) to https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:52 4: Tigo_Opti: AddToQueue adds auth1, initial queue len: 1, prio
2019.01.16 00:05:52 5: Tigo_Opti: AddToQueue prepends type auth1 to URL https://installations.tigoenergy.com/base/login/login, no data, header Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml, retry 0
2019.01.16 00:05:52 5: Tigo_Opti: HandleSendQueue called, qlen = 2
2019.01.16 00:05:52 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value l97s4nbkb75bd1m4edsqvrdf82 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.16 00:05:52 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 7ba17f279d87c71816b0b1ca486fbfd6e42e2682 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.16 00:05:52 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.16 00:05:52 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
2019.01.16 00:05:52 4: Tigo_Opti: HandleSendQueue sends request type auth1 to URL https://installations.tigoenergy.com/base/login/login, No Data,
header: Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
timeout 2
2019.01.16 00:05:52 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:52 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.16 00:05:52 5: HttpUtils request header:
GET /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Content-Type: application/x-www-form-urlencoded
Accept: text/html
Accept: application/xhtml+xml
Accept: application/xml
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
Content-Length: 0

2019.01.16 00:05:52 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 200
2019.01.16 00:05:52 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 5881
2019.01.16 00:05:52 5: HttpUtils response header:
HTTP/1.1 200 OK
Date: Tue, 15 Jan 2019 23:05:52 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Fri, 10-Jan-2020 23:05:52 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2278
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.16 00:05:52 4: Tigo_Opti: Read callback: request type was auth1 retry 0,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=IE8" />
    <link rel="stylesheet" type="text/css" href="/base/css/login_template.css?v1" />
<script type="text/javascript" src="/base/assets/36278b34/jquery.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

    function selectLink(id) {
        //Changes selected link
        var link = document.getElementById(id);
        link.removeAttribute('href');
        link.className += ' selected';
        var menuId = id + '_menu';
        if (link.parentNode.className == 'submenu hidemenu') {
            link.parentNode.className = 'submenu'; //makes submenu visible
            var parentName = link.parentNode.id.substring(0, link.parentNode.id.length - 5);
            document.getElementById(parentName).className += ' selected';
        }
        else {
            if (document.getElementById(menuId)) {
                document.getElementById(menuId).className = 'submenu';
            }
        }
    }

/*]]>*/
</script>
<title>User Login - Tigo Energy</title>
                <link rel="icon" href="/base/images/favicon.ico" type="image/ico" />
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//stats.tigoenergy.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', 2]);
            var d   = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type  = 'text/javascript';
            g.async = true;
            g.defer = true;
            g.src   = u + 'piwik.js';
            s.parentNode.insertBefore(g, s);
        })();
    </script>
</head>
<body onload='if(document.form1) document.form1.username.focus();'>
<div id="container">
    <div id="header">
                <span id="logo">
                    <a href="http://www.tigoenergy.com"><img src="/base/images/small_tigo_transparent.png" alt="logo" border="0" /></a>
                </span>
        <div style="float:right;padding-right:10px;padding-top:10px;">
            <select id="locale_select" style="margin-top:5px;" onchange="js:window.location = '/base/login/login?skin=' + '&amp;lang=' + $(this).val();" name="locale_select">
<option value="0" selected="selected">English (North America)</option>
<option value="6">中文</option>
<option value="7">Čech</option>
<option value="4">Français</option>
<option value="1">Deutsch</option>
<option value="3">Italiano</option>
<option value="2">日本語</option>
<option value="8">한국인</option>
<option value="5">Español</option>
<option value="9">ελληνικά</option>
</select>        </div>
    </div>
    <div id="navcontainer">
        <div style="clear:both"></div>
        <div id="maincontent"><style>
    .prominent-href {
        font-size: 14px;
        display: block;
        text-decoration: underline !important;
        margin-bottom: 5px !important;
    }
</style>
<div id="banner_cont">
    <div style="width:322px;">&nbsp;</div>
            <div>
            <a href="http://www.tigoenergy.com/site.php?13429"><img style="border:none;margin-left:4px;" src="/login/view_existing_tigo_installations.jpg" width="322" height="123" border="0" /></a>
        </div>
        <div style="margin-left:5px;">
            <a style="background-image:none;" href="http://www.tigoenergy.com/why-tigo/case-studies/"><img style="border: none;" src="/login/web_banner_case_studies.png" width="322" height="120" /></a>
        </div>
    </div>

<div id="form_cont" style="margin-left:10px;">
    <form name="form1" style="border-left:1px solid #d1d1d1;" id="login_form" action="/base/login/login?skin=" method="post">
<input type="hidden" value="7ba17f279d87c71816b0b1ca486fbfd6e42e2682" name="YII_CSRF_TOKEN" />    <a class="prominent-href" href="/base/account/register?skin=">New Installer? Sign Up</a><br>
    <p class="form_label"><label for="username">Login ID</label></p>
    <input id="username" name="Users[login]" type="text" maxlength="64" />    <br>
    <br>
    <br>
    <p class="form_label">
        <label for="password" style="white-space:nowrap">Password</label></p>
    <input id="password" autocomplete="off" name="Users[password]" type="password" />    <br>
    <br>
        <a class="prominent-href" href="/base/account/password?skin=">Forgot Password</a>
    <a class="prominent-href" href="/base/account/forgotloginid?skin=">Forgot Login ID</a>
    <br>
    <div style="color:red;"></div>
    <br>
    <input name="Submit" id="orange_btn" type="submit" value="Login" />    <input type="hidden" name="type" id="type" />    </form></div>
</div>
    </div>
    <div id="footer">
        <table width=100% border="0" cellspacing="5" cellpadding="0">
            <tr style="font-size:1.1em;">
                <td style="text-align: left; padding: 10px 0 0 20px;">
                    Optimized by Tigo. Copyright &copy; 2007-2019 Tigo Energy, Inc. All Rights Reserved                </td>
                <td style="text-align: center; padding: 10px 0 0 20px; ">
                                    </td>
                <td style="text-align: right; padding: 10px 20px 0 0;">
                    <a href="http://www.tigoenergy.com/privacy-policy/">
                        Privacy Policy                    </a>
                </td>
            </tr>
        </table>
    </div>
    <div id="footer_border">&nbsp;</div>
</div>
<noscript><p><img src="//stats.tigoenergy.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
</body>
</html>

2019.01.16 00:05:52 3: Tigo_Opti: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at (eval 52904) line 1.

2019.01.16 00:05:52 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.16 00:05:52 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert deleted Rest expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
2019.01.16 00:05:52 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert English Rest expires=Fri, 10-Jan-2020 23:05:52 GMT; Max-Age=31104000; path=/
2019.01.16 00:05:52 5: Tigo_Opti: ExtractSid called, context sid, num 1
2019.01.16 00:05:52 5: Tigo_Opti: ExtractSid could not match buffer to IdRegex (YII_CSRF_TOKEN=.*?);
2019.01.16 00:05:52 4: Tigo_Opti: checking for redirects, code=200, ignore=0
2019.01.16 00:05:52 4: Tigo_Opti: no redirects to handle
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value l97s4nbkb75bd1m4edsqvrdf82 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 7ba17f279d87c71816b0b1ca486fbfd6e42e2682 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
2019.01.16 00:05:53 4: Tigo_Opti: HandleSendQueue sends request type auth2 to URL https://installations.tigoenergy.com/base/login/login,
data: $sid&Users[login]=user%40domain.de&Users[password]=password&Submit=Login&type=,
header: Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
timeout 2
2019.01.16 00:05:53 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:53 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.16 00:05:53 5: HttpUtils request header:
POST /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
Content-Length: 83
Content-Type: application/x-www-form-urlencoded

2019.01.16 00:05:53 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 302
2019.01.16 00:05:53 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 0
2019.01.16 00:05:53 5: HttpUtils response header:
HTTP/1.1 302 Found
Date: Tue, 15 Jan 2019 23:05:53 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Location: https://installations.tigoenergy.com/base/login/login
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.16 00:05:53 4: Tigo_Opti: Read callback: request type was auth2 retry 0, body empty
2019.01.16 00:05:53 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.16 00:05:53 5: Tigo_Opti: ExtractSid called, context sid, num 2
2019.01.16 00:05:53 5: Tigo_Opti: ExtractSid could not match buffer to IdRegex \s*YII_CSRF_TOKEN=(.*)?.lang
2019.01.16 00:05:53 4: Tigo_Opti: checking for redirects, code=302, ignore=0
2019.01.16 00:05:53 4: Tigo_Opti: https://installations.tigoenergy.com/base/login/login: Redirect (1) to https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:53 4: Tigo_Opti: AddToQueue adds auth2, initial queue len: 0, prio
2019.01.16 00:05:53 5: Tigo_Opti: AddToQueue prepends type auth2 to URL https://installations.tigoenergy.com/base/login/login, no data, no headers, retry 0
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue called, qlen = 1
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is using Cookie PHPSESSID with path / and Value l97s4nbkb75bd1m4edsqvrdf82 (key PHPSESSID;/, destination path is /base/login/login)
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is using Cookie YII_CSRF_TOKEN with path / and Value 7ba17f279d87c71816b0b1ca486fbfd6e42e2682 (key YII_CSRF_TOKEN;/, destination path is /base/login/login)
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is using Cookie lang with path / and Value English (key lang;/, destination path is /base/login/login)
2019.01.16 00:05:53 5: Tigo_Opti: HandleSendQueue is adding Cookie header: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
2019.01.16 00:05:53 4: Tigo_Opti: HandleSendQueue sends request type auth2 to URL https://installations.tigoenergy.com/base/login/login, No Data,
header: Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
timeout 2
2019.01.16 00:05:53 5: HttpUtils url=https://installations.tigoenergy.com/base/login/login
2019.01.16 00:05:53 4: IP: installations.tigoenergy.com -> 64.62.250.202
2019.01.16 00:05:54 5: HttpUtils request header:
GET /base/login/login HTTP/1.1
Host: installations.tigoenergy.com
User-Agent: fhem
Accept-Encoding: gzip,deflate
Connection: Close
Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

2019.01.16 00:05:54 4: https://installations.tigoenergy.com/base/login/login: HTTP response code 200
2019.01.16 00:05:54 5: HttpUtils https://installations.tigoenergy.com/base/login/login: Got data, length: 5881
2019.01.16 00:05:54 5: HttpUtils response header:
HTTP/1.1 200 OK
Date: Tue, 15 Jan 2019 23:05:54 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Fri, 10-Jan-2020 23:05:54 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2278
Connection: close
Content-Type: text/html; charset=UTF-8
2019.01.16 00:05:54 4: Tigo_Opti: Read callback: request type was auth2 retry 0,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=IE8" />
    <link rel="stylesheet" type="text/css" href="/base/css/login_template.css?v1" />
<script type="text/javascript" src="/base/assets/36278b34/jquery.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

    function selectLink(id) {
        //Changes selected link
        var link = document.getElementById(id);
        link.removeAttribute('href');
        link.className += ' selected';
        var menuId = id + '_menu';
        if (link.parentNode.className == 'submenu hidemenu') {
            link.parentNode.className = 'submenu'; //makes submenu visible
            var parentName = link.parentNode.id.substring(0, link.parentNode.id.length - 5);
            document.getElementById(parentName).className += ' selected';
        }
        else {
            if (document.getElementById(menuId)) {
                document.getElementById(menuId).className = 'submenu';
            }
        }
    }

/*]]>*/
</script>
<title>User Login - Tigo Energy</title>
                <link rel="icon" href="/base/images/favicon.ico" type="image/ico" />
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//stats.tigoenergy.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            _paq.push(['setSiteId', 2]);
            var d   = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type  = 'text/javascript';
            g.async = true;
            g.defer = true;
            g.src   = u + 'piwik.js';
            s.parentNode.insertBefore(g, s);
        })();
    </script>
</head>
<body onload='if(document.form1) document.form1.username.focus();'>
<div id="container">
    <div id="header">
                <span id="logo">
                    <a href="http://www.tigoenergy.com"><img src="/base/images/small_tigo_transparent.png" alt="logo" border="0" /></a>
                </span>
        <div style="float:right;padding-right:10px;padding-top:10px;">
            <select id="locale_select" style="margin-top:5px;" onchange="js:window.location = '/base/login/login?skin=' + '&amp;lang=' + $(this).val();" name="locale_select">
<option value="0" selected="selected">English (North America)</option>
<option value="6">中文</option>
<option value="7">Čech</option>
<option value="4">Français</option>
<option value="1">Deutsch</option>
<option value="3">Italiano</option>
<option value="2">日本語</option>
<option value="8">한국인</option>
<option value="5">Español</option>
<option value="9">ελληνικά</option>
</select>        </div>
    </div>
    <div id="navcontainer">
        <div style="clear:both"></div>
        <div id="maincontent"><style>
    .prominent-href {
        font-size: 14px;
        display: block;
        text-decoration: underline !important;
        margin-bottom: 5px !important;
    }
</style>
<div id="banner_cont">
    <div style="width:322px;">&nbsp;</div>
            <div>
            <a href="http://www.tigoenergy.com/site.php?13429"><img style="border:none;margin-left:4px;" src="/login/view_existing_tigo_installations.jpg" width="322" height="123" border="0" /></a>
        </div>
        <div style="margin-left:5px;">
            <a style="background-image:none;" href="http://www.tigoenergy.com/why-tigo/case-studies/"><img style="border: none;" src="/login/web_banner_case_studies.png" width="322" height="120" /></a>
        </div>
    </div>

<div id="form_cont" style="margin-left:10px;">
    <form name="form1" style="border-left:1px solid #d1d1d1;" id="login_form" action="/base/login/login?skin=" method="post">
<input type="hidden" value="7ba17f279d87c71816b0b1ca486fbfd6e42e2682" name="YII_CSRF_TOKEN" />    <a class="prominent-href" href="/base/account/register?skin=">New Installer? Sign Up</a><br>
    <p class="form_label"><label for="username">Login ID</label></p>
    <input id="username" name="Users[login]" type="text" maxlength="64" />    <br>
    <br>
    <br>
    <p class="form_label">
        <label for="password" style="white-space:nowrap">Password</label></p>
    <input id="password" autocomplete="off" name="Users[password]" type="password" />    <br>
    <br>
        <a class="prominent-href" href="/base/account/password?skin=">Forgot Password</a>
    <a class="prominent-href" href="/base/account/forgotloginid?skin=">Forgot Login ID</a>
    <br>
    <div style="color:red;"></div>
    <br>
    <input name="Submit" id="orange_btn" type="submit" value="Login" />    <input type="hidden" name="type" id="type" />    </form></div>
</div>
    </div>
    <div id="footer">
        <table width=100% border="0" cellspacing="5" cellpadding="0">
            <tr style="font-size:1.1em;">
                <td style="text-align: left; padding: 10px 0 0 20px;">
                    Optimized by Tigo. Copyright &copy; 2007-2019 Tigo Energy, Inc. All Rights Reserved                </td>
                <td style="text-align: center; padding: 10px 0 0 20px; ">
                                    </td>
                <td style="text-align: right; padding: 10px 20px 0 0;">
                    <a href="http://www.tigoenergy.com/privacy-policy/">
                        Privacy Policy                    </a>
                </td>
            </tr>
        </table>
    </div>
    <div id="footer_border">&nbsp;</div>
</div>
<noscript><p><img src="//stats.tigoenergy.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
</body>
</html>

2019.01.16 00:05:54 3: Tigo_Opti: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at (eval 52907) line 1.

2019.01.16 00:05:54 5: Tigo_Opti: GetCookies is looking for Cookies
2019.01.16 00:05:54 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert deleted Rest expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
2019.01.16 00:05:54 4: Tigo_Opti: GetCookies parsed Cookie: lang Wert English Rest expires=Fri, 10-Jan-2020 23:05:54 GMT; Max-Age=31104000; path=/
2019.01.16 00:05:54 5: Tigo_Opti: ExtractSid called, context sid, num 2
2019.01.16 00:05:54 5: Tigo_Opti: ExtractSid could not match buffer to IdRegex \s*YII_CSRF_TOKEN=(.*)?.lang
2019.01.16 00:05:54 4: Tigo_Opti: checking for redirects, code=200, ignore=0
2019.01.16 00:05:54 4: Tigo_Opti: no redirects to handle


und dazu das List:
Internals:
   .getList   
   .setList   interval reread:noArg stop:noArg start:noArg upgradeAttributes:noArg storeKeyValue
   .updateReadingList 1
   .updateRequestHash 1
   BUSY       0
   CHANGED   
   DEF        https://installations.tigoenergy.com/base/main/status/view/sysid/38067 300
   Interval   300
   JSONEnabled 1
   LASTSEND   1547593553.89233
   LastAuthTry 2019-01-16 00:05:51
   MainURL    https://installations.tigoenergy.com/base/main/status/view/sysid/38067
   ModuleVersion 3.5.4 - 9.11.2018
   NAME       Tigo_Opti
   NR         316
   STATE      ???
   TRIGGERTIME 1547593815.1123
   TRIGGERTIME_FMT 2019-01-16 00:10:15
   TYPE       HTTPMOD
   addr       https://installations.tigoenergy.com:443
   auth       0
   buf       
   code       200
   compress   1
   conn       
   data       
   displayurl https://installations.tigoenergy.com/base/login/login
   header     Cookie: PHPSESSID=l97s4nbkb75bd1m4edsqvrdf82; YII_CSRF_TOKEN=7ba17f279d87c71816b0b1ca486fbfd6e42e2682; lang=English
   host       installations.tigoenergy.com
   httpheader HTTP/1.1 200 OK
Date: Tue, 15 Jan 2019 23:05:54 GMT
Server: Apache/2.4.18
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: lang=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: lang=English; expires=Fri, 10-Jan-2020 23:05:54 GMT; Max-Age=31104000; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2278
Connection: close
Content-Type: text/html; charset=UTF-8
   httpversion 1.1
   hu_blocking 0
   hu_filecount 30
   hu_port    443
   hu_portSfx
   ignoreredirects 1
   loglevel   4
   path       /base/login/login
   protocol   https
   redirects  0
   timeout    2
   url        https://installations.tigoenergy.com/base/login/login
   value      0
   HTTPCookieHash:
     PHPSESSID;/:
       Name       PHPSESSID
       Options    path=/
       Path       /
       Value      l97s4nbkb75bd1m4edsqvrdf82
     YII_CSRF_TOKEN;/:
       Name       YII_CSRF_TOKEN
       Options    path=/
       Path       /
       Value      7ba17f279d87c71816b0b1ca486fbfd6e42e2682
     lang;/:
       Name       lang
       Options    expires=Fri, 10-Jan-2020 23:05:54 GMT; Max-Age=31104000; path=/
       Path       /
       Value      English
   QUEUE:
   READINGS:
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       auth2
     url        https://installations.tigoenergy.com/base/login/login
     value      0
   sslargs:
Attributes:
   dontRequeueAfterAuth 1
   enableControlSet 1
   enableCookies 1
   extractAllJSON 1
   handleRedirects 1
   httpVersion 1.1
   reAuthRegex password
   reading01Name YII_CSRF_TOKEN
   reading01Regex <input.type="hidden".value="(.*)".name="YII_CSRF_TOKEN"
   reading02Name B1
   reading02Regex <td>B1<\/td>\s*<td.nowrap>(.*) <\/td>\s*<td.nowrap>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<\/td>\s*<td>(.*)<
   room       Solaranlage
   sid1Data   YII_CSRF_TOKEN=$sid&Users%5Blogin%5D=user%40domain.de&Users%5Bpassword%5D=password&Submit=Login&type=
   sid1Header1 Content-Type: application/x-www-form-urlencoded
   sid1Header2 Accept: text/html
   sid1Header3 Accept: application/xhtml+xml
   sid1Header4 Accept: application/xml
   sid1IdRegex (YII_CSRF_TOKEN=.*?);
   sid1URL    https://installations.tigoenergy.com/base/login/login
   sid2Data   $sid&Users[login]=user@domain.de&Users[password]=password&Submit=Login&type=
   sidIdRegex \s*YII_CSRF_TOKEN=(.*)?.lang
   sidURL     https://installations.tigoenergy.com/base/login/login
   userattr   reading01Name reading01Regex reading01XPath reading02Name reading02RegOpt reading02Regex reading1Name reading1RegOpt reading1Regex reading2Name reading2RegOpt reading2Regex requestHeader1 sid1Data sid1Header1 sid1Header2 sid1Header3 sid1Header4 sid1Header5 sid1IdRegex sid1URL sid2Data sidIdRegex sidURL
   verbose    5


ich habe nur deine Vorschläge eingearbeitet, bzw. damit meine überschrieben. Aber nichts entfernt. Richtig?

amenomade

#88
Ne, Du hast zu viele Sachen, teilweise redundant oder die sich überschreiben. Und in step 1 setzt Du schon $sid (mit sid1Data), obwohl es noch nicht bekannt ist.

Es geht so: man ruft die login Seite im Step 1 und extrahiert $sid mit IdRegex. Dann im Step 2 schickt man das ganze und $sid wird ersetzt.
Und die Regex war übrigens falsch.

Somit (und nur damit) komme ich bis zu "Invalid user or password" (habe kein Konto):
defmod Tigo_Opti HTTPMOD https://installations.tigoenergy.com/base/main/status/view/sysid/38067 300
attr Tigo_Opti enableControlSet 1
attr Tigo_Opti enableCookies 1
attr Tigo_Opti handleRedirects 1
attr Tigo_Opti reAuthRegex password
attr Tigo_Opti sid1IdRegex hidden" value="(.*?)" name="YII_CSRF
attr Tigo_Opti sid2Data YII_CSRF_TOKEN=$sid&Users[login]=user@domain.de&Users[password]=password&Submit=Login&type=
attr Tigo_Opti sidURL https://installations.tigoenergy.com/base/login/login
attr Tigo_Opti verbose 5
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

SW7

Perfekt!

Das war es! Es tut auf Anhieb.
Ich bin begeistert.

Vielen lieben Dank für die Unterstützung.
Echt lieb von Dir.