<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wie?  Solar Produktion über Json Monatlich berechnen]]></title><description><![CDATA[<p dir="auto">hallo,</p>
<p dir="auto">ich habe meine Solaranlage schon über ein Json Script in meinen IoBroker einbinden können.</p>
<p dir="auto">Leider musste der Speicher getauscht werden.....lange rede.</p>
<p dir="auto">Mein Problem ist das die neue Anlage nur Lokal in meinem Netzwerk ist und keine Daten in die Cloud gesendet werden können( keine Ahnung warum Hersteller weis auch nicht weiter).</p>
<p dir="auto">Kann ich irgendwie mit Hilfe der Json Datei einen Zahler mir bauen der vom Ersten Tag des Monats bis Letzen Tag des Monats meine Pv Produktion zusammen Rechnet?</p>
<p dir="auto">Damit ich den Eigenverbrauch berechnen kann.<br />
Einspeisung und Zukaufstrom kann ich ja über den Stromzahler auslesen.</p>
<p dir="auto">{<br />
"ESSRealtimeStatus":{<br />
"ColecTm":"20260704125745",<br />
"PowerOutletPw":"0",<br />
"GridPw":3.22,<br />
"UnitPrice":0.00,<br />
"ConsPw":0.27,<br />
"BtSoc":93,<br />
"PcsPw":3493.00,<br />
"AbsPcsPw":3.49,<br />
"PvPw":3.49,<br />
"GridStusCd":"1",<br />
"BtStusCd":"2",<br />
"BtPw":0.00,<br />
"OperStusCd":"0",<br />
"EmsOpMode":"0",<br />
"RankPer":0,<br />
"ErrorCnt":0<br />
}<br />
}</p>
<p dir="auto">Das musste ja der Punkt "PvPW" sein.</p>
<p dir="auto">Ich habe selber keine Ahnung davon und würde mich sehr über Hilfe freuen .</p>
]]></description><link>https://forum.iobroker.net/topic/84914/wie-solar-produktion-über-json-monatlich-berechnen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 16:46:32 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/84914.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jul 2026 11:00:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 14:11:26 GMT]]></title><description><![CDATA[<p dir="auto">Ok super. Vielen Dank. Werde mir das morgen mal in Ruhe anschauen 😎</p>
]]></description><link>https://forum.iobroker.net/post/1347017</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347017</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 14:11:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 14:06:53 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/machamster" aria-label="Profile: machamster">@<bdi>machamster</bdi></a> [sagte]: Dazu muss ich wahrscheinlich den Stromzähler Auslesen?</p>
</blockquote>
<p dir="auto">Nein. In Sourceanalytix wird auch der DP "0_userdata.0.Solar.PvPw" ausgewertet.</p>
]]></description><link>https://forum.iobroker.net/post/1347013</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347013</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 14:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:50:59 GMT]]></title><description><![CDATA[<p dir="auto">Für mich war das viel mehr als ein kleines Skript. Vielen Dank dafür 😘😘. Den anderen Adapter werde ich mir mal anschauen 😁. Dazu muss ich wahrscheinlich den Stromzähler Auslesen?</p>
]]></description><link>https://forum.iobroker.net/post/1347010</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347010</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:40:09 GMT]]></title><description><![CDATA[<p dir="auto">Übrigens kann auch der Sourceanalytix-Adapter aus der Leistung den Zählerstand und Periodenwerte ermitteln. Benötigt allerdings mehr Ressourcen als das kleine Skript.</p>
]]></description><link>https://forum.iobroker.net/post/1347008</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347008</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:32:19 GMT]]></title><description><![CDATA[<p dir="auto">Mega mega gut. Viel viel viel Dank für deine Hilfe. Wirklich Klasse!!!!! Habe eben gesehen das du mir damals auch schon helfen konntest!!!  <img src="https://forum.iobroker.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=ba16ebd4856" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":thumbsup:" alt="👍" /> <img src="https://forum.iobroker.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=ba16ebd4856" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":thumbsup:" alt="👍" /></p>
]]></description><link>https://forum.iobroker.net/post/1347007</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347007</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:28:53 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/machamster" aria-label="Profile: machamster">@<bdi>machamster</bdi></a> [sagte]: Stand_Monat und letzter_ Monat werden wahrscheinlich dann erst mit Ablauf der Zeit gefüllt?</p>
</blockquote>
<p dir="auto">Ja, am Monatsende.</p>
]]></description><link>https://forum.iobroker.net/post/1347006</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347006</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:28:53 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:22:21 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1783171180926-screenshot-2026-07-04-152016-resized.png" alt="Screenshot 2026-07-04 152016.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Stand_Monat und letzter_ Monat werden wahrscheinlich dann erst mit Ablauf der Zeit gefüllt?</p>
]]></description><link>https://forum.iobroker.net/post/1347005</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347005</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:16:29 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/machamster" aria-label="Profile: machamster">@<bdi>machamster</bdi></a> [sagte]: Ist das so richtig?</p>
</blockquote>
<p dir="auto">Ja.</p>
]]></description><link>https://forum.iobroker.net/post/1347004</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347004</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:16:29 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:15:47 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1783170936679-screenshot-2026-07-04-151610.png" alt="Screenshot 2026-07-04 151610.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Ist das so richtig?</p>
]]></description><link>https://forum.iobroker.net/post/1347003</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347003</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:15:47 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:11:08 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/machamster" aria-label="Profile: machamster">@<bdi>machamster</bdi></a> [sagte]: Ich habe ein Skript am laufen was die Anlage ausliest.</p>
</blockquote>
<p dir="auto">Dort gibt es bereits den Datenpunkt "PvPw" mit der Leistung.<br />
Dadurch vereinfacht sich die Ermittlung der Energiewerte:</p>
<pre><code> const idPower  = '0_userdata.0.Solar.PvPw'; // kW
 const idEnergy = '0_userdata.0.PV.Energie'; // kWh
 const idAct    = '0_userdata.0.PV.aktueller_Monat'; // kWh
 const idLast   = '0_userdata.0.PV.letzter_Monat'; // kWh
 const idMonth  = '0_userdata.0.PV.Stand_Monat'; // kWh

 var stand = getState(idEnergy).val; // Zählerstand
 var energy = 100 * stand; // 10 Wh

 on(idPower, function(dp) {
     energy += dp.oldState.val * (dp.state.lc - dp.oldState.lc) / 36000;
     stand = Math.round(energy) / 100; // Zählerstand kWh
     setState(idEnergy, stand, true);
     setState(idAct, stand - getState(idMonth).val, true);
 });

 schedule('55 59 23 28-31 * *', function() {
     if(new Date(Date.now() + 10000).getDate() == 1) { // letzter Monatstag
        setState(idLast, stand - getState(idMonth).val, true);
        setState(idMonth, stand, true);
        setState(idAct, 0, true);
     }
 });
