Ich habe erste Ergänzungen vorgenommen ...
Der kumulierte Tagesertrag ("todayYield") ist hinzugekommen...
const data = JSON.stringify({
"sn": sn,
"variables": [
"pvPower",
"todayYield"
/*, "generationPower", "SoC", "loadsPower" */
]
});
....
setState("0_userdata.0.FoxEss.todayYield", Math.round(datas[1].value * 1000), true);
Daneben ein kurzes Blockly, was kurz vor Mitternacht den "todayYield" in einen user-Datenpunkt "yesterdayYield" verschiebt...
[image: 1763575075899-c1039540-2c85-495f-a91d-f5eaecd37dee-grafik.png]
Wenn man sich die weiteren API-Möglichkeiten so anschauen will, gibt es hier eine Übersicht, was man sich alles aus der Cloud besorgen kann (Abhängig davon, was man sich so alles von denen gekauft hat) ...
https://www.foxesscloud.com/public/i18n/en/OpenApiDocument.html
Dort diesen Abschnitt suchen
Variable table:
The table presented below offers a comprehensive overview of the variables that can be accessed through the API. It is important to note that the availability of these variables may differ depending on the specific device being utilized. Therefore, the variables listed in the table are subject to change based on the device in use.