76_SMAPortal - Integration SMA Sunny Portal - Ideen & Modulweiterentwicklung

Begonnen von DS_Starter, 08 Juli 2019, 18:45:46

Vorheriges Thema - Nächstes Thema

CarlosTT

Hab jetzt festgestellt, daß auch bei mir seit ca. 3 Wochen keine Daten mehr abgefragt werden ('login failed - check user and password').
Die credentials hab ich überprüft, die sind übereinstimmend.
Ich setze jetzt auch mal verbose höher zum Nachschauen ...

arokh12

Hallo,
hat SMA was am Server geändert? Es viel bis auf einzelne Aussetzer seit Tagen problemlos. Seit 15 Uhr habe ich aber folgende Meldung:

Zitat2020.06.23 16:28:56 3: SMAPortal - ################################################################
2020.06.23 16:28:56 3: SMAPortal - ###      start new set/get data from SMA Sunny Portal        ###
2020.06.23 16:28:56 3: SMAPortal - ################################################################
2020.06.23 16:28:56 4: SMAPortal - calculated cycles summary time: 4
2020.06.23 16:28:56 4: SMAPortal - calculated maximum cycles:      88
2020.06.23 16:28:56 4: SMAPortal - calculated timeout:             347
2020.06.23 16:28:56 3: SMAPortal - Running data cycle: 1 of 88
2020.06.23 16:28:56 5: SMAPortal - Start operation with CookieLocation: ./Cookies/SMAPortal.txt and UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
2020.06.23 16:28:56 5: SMAPortal - data get: all, data set: none
2020.06.23 16:28:56 4: SMAPortal - User not logged in. Try login with credentials ...
2020.06.23 16:28:56 4: SMAPortal - Credentials read from RAM: *** ***
2020.06.23 16:28:56 3: SMAPortal - Login into SMA-Portal successfully done with user: ***
2020.06.23 16:28:56 4: SMAPortal - Getting consumerMasterdata
2020.06.23 16:28:56 2: SMAPortal - ERROR - User logged in but unauthorized
2020.06.23 16:28:56 5: SMAPortal - No JSON Data received:
HTTP/1.1 401 Unauthorized
Cache-Control: private, s-maxage=0
Date: Tue, 23 Jun 2020 14:28:55 GMT
Server: Microsoft-IIS/10.0
Content-Length: 1293
Content-Type: text/html
Client-Date: Tue, 23 Jun 2020 14:28:56 GMT
Client-Peer: 171.25.178.37:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
Client-SSL-Cert-Subject: /OU=Domain Control Validated/OU=COMODO SSL Wildcard/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
Client-Warning: Missing Authenticate header
Title: 401 - Unauthorized: Access is denied due to invalid credentials.
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
  <h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>
  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
</fieldset></div>
</div>
</body>
</html>

2020.06.23 16:28:56 3: SMAPortal - Cookie file deleted: ./Cookies/SMAPortal.txt
2020.06.23 16:28:56 4: SMAPortal - Refresh - caller: SMAPortal_Prognose_Erzeugung, callerroom: "n.a.", detail: "n.a.", pload: 0, forcePageRefresh: 0, event_Spgdev: 1

Passwort und Email sind korrekt vorhanden.

Danke,
arokh12

DS_Starter

Kann ich bestätigen,

ist bei mir auch seit ca. 15:50 so.
Ich lege mir jetzt wieder einen neuen Nutzer an und prophezeie dass es damit wieder läuft bis SMA wieder sperrt.
Also Spaß macht das nicht. SMA will offensichtlich den Datenabruf der Heimautomatisierer permanent verhindern.

In der heutigen Zeit ein Armutszeugnis finde ich.
Vielleicht sollte man mal eine Anfrage an SMA starten und nachfragen ob sie nicht als Service am Kunden eine automatisiert abrufbare Schnittstelle anbieten wollen ?
Wenn das viele machen findet vllt. ein Umdenken statt (bin aber eher pessimistisch).

Grüße,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

So ist es ... neuen Nutzer angelegt, im Device eingetragen ... rennt.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

arokh12

Habe ich jetzt nochmal gemacht, jetzt geht es. Du hast vollkommen recht, dass die fehlende Schnittstelle heutzutage absolut nicht mehr zeitgemäß ist.