</code></pre>
]]></description><link>https://forum.iobroker.net/post/1347002</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347002</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:11:08 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:06:25 GMT]]></title><description><![CDATA[<p dir="auto">OK ?? Was müsste ich da den Eintragen?</p>
<p dir="auto">Ich habe ein Skript am laufen was die Anlage ausliest.</p>
<p dir="auto">Muss ich da den Punkt eintragen?</p>
<p dir="auto"><img src="/assets/uploads/files/1783170371879-screenshot-2026-07-04-150548.png" alt="Screenshot 2026-07-04 150548.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1783170382284-screenshot-2026-07-04-150610-resized.png" alt="Screenshot 2026-07-04 150610.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1347001</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347001</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 13:06:04 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/machamster" aria-label="Profile: machamster">@<bdi>machamster</bdi></a> [sagte]: Habe ich irgend etwas falsch gemacht?</p>
</blockquote>
<p dir="auto"><em>idJson</em> enthält keine Datenpunkt-ID, sondern eine URL.</p>
<p dir="auto">EDIT: Eine URL muss man pollen (Intervall):</p>
<pre><code> const url   = ''; // URL eintragen!

 // Datenpunkte vom Typ "Zahl" unter "0_userdata.0.PV" erstellen!
 const idPower  = '0_userdata.0.PV.Leistung'; // kW
 const idEnergy = '0_userdata.0.PV.Energie'; // kWh
 const idAct    = '0_userdata.0.PV.aktueller_Monat'; // kWh
 const idLast   = '0_userdata.0.PV.letzter_Monat'; // kWh
 const idMonth  = '0_userdata.0.PV.Stand_Monat'; // kWh

 var stand = getState(idEnergy).val; // Zählerstand
 var energy = 100 * stand; // 10 Wh

 setInterval(function() {
     httpGet(url, (err, response) =&gt; {
        if (!err) {
            const status = JSON.parse(response.data).ESSRealtimeStatus;
            setState(idPower, status.PvPw, true);
        } 
     });
 }, 5000); // alle 5 s

 on(idPower, function(dp) {
     energy += dp.oldState.val * (dp.state.lc - dp.oldState.lc) / 36000;
     stand = Math.round(energy) / 100; // Zählerstand kWh
     setState(idEnergy, stand, true);
     setState(idAct, stand - getState(idMonth).val, true);
 });

 schedule('55 59 23 28-31 * *', function() {
     if(new Date(Date.now() + 10000).getDate() == 1) { // letzter Monatstag
        setState(idLast, stand - getState(idMonth).val, true);
        setState(idMonth, stand, true);
        setState(idAct, 0, true);
     }
 });