Vielen Dank für deine Mühe,
arokh12

DS_Starter

Hallo zusammen,

ich habe die V3 eingecheckt.
Sie ist morgen früh im Update enthalten.

Denkt daran dass sie nicht compatibel zu der bisherigen V2 ist !

Grüße,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

dk3572

Hallo,

was sollen mir diese Meldungen sagen bzw. woher bekomme ich eine solche ID?

The consumer data cannot be retrieved because the plant ID isn't set.

The logbook cannot be retrieved because of the plant ID isn't set.

CREDENTIALS Set
   FUUID      5eb01c73-f33f-cd72-53bb-f50cd8bd24c0c6cc
   FVERSION   76_SMAPortal.pm:v3.1.0-s22243/2020-06-23
   MODE       Automatic - next polltime: 13:29:43
   NAME       SMA_Portal
   NR         398
   STATE      The logbook cannot be retrieved because of the plant ID isn't set.
   TYPE       SMAPortal
   HELPER:
     ACTCYCLE   1
     CYCLEBTIME 1592997283
     GETTER     all
     L04_NextHour01_WeatherId 0
     L04_NextHour02_WeatherId 0
     L04_NextHour03_WeatherId 0
     L04_NextHour04_WeatherId 0
     L04_NextHour05_WeatherId 0
     L04_NextHour06_WeatherId 0
     L04_NextHour07_WeatherId 0
     L04_NextHour08_WeatherId 0
     L04_NextHour09_WeatherId 100
     L04_NextHour10_WeatherId 100
     L04_NextHour11_WeatherId 100
     L04_NextHour12_WeatherId 100
     L04_NextHour13_WeatherId 100
     L04_NextHour14_WeatherId 100
     L04_NextHour15_WeatherId 100
     L04_NextHour16_WeatherId 100
     L04_NextHour17_WeatherId 0
     L04_NextHour18_WeatherId 0
     L04_NextHour19_WeatherId 0
     L04_NextHour20_WeatherId 0
     L04_NextHour21_WeatherId 0
     L04_NextHour22_WeatherId 0
     L04_NextHour23_WeatherId 1
     L04_ThisHour_WeatherId 0
     PACKAGE    FHEM::SMAPortal
     RETRIES    1
     SETTER     none
     SPGDETAIL  SMA_Portal
     SPGDEV     SPG3.SMA_Portal
     SPGROOM   
     VERSION    3.1.0
     oldlogintime 1592997283
   OLDREADINGS:
   READINGS:
     2020-06-24 13:12:46   L00_PlantPeakPower 6300 W
     2020-06-24 13:12:46   L01_AutarkyQuote 100 %
     2020-06-24 13:12:46   L01_FeedIn      5089 W
     2020-06-24 13:12:46   L01_GridConsumption 0 W
     2020-06-24 13:12:46   L01_PV          5247 W
     2020-06-24 13:12:46   L01_SelfConsumption 158 W
     2020-06-24 13:12:46   L01_SelfConsumptionQuote 3 %
     2020-06-24 13:12:46   L01_SelfSupply  158 W
     2020-06-24 13:12:46   L01_TotalConsumption 158 W
     2020-06-24 13:12:46   L02_Today_Temperature 25.0 °C
     2020-06-24 13:12:46   L02_Today_WeatherDescription Wolkenlos
     2020-06-24 13:12:46   L02_Tomorrow_Temperature 26.0 °C
     2020-06-24 13:12:46   L02_Tomorrow_WeatherDescription Wolkenlos
     2020-06-24 13:12:46   L03_Today_AutarkyRate 60 %
     2020-06-24 13:12:46   L03_Today_BackupIn ---
     2020-06-24 13:12:46   L03_Today_BackupOut ---
     2020-06-24 13:12:46   L03_Today_DirectConsumption ---
     2020-06-24 13:12:46   L03_Today_DirectConsumptionRate ---
     2020-06-24 13:12:46   L03_Today_Energy 20,37 kWh
     2020-06-24 13:12:46   L03_Today_FeedIn 17,49 kWh
     2020-06-24 13:12:46   L03_Today_GridConsumption 1,88 kWh
     2020-06-24 13:12:46   L03_Today_SelfConsumption 2,88 kWh
     2020-06-24 13:12:46   L03_Today_SelfConsumptionRate 14 %
     2020-06-24 13:12:46   L03_Today_SelfSupply 2,88 kWh
     2020-06-24 13:12:46   L03_Today_TotalConsumption 4,76 kWh
     2020-06-24 13:12:46   L04_ForecastToday_Consumption 10346 Wh
     2020-06-24 13:12:46   L04_ForecastToday_PV 45011 Wh
     2020-06-24 13:12:46   L04_Next04Hours_Consumption 1875 Wh
     2020-06-24 13:12:46   L04_Next04Hours_IsConsumptionRecommended 4 h
     2020-06-24 13:12:46   L04_Next04Hours_PV 17309 Wh
     2020-06-24 13:12:46   L04_Next04Hours_Total 15433 Wh
     2020-06-24 13:12:46   L04_NextHour01_Consumption 571 Wh
     2020-06-24 13:12:46   L04_NextHour01_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour01_PvMeanPower 4734 Wh
     2020-06-24 13:12:46   L04_NextHour01_Time 24.06.2020 14:00:00
     2020-06-24 13:12:46   L04_NextHour01_Total 4163 Wh
     2020-06-24 13:12:46   L04_NextHour02_Consumption 510 Wh
     2020-06-24 13:12:46   L04_NextHour02_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour02_PvMeanPower 4154 Wh
     2020-06-24 13:12:46   L04_NextHour02_Time 24.06.2020 15:00:00
     2020-06-24 13:12:46   L04_NextHour02_Total 3644 Wh
     2020-06-24 13:12:46   L04_NextHour03_Consumption 414 Wh
     2020-06-24 13:12:46   L04_NextHour03_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour03_PvMeanPower 3299 Wh
     2020-06-24 13:12:46   L04_NextHour03_Time 24.06.2020 16:00:00
     2020-06-24 13:12:46   L04_NextHour03_Total 2885 Wh
     2020-06-24 13:12:46   L04_NextHour04_Consumption 537 Wh
     2020-06-24 13:12:46   L04_NextHour04_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour04_PvMeanPower 2255 Wh
     2020-06-24 13:12:46   L04_NextHour04_Time 24.06.2020 17:00:00
     2020-06-24 13:12:46   L04_NextHour04_Total 1718 Wh
     2020-06-24 13:12:46   L04_NextHour05_Consumption 831 Wh
     2020-06-24 13:12:46   L04_NextHour05_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour05_PvMeanPower 1199 Wh
     2020-06-24 13:12:46   L04_NextHour05_Time 24.06.2020 18:00:00
     2020-06-24 13:12:46   L04_NextHour05_Total 368 Wh
     2020-06-24 13:12:46   L04_NextHour06_Consumption 478 Wh
     2020-06-24 13:12:46   L04_NextHour06_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour06_PvMeanPower 537 Wh
     2020-06-24 13:12:46   L04_NextHour06_Time 24.06.2020 19:00:00
     2020-06-24 13:12:46   L04_NextHour06_Total 59 Wh
     2020-06-24 13:12:46   L04_NextHour07_Consumption 487 Wh
     2020-06-24 13:12:46   L04_NextHour07_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour07_PvMeanPower 227 Wh
     2020-06-24 13:12:46   L04_NextHour07_Time 24.06.2020 20:00:00
     2020-06-24 13:12:46   L04_NextHour07_Total -260 Wh
     2020-06-24 13:12:46   L04_NextHour08_Consumption 472 Wh
     2020-06-24 13:12:46   L04_NextHour08_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour08_PvMeanPower 37 Wh
     2020-06-24 13:12:46   L04_NextHour08_Time 24.06.2020 21:00:00
     2020-06-24 13:12:46   L04_NextHour08_Total -435 Wh
     2020-06-24 13:12:46   L04_NextHour09_Consumption 402 Wh
     2020-06-24 13:12:46   L04_NextHour09_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour09_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour09_Time 24.06.2020 22:00:00
     2020-06-24 13:12:46   L04_NextHour09_Total -402 Wh
     2020-06-24 13:12:46   L04_NextHour10_Consumption 341 Wh
     2020-06-24 13:12:46   L04_NextHour10_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour10_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour10_Time 24.06.2020 23:00:00
     2020-06-24 13:12:46   L04_NextHour10_Total -341 Wh
     2020-06-24 13:12:46   L04_NextHour11_Consumption 313 Wh
     2020-06-24 13:12:46   L04_NextHour11_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour11_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour11_Time 25.06.2020 00:00:00
     2020-06-24 13:12:46   L04_NextHour11_Total -313 Wh
     2020-06-24 13:12:46   L04_NextHour12_Consumption 263 Wh
     2020-06-24 13:12:46   L04_NextHour12_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour12_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour12_Time 25.06.2020 01:00:00
     2020-06-24 13:12:46   L04_NextHour12_Total -263 Wh
     2020-06-24 13:12:46   L04_NextHour13_Consumption 295 Wh
     2020-06-24 13:12:46   L04_NextHour13_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour13_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour13_Time 25.06.2020 02:00:00
     2020-06-24 13:12:46   L04_NextHour13_Total -295 Wh
     2020-06-24 13:12:46   L04_NextHour14_Consumption 267 Wh
     2020-06-24 13:12:46   L04_NextHour14_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour14_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour14_Time 25.06.2020 03:00:00
     2020-06-24 13:12:46   L04_NextHour14_Total -267 Wh
     2020-06-24 13:12:46   L04_NextHour15_Consumption 264 Wh
     2020-06-24 13:12:46   L04_NextHour15_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour15_PvMeanPower 0 Wh
     2020-06-24 13:12:46   L04_NextHour15_Time 25.06.2020 04:00:00
     2020-06-24 13:12:46   L04_NextHour15_Total -264 Wh
     2020-06-24 13:12:46   L04_NextHour16_Consumption 271 Wh
     2020-06-24 13:12:46   L04_NextHour16_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour16_PvMeanPower 53 Wh
     2020-06-24 13:12:46   L04_NextHour16_Time 25.06.2020 05:00:00
     2020-06-24 13:12:46   L04_NextHour16_Total -218 Wh
     2020-06-24 13:12:46   L04_NextHour17_Consumption 417 Wh
     2020-06-24 13:12:46   L04_NextHour17_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour17_PvMeanPower 170 Wh
     2020-06-24 13:12:46   L04_NextHour17_Time 25.06.2020 06:00:00
     2020-06-24 13:12:46   L04_NextHour17_Total -247 Wh
     2020-06-24 13:12:46   L04_NextHour18_Consumption 613 Wh
     2020-06-24 13:12:46   L04_NextHour18_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour18_PvMeanPower 678 Wh
     2020-06-24 13:12:46   L04_NextHour18_Time 25.06.2020 07:00:00
     2020-06-24 13:12:46   L04_NextHour18_Total 65 Wh
     2020-06-24 13:12:46   L04_NextHour19_Consumption 760 Wh
     2020-06-24 13:12:46   L04_NextHour19_IsConsumptionRecommended no
     2020-06-24 13:12:46   L04_NextHour19_PvMeanPower 1568 Wh
     2020-06-24 13:12:46   L04_NextHour19_Time 25.06.2020 08:00:00
     2020-06-24 13:12:46   L04_NextHour19_Total 808 Wh
     2020-06-24 13:12:46   L04_NextHour20_Consumption 501 Wh
     2020-06-24 13:12:46   L04_NextHour20_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour20_PvMeanPower 2517 Wh
     2020-06-24 13:12:46   L04_NextHour20_Time 25.06.2020 09:00:00
     2020-06-24 13:12:46   L04_NextHour20_Total 2016 Wh
     2020-06-24 13:12:46   L04_NextHour21_Consumption 435 Wh
     2020-06-24 13:12:46   L04_NextHour21_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour21_PvMeanPower 3372 Wh
     2020-06-24 13:12:46   L04_NextHour21_Time 25.06.2020 10:00:00
     2020-06-24 13:12:46   L04_NextHour21_Total 2937 Wh
     2020-06-24 13:12:46   L04_NextHour22_Consumption 450 Wh
     2020-06-24 13:12:46   L04_NextHour22_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour22_PvMeanPower 3997 Wh
     2020-06-24 13:12:46   L04_NextHour22_Time 25.06.2020 11:00:00
     2020-06-24 13:12:46   L04_NextHour22_Total 3547 Wh
     2020-06-24 13:12:46   L04_NextHour23_Consumption 328 Wh
     2020-06-24 13:12:46   L04_NextHour23_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_NextHour23_PvMeanPower 4333 Wh
     2020-06-24 13:12:46   L04_NextHour23_Time 25.06.2020 12:00:00
     2020-06-24 13:12:46   L04_NextHour23_Total 4005 Wh
     2020-06-24 13:12:46   L04_RestOfDay_Consumption 5426 Wh
     2020-06-24 13:12:46   L04_RestOfDay_IsConsumptionRecommended 5 h
     2020-06-24 13:12:46   L04_RestOfDay_PV 21567 Wh
     2020-06-24 13:12:46   L04_RestOfDay_Total 16140 Wh
     2020-06-24 13:12:46   L04_ThisHour_Consumption 377 Wh
     2020-06-24 13:12:46   L04_ThisHour_IsConsumptionRecommended yes
     2020-06-24 13:12:46   L04_ThisHour_PvMeanPower 5119 Wh
     2020-06-24 13:12:46   L04_ThisHour_Time 24.06.2020 13:00:00
     2020-06-24 13:12:46   L04_ThisHour_Total 4742 Wh
     2020-06-24 13:12:46   L04_Tomorrow_Consumption 9712 Wh
     2020-06-24 13:12:46   L04_Tomorrow_IsConsumptionRecommended 9 h
     2020-06-24 13:12:46   L04_Tomorrow_PV 37632 Wh
     2020-06-24 13:12:46   L04_Tomorrow_Total 30026 Wh
     2020-06-24 09:06:17   L1_AutarkyQuote 100 %
     2020-06-24 09:06:17   L1_FeedIn       3247 W
     2020-06-24 09:06:17   L1_GridConsumption 0 W
     2020-06-24 09:06:15   L1_Login-Status successful
     2020-06-24 09:06:17   L1_PV           3464 W
     2020-06-24 09:06:17   L1_SelfConsumption 217 W
     2020-06-24 09:06:17   L1_SelfConsumptionQuote 6 %
     2020-06-24 09:06:17   L1_SelfSupply   217 W
     2020-06-24 09:06:17   L1_Today_AutarkyRate 47 %
     2020-06-24 09:06:17   L1_Today_BackupIn ---
     2020-06-24 09:06:17   L1_Today_BackupOut ---
     2020-06-24 09:06:17   L1_Today_DirectConsumption ---
     2020-06-24 09:06:17   L1_Today_DirectConsumptionRate ---
     2020-06-24 09:06:17   L1_Today_Energy 2764 Wh
     2020-06-24 09:06:17   L1_Today_FeedIn 1077 Wh
     2020-06-24 09:06:17   L1_Today_GridConsumption 1879 Wh
     2020-06-24 09:06:17   L1_Today_SelfConsumption 1687 Wh
     2020-06-24 09:06:17   L1_Today_SelfConsumptionRate 61 %
     2020-06-24 09:06:17   L1_Today_SelfSupply 1687 Wh
     2020-06-24 09:06:17   L1_Today_Temperature 19.6 °C
     2020-06-24 09:06:17   L1_Today_TotalConsumption 3566 Wh
     2020-06-24 09:06:17   L1_Today_WeatherDescription Cloudless
     2020-06-24 09:06:17   L1_Tomorrow_Temperature 25.8 °C
     2020-06-24 09:06:17   L1_Tomorrow_WeatherDescription Cloudless
     2020-06-24 09:06:17   L1_TotalConsumption 217 W
     2020-06-24 09:06:17   L2_ForecastToday_Consumption 10958 Wh
     2020-06-24 09:06:17   L2_ForecastToday_PV 41833 Wh
     2020-06-24 09:06:17   L2_Next04Hours_Consumption 1593 Wh
     2020-06-24 09:06:17   L2_Next04Hours_IsConsumptionRecommended 4 h
     2020-06-24 09:06:17   L2_Next04Hours_PV 16651 Wh
     2020-06-24 09:06:17   L2_Next04Hours_Total 15058 Wh
     2020-06-24 09:06:17   L2_PlantPeakPower 6300 W
     2020-06-24 09:06:17   L2_RestOfDay_Consumption 7091 Wh
     2020-06-24 09:06:17   L2_RestOfDay_IsConsumptionRecommended 9 h
     2020-06-24 09:06:17   L2_RestOfDay_PV 37368 Wh
     2020-06-24 09:06:17   L2_RestOfDay_Total 30277 Wh
     2020-06-24 09:06:17   L2_ThisHour_Consumption 351 Wh
     2020-06-24 09:06:17   L2_ThisHour_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L2_ThisHour_PvMeanPower 3617 Wh
     2020-06-24 09:06:17   L2_ThisHour_Time 24.06.2020 09:00:00
     2020-06-24 09:06:17   L2_ThisHour_Total 3266 Wh
     2020-06-24 09:06:17   L2_Tomorrow_Consumption 9712 Wh
     2020-06-24 09:06:17   L2_Tomorrow_IsConsumptionRecommended 9 h
     2020-06-24 09:06:17   L2_Tomorrow_PV  39322 Wh
     2020-06-24 09:06:17   L2_Tomorrow_Total 31716 Wh
     2020-06-24 09:06:17   L4_NextHour01_Consumption 354 Wh
     2020-06-24 09:06:17   L4_NextHour01_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour01_PvMeanPower 4081 Wh
     2020-06-24 09:06:17   L4_NextHour01_Time 24.06.2020 10:00:00
     2020-06-24 09:06:17   L4_NextHour01_Total 3727 Wh
     2020-06-24 09:06:17   L4_NextHour02_Consumption 430 Wh
     2020-06-24 09:06:17   L4_NextHour02_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour02_PvMeanPower 4292 Wh
     2020-06-24 09:06:17   L4_NextHour02_Time 24.06.2020 11:00:00
     2020-06-24 09:06:17   L4_NextHour02_Total 3862 Wh
     2020-06-24 09:06:17   L4_NextHour03_Consumption 455 Wh
     2020-06-24 09:06:17   L4_NextHour03_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour03_PvMeanPower 4659 Wh
     2020-06-24 09:06:17   L4_NextHour03_Time 24.06.2020 12:00:00
     2020-06-24 09:06:17   L4_NextHour03_Total 4204 Wh
     2020-06-24 09:06:17   L4_NextHour04_Consumption 448 Wh
     2020-06-24 09:06:17   L4_NextHour04_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour04_PvMeanPower 4720 Wh
     2020-06-24 09:06:17   L4_NextHour04_Time 24.06.2020 13:00:00
     2020-06-24 09:06:17   L4_NextHour04_Total 4272 Wh
     2020-06-24 09:06:17   L4_NextHour05_Consumption 571 Wh
     2020-06-24 09:06:17   L4_NextHour05_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour05_PvMeanPower 4523 Wh
     2020-06-24 09:06:17   L4_NextHour05_Time 24.06.2020 14:00:00
     2020-06-24 09:06:17   L4_NextHour05_Total 3952 Wh
     2020-06-24 09:06:17   L4_NextHour06_Consumption 510 Wh
     2020-06-24 09:06:17   L4_NextHour06_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour06_PvMeanPower 4004 Wh
     2020-06-24 09:06:17   L4_NextHour06_Time 24.06.2020 15:00:00
     2020-06-24 09:06:17   L4_NextHour06_Total 3494 Wh
     2020-06-24 09:06:17   L4_NextHour07_Consumption 414 Wh
     2020-06-24 09:06:17   L4_NextHour07_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour07_PvMeanPower 3227 Wh
     2020-06-24 09:06:17   L4_NextHour07_Time 24.06.2020 16:00:00
     2020-06-24 09:06:17   L4_NextHour07_Total 2813 Wh
     2020-06-24 09:06:17   L4_NextHour08_Consumption 537 Wh
     2020-06-24 09:06:17   L4_NextHour08_IsConsumptionRecommended yes
     2020-06-24 09:06:17   L4_NextHour08_PvMeanPower 2254 Wh
     2020-06-24 09:06:17   L4_NextHour08_Time 24.06.2020 17:00:00
     2020-06-24 09:06:17   L4_NextHour08_Total 1717 Wh
     2020-06-24 09:06:17   L4_NextHour09_Consumption 831 Wh
     2020-06-24 09:06:17   L4_NextHour09_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour09_PvMeanPower 1256 Wh
     2020-06-24 09:06:17   L4_NextHour09_Time 24.06.2020 18:00:00
     2020-06-24 09:06:17   L4_NextHour09_Total 425 Wh
     2020-06-24 09:06:17   L4_NextHour10_Consumption 478 Wh
     2020-06-24 09:06:17   L4_NextHour10_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour10_PvMeanPower 524 Wh
     2020-06-24 09:06:17   L4_NextHour10_Time 24.06.2020 19:00:00
     2020-06-24 09:06:17   L4_NextHour10_Total 46 Wh
     2020-06-24 09:06:17   L4_NextHour11_Consumption 487 Wh
     2020-06-24 09:06:17   L4_NextHour11_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour11_PvMeanPower 175 Wh
     2020-06-24 09:06:17   L4_NextHour11_Time 24.06.2020 20:00:00
     2020-06-24 09:06:17   L4_NextHour11_Total -312 Wh
     2020-06-24 09:06:17   L4_NextHour12_Consumption 472 Wh
     2020-06-24 09:06:17   L4_NextHour12_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour12_PvMeanPower 28 Wh
     2020-06-24 09:06:17   L4_NextHour12_Time 24.06.2020 21:00:00
     2020-06-24 09:06:17   L4_NextHour12_Total -444 Wh
     2020-06-24 09:06:17   L4_NextHour13_Consumption 402 Wh
     2020-06-24 09:06:17   L4_NextHour13_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour13_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour13_Time 24.06.2020 22:00:00
     2020-06-24 09:06:17   L4_NextHour13_Total -402 Wh
     2020-06-24 09:06:17   L4_NextHour14_Consumption 341 Wh
     2020-06-24 09:06:17   L4_NextHour14_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour14_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour14_Time 24.06.2020 23:00:00
     2020-06-24 09:06:17   L4_NextHour14_Total -341 Wh
     2020-06-24 09:06:17   L4_NextHour15_Consumption 313 Wh
     2020-06-24 09:06:17   L4_NextHour15_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour15_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour15_Time 25.06.2020 00:00:00
     2020-06-24 09:06:17   L4_NextHour15_Total -313 Wh
     2020-06-24 09:06:17   L4_NextHour16_Consumption 263 Wh
     2020-06-24 09:06:17   L4_NextHour16_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour16_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour16_Time 25.06.2020 01:00:00
     2020-06-24 09:06:17   L4_NextHour16_Total -263 Wh
     2020-06-24 09:06:17   L4_NextHour17_Consumption 295 Wh
     2020-06-24 09:06:17   L4_NextHour17_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour17_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour17_Time 25.06.2020 02:00:00
     2020-06-24 09:06:17   L4_NextHour17_Total -295 Wh
     2020-06-24 09:06:17   L4_NextHour18_Consumption 267 Wh
     2020-06-24 09:06:17   L4_NextHour18_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour18_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour18_Time 25.06.2020 03:00:00
     2020-06-24 09:06:17   L4_NextHour18_Total -267 Wh
     2020-06-24 09:06:17   L4_NextHour19_Consumption 264 Wh
     2020-06-24 09:06:17   L4_NextHour19_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour19_PvMeanPower 0 Wh
     2020-06-24 09:06:17   L4_NextHour19_Time 25.06.2020 04:00:00
     2020-06-24 09:06:17   L4_NextHour19_Total -264 Wh
     2020-06-24 09:06:17   L4_NextHour20_Consumption 271 Wh
     2020-06-24 09:06:17   L4_NextHour20_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour20_PvMeanPower 53 Wh
     2020-06-24 09:06:17   L4_NextHour20_Time 25.06.2020 05:00:00
     2020-06-24 09:06:17   L4_NextHour20_Total -218 Wh
     2020-06-24 09:06:17   L4_NextHour21_Consumption 417 Wh
     2020-06-24 09:06:17   L4_NextHour21_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour21_PvMeanPower 170 Wh
     2020-06-24 09:06:17   L4_NextHour21_Time 25.06.2020 06:00:00
     2020-06-24 09:06:17   L4_NextHour21_Total -247 Wh
     2020-06-24 09:06:17   L4_NextHour22_Consumption 613 Wh
     2020-06-24 09:06:17   L4_NextHour22_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour22_PvMeanPower 676 Wh
     2020-06-24 09:06:17   L4_NextHour22_Time 25.06.2020 07:00:00
     2020-06-24 09:06:17   L4_NextHour22_Total 63 Wh
     2020-06-24 09:06:17   L4_NextHour23_Consumption 760 Wh
     2020-06-24 09:06:17   L4_NextHour23_IsConsumptionRecommended no
     2020-06-24 09:06:17   L4_NextHour23_PvMeanPower 1568 Wh
     2020-06-24 09:06:17   L4_NextHour23_Time 25.06.2020 08:00:00
     2020-06-24 09:06:17   L4_NextHour23_Total 808 Wh
     2020-06-24 13:14:43   dailyCallCounter 24:64
     2020-06-24 13:14:43   dailyIssueCookieCounter 24:63
     2020-06-24 13:12:46   lastCycleTime   4
     2020-06-24 13:14:43   loginState      successful
     2020-06-24 13:14:44   state           The logbook cannot be retrieved because of the plant ID isn't set.
Attributes:
   DbLogExclude .*
   alias      SMA Portal
   disable    0
   icon       time_graph
   interval   900
   providerLevel balanceDayData,consumerCurrentdata,forecastData,liveData,weatherData,plantLogbook
   room       Photovoltaik


Danke und VG Dieter

DS_Starter

Hallo Dieter,

die plantID wird automatisch zu Beginn ermittelt.
Vermutlich hat dein verwendeter User zu wenig Rechte (Anlagenadministrator ?)

Du siehst das wenn du verbose 5 und verbose5Data = plantMasterData einstellst. Kommt ziemlich viel Text im Log.

Suche dann im Log nach PlantOid. Sieht so aus:

'PlantOid' => '9bfdbda3-9584-42e8-89fe-xxxxxxxxxxxxx'


Grüße,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

dk3572

Zitat von: DS_Starter am 24 Juni 2020, 13:36:03
Hallo Dieter,

die plantID wird automatisch zu Beginn ermittelt.
Vermutlich hat dein verwendeter User zu wenig Rechte (Anlagenadministrator ?)

Du siehst das wenn du verbose 5 und verbose5Data = plantMasterData einstellst. Kommt ziemlich viel Text im Log.

Suche dann im Log nach PlantOid. Sieht so aus:

'PlantOid' => '9bfdbda3-9584-42e8-89fe-xxxxxxxxxxxxx'