</code></pre>
<p dir="auto">Bitte Code in Code tags posten, damit man daraus kopieren kann.<br />
Verpasse den Datenpunkten noch Einheiten (kW / kWh) und setze sie auf "read only" mit der Rolle "value.power".</p>
<p dir="auto">Beachte bitte, dass ich um eine globale Variable <em>stand</em> ergänzt habe, die den berechneten Zählerstand auf zwei Nachkommastellen gerundet enthält.</p>
]]></description><link>https://forum.iobroker.net/post/1347000</link><guid isPermaLink="true">https://forum.iobroker.net/post/1347000</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 13:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 12:25:00 GMT]]></title><description><![CDATA[<p dir="auto">So weit habe ich das gemacht, aber ich kann bis jetzt keine Daten sehen.</p>
<p dir="auto">Habe ich irgend etwas falsch gemacht?</p>
]]></description><link>https://forum.iobroker.net/post/1346999</link><guid isPermaLink="true">https://forum.iobroker.net/post/1346999</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 12:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 12:23:28 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1783167792701-screenshot-2026-07-04-142132-resized.png" alt="Screenshot 2026-07-04 142132.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1783167805403-screenshot-2026-07-04-142155-resized.png" alt="Screenshot 2026-07-04 142155.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.iobroker.net/post/1346998</link><guid isPermaLink="true">https://forum.iobroker.net/post/1346998</guid><dc:creator><![CDATA[machamster]]></dc:creator><pubDate>Sat, 04 Jul 2026 12:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to Wie?  Solar Produktion über Json Monatlich berechnen on Sat, 04 Jul 2026 12:03:40 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/machamster" aria-label="Profile: machamster">@<bdi>machamster</bdi></a> [sagte]: Das musste ja der Punkt "PvPW" sein.</p>
</blockquote>
<p dir="auto">Enthält er die PV-Leistung in kW?</p>
<p dir="auto">Wenn ja, könnte man es so angehen:</p>
<pre><code> const idJson   = ''; // Datenpunkt-ID eintragen!

 // Datenpunkte vom Typ "Zahl" unter "0_userdata.0.PV" erstellen!
 const idPower  = '0_userdata.0.PV.Leistung'; // kW
 const idEnergy = '0_userdata.0.PV.Energie'; // kWh
 const idAct    = '0_userdata.0.PV.aktueller_Monat'; // kWh
 const idLast   = '0_userdata.0.PV.letzter_Monat'; // kWh
 const idMonth  = '0_userdata.0.PV.Stand_Monat'; // kWh

 var energy = getState(idEnergy).val; // Zählerstand
 var stand  = energy; 

 on(idJson, function(dp) {
     const status = JSON.parse(dp.state.val).ESSRealtimeStatus;
     setState(idPower, status.PvPw, true);
 });

 on(idPower, function(dp) {
     energy += dp.oldState.val * (dp.state.lc - dp.oldState.lc) / 3600000;
     stand = Math.round(energy * 100) / 100; // Zählerstand kWh
     setState(idEnergy, stand, true);
     setState(idAct, stand - getState(idMonth).val, true);
 });

 schedule('55 59 23 28-31 * *', function() {
     if(new Date(Date.now() + 10000).getDate() == 1) { // letzter Monatstag
        setState(idLast, stand - getState(idMonth).val, true);
        setState(idMonth, stand, true);
     }
 });
</code></pre>
]]></description><link>https://forum.iobroker.net/post/1346993</link><guid isPermaLink="true">https://forum.iobroker.net/post/1346993</guid><dc:creator><![CDATA[paul53]]></dc:creator><pubDate>Sat, 04 Jul 2026 12:03:40 GMT</pubDate></item></channel></rss>