Grüße,
Heiko

ok, die PlantOid habe ich gefunden.

Set-Cookie: plantOid=9b96989f-e0df-44a2-b6fa-xxxxxxxxxxxxx; path=/; secure; HttpOnly

Was mache ich mit der?

DS_Starter

Das ist der falsche Platz im Cookie.
Es muß in einer JSON Antwort enthalten sein, also so wie ich geschrieben habe

  'PlantOid' =>  ....

Findest du die Angabe ?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

dk3572

Zitat von: DS_Starter am 24 Juni 2020, 13:52:04
Das ist der falsche Platz im Cookie.
Es muß in einer JSON Antwort enthalten sein, also so wie ich geschrieben habe

  'PlantOid' =>  ....

Findest du die Angabe ?

nein, nicht vorhanden

DS_Starter

Das ist das Problem. Welche Rolle hat der verwendete User, Anlagenadmin ?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

dk3572

Zitat von: DS_Starter am 24 Juni 2020, 13:57:43
Das ist das Problem. Welche Rolle hat der verwendete User, Anlagenadmin ?

ja, hat er

....mein Installateur steht allerdings auch noch als Anlagenadmin drin

DS_Starter

Ja, das passt soweit. Poste doch mal das Log, ist ziemlich viel ggf. als Datei.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

dk3572

Zitat von: DS_Starter am 24 Juni 2020, 14:08:31
Ja, das passt soweit. Poste doch mal das Log, ist ziemlich viel ggf. als Datei.